/* ===== RESET & VARIÁVEIS ===== */
:root {
    --color-primary: #191970;
    --color-primary-dark: #00008B;
    --color-accent: #4B0082;
    --color-accent-light: #6B1A9E;
    --color-white: #FFFFFF;
    --color-off-white: #F8FAFF;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-700: #334155;
    --color-gray-900: #0F172A;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-accent) 100%);
    min-height: 100vh;
    color: var(--color-gray-900);
    position: relative;
    overflow-x: hidden;
}

/* ===== EFEITO DE GRÃO ===== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== CANVAS DE PARTÍCULAS ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ===== APP LAYOUT ===== */
.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.02em;
}

.logo-svg {
    color: white;
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== STORY CARD ===== */
.story-container {
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-2xl);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.story-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.story-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-gray-400);
    text-transform: uppercase;
}

.story-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    font-weight: 500;
}

/* ===== DECISIONS SECTION ===== */
.decisions-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.section-header h3 {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-button {
    background: white;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
    z-index: 0;
    opacity: 0.05;
}

.choice-button:hover::before {
    width: 100%;
}

.choice-button:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.choice-button i {
    font-size: 1.25rem;
    color: var(--color-accent);
    z-index: 1;
    position: relative;
}

.choice-button span {
    z-index: 1;
    position: relative;
}

/* ===== METRICS PANEL ===== */
.metrics-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-header i {
    color: #FFD700;
    font-size: 0.875rem;
}

.metric-header span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-display {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.timer-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    height: 4px;
    overflow: hidden;
}

.timer-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 100%;
    width: 100%;
    border-radius: 100px;
    transition: width 1s linear;
}

.stats-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* ===== RESTART BUTTON ===== */
.restart-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.restart-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-align: center;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .metrics-panel {
        grid-template-columns: 1fr;
    }
    
    .timer-display {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .choice-button {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}
