﻿/* 
 * Design System - Biblioteca Virtual
 * Foco: Mobile, Premium Aesthetics, Infinite Growth
 */

:root {
    /* Color Palette */
    --color-bg-deep: #1e1e3f;
    /* Placeholder deep purple, will adjust based on fundo.svg */
    --color-content-bg: #f7eadb;
    /* Off-white / Cream based on the Canva image */
    --color-primary: #303067;
    --color-text-main: #343a40;
    --color-accent: #6c63ff;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;

    /* Typography - Google Fonts (Free Use/Enterprise Safe) */
    /* Importing Playfair Display (Titles) and Lato (Body) */

    /* Titles: Playfair Display - Premium, Classic, clear high-contrast Serif */
    --font-serif: 'Playfair Display', serif;

    /* Body: Lato - Designed for screen reading, humanist Sans-Serif */
    --font-sans: 'Lato', sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    /* Keep the base color */
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: var(--spacing-sm);
    position: relative;
    /* Needed for the pseudo-element */
    overflow-x: hidden;
}

/* New subtle background layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fundo.svg');
    background-size: 500px auto;
    background-position: top left;
    background-repeat: repeat;
    opacity: 0.25;
    /* Makes it "more invisible" as requested */
    z-index: -1;
    pointer-events: none;
}

#app-root {
    width: 100%;
    max-width: 500px;
    /* Mobile focused max width */
    margin: 0 auto;
}

/* Container Arqueado Infinito */
.arch-container {
    background-color: var(--color-content-bg);
    margin-top: 40px;
    border-radius: 200px 200px 0 0;
    /* Cria o efeito de arco no topo */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-sm);
    min-height: calc(100vh - 80px);
    /* Garante que ocupa a maior parte da altura */
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* --- GUIA DE AJUSTE DO VETOR DE EFEITO --- */
.arch-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('efeito.svg');
    background-repeat: no-repeat;

    /* POSIÃ‡ÃƒO: [Horizontal (centro)] [Vertical (topo)]
       Dica: Use valores negativos (ex: -50px) para subir o efeito alÃ©m do topo. */
    background-position: center -50px;

    /* TAMANHO: [Largura] [Altura]
       Dica: 100% preenche a largura. Use 150% para deixar maior. */
    background-size: 115% auto;

    pointer-events: none;
    /* Deixa clicar no texto por baixo dele */
    z-index: 0;
    /* Camada: fica entre o fundo bege e o texto */

    /* OPACIDADE: Se quiser diminuir o brilho, adicione: opacity: 0.5; */
}

/* Modificador para usar o VITRAL.svg apenas em paginas especificas */
.arch-container.vitral-effect::before {
    background-image: url('VITRAL.svg') !important;
    background-size: cover !important;
    /* Testando cover para preencher melhor ou ajustar conforme necessidade */
    background-position: center center !important;

    /* CORRECAO: Forcar cores originais removendo filtros escuros */
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 0.1 !important;
}

/* ---------------------------------------- */

.content-wrapper {
    position: relative;
    z-index: 2;
    /* Fica acima do efeito.svg */
    padding: var(--spacing-md) var(--spacing-sm);
    animation: fadeIn 1s ease-out;
}

.title {
    font-family: var(--font-serif);
    color: var(--color-primary);
    text-align: center;
    font-size: 48px;
    font-weight: normal;
    /* Fix: Prevent faux bold on h1 */
    /* 48px - Recommended Size */
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    /* 1.2 - Recommended Line Height */
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.list-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s forwards;
}

.list-item:nth-child(1) {
    animation-delay: 0.2s;
}

.list-item:nth-child(2) {
    animation-delay: 0.4s;
}

.list-item:nth-child(3) {
    animation-delay: 0.6s;
}

.item-title {
    font-family: var(--font-sans);
    /* Changed to Avenir (Sans) */
    font-weight: bold;
    font-size: 22px;
    /* 22px Recommended */
    line-height: 1.3;
    /* 1.3 Recommended */
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.item-text {
    font-family: var(--font-sans);
    /* Explicitly set to Lato */
    font-size: 22px;
    /* 22px Recommended */
    font-weight: 400;
    line-height: 1.6;
    /* 1.6 - Standard for Readability */
    text-align: justify;
    color: var(--color-primary);
    /* Changed to #303067 (Primary) */
}

/* AnimaÃ§Ãµes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Selection Styles moved to hub.css */



/* Responsividade adicional */
/* Responsividade adicional */

/* Mantendo apenas ajustes estruturais (sem diminuir fonte) */
@media (max-width: 480px) {

    /* Ajuste para garantir que o texto nao encoste na borda (iPhone 12/Pro) */
    .arch-container {
        border-radius: 120px 120px 0 0;
        padding: 16px 12px;
        /* Margem interna mais segura */
    }
}

@media (max-width: 380px) {
    .arch-container {
        border-radius: 100px 100px 0 0;
    }
}

.logo-footer {
    display: block;
    margin: 30px auto 10px;
    max-width: 180px;
    /* Increased size for better visibility */
    height: auto;
    /* Removed opacity to prevent "white" turning into background color */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}