/**
 * Page Base CSS - Estilos base para páginas secundárias
 * Usado por: galeria.html, nossa-historia.html, fornecedores.html,
 *            lista-de-presentes.html, dicas-e-informacoes.html
 */

/* ==================== CONTAINER DA PÁGINA ==================== */

.page-container {
    max-width: calc(100% - 80px);
    width: 100%;
    margin: 0;
    margin-left: 80px;
    padding: 2rem 4rem;
    padding-top: 80px;
    box-sizing: border-box;
    min-height: 100vh;
}

.page-container > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== HEADER DA PÁGINA ==================== */

.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(196, 160, 122, 0.3);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--rose-gold-light);
    margin-bottom: 1rem;
}

.page-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(245, 240, 232, 0.7);
    font-style: italic;
}

/* ==================== FOOTER DA PÁGINA ==================== */

.page-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(196, 160, 122, 0.3);
}

.page-footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.6);
    font-style: italic;
}

/* ==================== SEÇÃO GENÉRICA ==================== */

.page-section {
    margin-bottom: 3rem;
}

.page-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ==================== CARDS DE CONTEÚDO ==================== */

.content-card {
    background: linear-gradient(135deg,
        rgba(80, 115, 160, 0.75) 0%,
        rgba(60, 95, 140, 0.85) 50%,
        rgba(80, 115, 160, 0.75) 100%);
    border: 1px solid rgba(212, 175, 90, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(212, 175, 90, 0.1) 45%,
        rgba(212, 175, 90, 0.2) 50%,
        rgba(212, 175, 90, 0.1) 55%,
        transparent 60%
    );
    animation: holographic-scan 3s linear infinite;
    pointer-events: none;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(212, 175, 90, 0.2);
}

/* ==================== GRID DE CARDS ==================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ==================== ESTADOS VAZIOS E LOADING ==================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(245, 240, 232, 0.6);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 90, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FALLBACK PARA CLASSES LEGADAS ==================== */

/* Aliases para compatibilidade com código antigo */
.container {
    max-width: calc(100% - 80px);
    width: 100%;
    margin: 0;
    margin-left: 80px;
    padding: 2rem 4rem;
    padding-top: 80px;
    box-sizing: border-box;
    min-height: 100vh;
}

.container > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(196, 160, 122, 0.3);
    margin-bottom: 3rem;
}

.header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--rose-gold-light);
    margin-bottom: 1rem;
}

.header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(245, 240, 232, 0.7);
    font-style: italic;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(196, 160, 122, 0.3);
}

.footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.6);
    font-style: italic;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .page-container,
    .container {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-container > *,
    .container > * {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-header,
    .header {
        width: 100%;
        text-align: center;
    }

    .page-header h1,
    .header h1 {
        font-size: 2.2rem;
    }

    .page-header p,
    .header p {
        font-size: 1rem;
    }

    .page-footer,
    .footer {
        width: 100%;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}
