/* ========================================================
   Vila dos Autores - Estilo Mobile-First & Responsivo
   Identidade: Amarelo Ouro (#F5B82A), Roxo (#7E4A88), Verde (#27AE60)
   ======================================================== */

:root {
    --brand-primary: #7E4A88;
    --brand-primary-hover: #673770;
    --brand-accent: #F5B82A;
    --brand-accent-hover: #e0a319;
    --brand-roof: #27AE60;
    --brand-dark: #2C3E50;
    --brand-light: #FDFBF7;
    --brand-bg: #F8F9FA;
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
}

/* Marca e cores */
.text-brand { color: var(--brand-primary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-brand-light { background-color: #f7eff9 !important; }
.bg-roof { background-color: var(--brand-roof) !important; }
.border-brand { border-color: var(--brand-primary) !important; }

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
}
.btn-brand:hover, .btn-brand:focus, .btn-brand:active {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #ffffff;
}

.btn-outline-brand {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-color: transparent;
}
.btn-outline-brand:hover, .btn-outline-brand:focus, .btn-outline-brand:active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.btn-accent {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #1a1a1a;
    font-weight: 700;
}
.btn-accent:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #000;
}

/* Avatar de iniciais */
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Mobile-First: Botões de ação com toque amplo */
.btn-touch {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Cartões com cantos arredondados suaves */
.card-touch {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-touch:active {
    transform: scale(0.99);
}

/* Barra inferior mobile (Bottom Navigation) */
.mobile-bottom-nav {
    z-index: 1040;
    height: 64px;
    border-top: 1px solid #e5e7eb;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    padding: 4px 0;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--brand-primary);
}

.badge-dot {
    position: absolute;
    top: 6px;
    right: 22%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Botão central flutuante de Venda */
.mobile-bottom-nav .nav-item-highlight {
    position: relative;
    top: -16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #27ae60;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
}

.mobile-bottom-nav .nav-item-highlight .circle-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item-highlight:active .circle-btn {
    transform: scale(0.92);
}

/* Capa de livro */
.book-cover-thumb {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.book-cover-large {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* Player de áudio estilizado */
.audio-player-custom {
    width: 100%;
    border-radius: 30px;
    outline: none;
}

/* Formulário de vendas (PDV) */
.payment-selector .btn-check:checked + .btn {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(126, 74, 136, 0.3);
}

/* Destaque nos cards de fechamento */
.metric-box {
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Ajustes de tela para Desktop */
@media (min-width: 768px) {
    .main-content {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 1.5rem;
    }
}
