/**
 * Homem de Deus: Disciplina - Estilos Principais
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* === CSS VARIABLES === */
:root {
    /* Cores da paleta Amazon Orange - NÃO ALTERE! */
    --primary-color: #FF9900;
    --secondary-color: #232F3E;
    --accent-color: #37475A;
    --surface-color: #FFFFFF;
    --text-color: #146EB4;
    
    /* Variações automáticas */
    --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black);
    --primary-light: color-mix(in srgb, var(--primary-color) 15%, white);
    --bg-color: #ffffff;
    --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Layout */
    --border-radius: 16px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
    --bottom-nav-height: 65px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    
    /* UX Variables */
    --nav-bg-color: rgba(255, 255, 255, 0.85);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #121212;
        --surface-color: #1e1e1e;
        --text-color: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-color: #333333;
        --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
        --primary-light: rgba(255, 153, 0, 0.15);
        --text-muted: rgba(248, 250, 252, 0.75);
        --nav-bg-color: rgba(30, 30, 30, 0.85);
    }
    
    :root:not([data-theme="light"]) h1,
    :root:not([data-theme="light"]) h2,
    :root:not([data-theme="light"]) h3,
    :root:not([data-theme="light"]) h4,
    :root:not([data-theme="light"]) h5,
    :root:not([data-theme="light"]) h6 {
        color: #a8c7fa !important;
    }
}

:root[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #333333;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
    --primary-light: rgba(255, 153, 0, 0.15);
    --text-muted: rgba(248, 250, 252, 0.75);
    --nav-bg-color: rgba(30, 30, 30, 0.85);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6 {
    color: #a8c7fa !important;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove aquele piscar azul do Android/iOS ao clicar */
}

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HEADER FIXO === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--nav-bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-light);
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-logo h1,
:root[data-theme="dark"] .header-logo h1 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo i {
    color: var(--secondary-color);
}

/* Desktop Navigation - Escondido no Mobile */
.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

.container {
    padding: 16px;
    max-width: 100%;
    margin: 0 auto;
}

/* === SECTIONS === */
.section {
    display: none;
    animation: fadeInApp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active {
    display: block;
}

@keyframes fadeInApp {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    flex: 1;
    text-align: center;
}

.btn-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-2px);
}

.btn-share {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* === HOME SECTION - PREMIUM HERO === */
.premium-hero {
    margin-bottom: 32px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-header-card {
    background: linear-gradient(135deg, var(--surface-color), var(--bg-color));
    border-radius: var(--border-radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
}

.greeting-wrapper {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.greeting-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: var(--font-weight-bold);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-black);
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streak-pill {
    background: linear-gradient(135deg, var(--primary-color), #e68a00);
    border-radius: 100px;
    padding: 6px 16px 6px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.25);
    z-index: 1;
}

.streak-pill-icon {
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-pill-icon i {
    color: #e68a00;
    font-size: 1.1rem;
}

.streak-pill-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.streak-pill-number {
    font-weight: var(--font-weight-black);
    font-size: 1.2rem;
    line-height: 1;
}

.streak-pill-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    opacity: 0.9;
}

.verse-card-premium {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px 32px;
    position: relative;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.verse-card-premium::after {
    content: '\f10d'; /* Ícone de aspas do FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 6rem;
    color: var(--primary-light);
    opacity: 0.3;
    z-index: 0;
    transform: rotate(10deg);
}

.verse-card-premium blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.verse-card-premium cite {
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: block;
    text-align: right;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .hero-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .verse-card-premium::after {
        right: -10px;
        opacity: 0.15;
    }
}


/* === NAVIGATION GRID === */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.nav-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.nav-card.special {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
}

.nav-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.nav-card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-card.special .nav-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.nav-card.special .nav-card-icon i {
    color: white;
}

.nav-card:hover .nav-card-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.nav-card:hover .nav-card-icon i {
    color: white;
}

.nav-card h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 8px;
}

.nav-card.special h3,
:root[data-theme="dark"] .nav-card.special h3 {
    color: white !important;
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.nav-card.special p {
    color: rgba(255, 255, 255, 0.9);
}

.nav-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    min-width: 24px;
    text-align: center;
}

.nav-card.special .nav-card-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    min-width: 48px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === DEVOTIONAL STYLES === */
.devotional-content {
    max-width: 600px;
    margin: 0 auto;
}

.devotional-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.devotional-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    font-weight: var(--font-weight-medium);
}

.devotional-verse {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.devotional-verse::after {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: 0;
    transform: rotate(-10deg);
}

.devotional-verse blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.devotional-verse blockquote::before, .devotional-verse blockquote::after {
    content: '"';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5em;
    vertical-align: bottom;
    line-height: 0;
}

.devotional-verse cite {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    position: relative;
    z-index: 1;
    display: inline-block;
    background: var(--surface-color);
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.devotional-reflection h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 16px;
}

.devotional-reflection p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.devotional-reflection strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.devotional-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* === CHALLENGES STYLES === */
.challenges-progress {
    margin-bottom: 24px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar.large {
    height: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.challenge-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.challenge-card.completed {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.15);
}

.challenge-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.challenge-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-top: 2px;
}

.challenge-card:hover .challenge-checkbox:not(.checked) {
    border-color: var(--primary-color);
}

.challenge-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.challenge-content {
    flex: 1;
}

.challenge-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 8px;
}

.challenge-description {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.challenge-points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.challenges-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.challenges-page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

/* === QUIZ STYLES === */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    margin-bottom: 32px;
    text-align: center;
}

.quiz-question {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-button {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.option-button:hover {
    border-color: var(--primary-color);
    background: linear-gradient(90deg, var(--surface-color) 0%, var(--primary-light) 100%);
    transform: translateX(4px);
}

.option-button.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.option-button.correct {
    border-color: #22c55e;
    background: #22c55e;
    color: white;
}

.option-button.incorrect {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.quiz-results {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.results-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.results-score {
    margin-bottom: 32px;
}

.results-score i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.results-score h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 12px;
}

.score-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
}

.results-level {
    margin-bottom: 32px;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 12px;
}

.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === EVOLUTION STYLES === */
.evolution-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.level-progress {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.level-progress h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: center;
}

.badges-section {
    margin-bottom: 32px;
}

.badges-section h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 20px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.badge-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.badge-item.earned {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.25);
    animation: badge-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes badge-pop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.badge-item.earned .badge-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.badge-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.badge-name {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.badge-item.earned .badge-name {
    color: white;
}

.reflection-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.reflection-section h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 16px;
}

.reflection-card label {
    display: block;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: 12px;
}

.reflection-card textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 16px;
}

.reflection-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.reflection-card textarea::placeholder {
    color: var(--text-muted);
}

/* === PRAYER STYLES === */
.prayer-themes h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.theme-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.theme-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.theme-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.theme-card:hover .theme-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.theme-card:hover .theme-icon i {
    color: white;
}

.theme-card h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 8px;
}

.theme-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.prayer-session {
    max-width: 600px;
    margin: 0 auto;
}

.prayer-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    text-align: center;
}

.prayer-content h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: 24px;
}

.prayer-text {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
    border-left: 4px solid var(--primary-color);
}

.prayer-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
}

.prayer-text p:last-child {
    margin-bottom: 0;
}

.prayer-timer {
    margin-bottom: 32px;
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.timer-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.prayer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--nav-bg-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    flex: 1; /* Distribui espaçamento por igual */
    max-width: 70px; /* Impede esticamentos extremos */
    min-height: 50px;
    border-radius: 8px;
    text-align: center;
}

.nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-item i {
    font-size: 18px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    max-width: 90%;
    box-shadow: var(--shadow-heavy);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

/* === FAQ SECTION === */
.faq-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 24px;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-color);
    border: none;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.faq-answer:not([hidden]) {
    padding: 16px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* === FOOTER === */
.app-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    margin-top: 48px;
}

.app-footer p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.b20-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition);
}

.b20-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/* === UTILITY CLASSES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
    height: 20px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === RIPPLE EFFECT === */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* === ENHANCED UX INTERACTIONS (NATIVE APP FEEL) === */

/* Better tactile feedback for interactive elements */
.btn:active, 
.nav-card:active, 
.option-button:active,
.theme-card:active,
.faq-question:active,
.btn-back:active,
.stat-card:active,
.badge-item:active,
.btn-share:active {
    transform: scale(0.96) !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Make nav items more tactile on mobile without getting too small */
.nav-item:active {
    transform: scale(0.92) !important;
    transition: transform 0.1s ease-out !important;
}

/* Ensure smooth hover states globally */
.btn, .nav-card, .option-button, .theme-card, .btn-back {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Focus on inputs scales slightly to focus user attention */
input:focus, textarea:focus {
    transform: scale(1.01);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.15) !important;
}
