/**
 * Encontro com Deus - Stylesheet
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors from Cool & Calm palette */
    --primary-color: #3B82F6;
    --secondary-color: #16A34A;
    --accent-color: #FFF9E6;
    --surface-color: #FFFFFF;
    --text-color: #1F2937;

    /* Automatic variations */
    --primary-hover: #2563EB;
    --primary-light: #DBEAFE;
    --secondary-light: #DCFCE7;
    --bg-color: #FAFAFA;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;

    /* Typography */
    --font-serif: 'Crimson Pro', serif;
    --font-sans: 'Inter', sans-serif;

    /* Layout */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111827;
        --surface-color: #1F2937;
        --text-color: #F9FAFB;
        --text-muted: #9CA3AF;
        --border-color: #374151;
        --primary-light: #1E3A8A;
        --secondary-light: #14532D;
    }
}

[data-theme="dark"] {
    --bg-color: #111827;
    --surface-color: #1F2937;
    --text-color: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --primary-light: #1E3A8A;
    --secondary-light: #14532D;
}

[data-theme="light"] {
    --bg-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --primary-light: #DBEAFE;
    --secondary-light: #DCFCE7;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: calc(60px + env(safe-area-inset-top, 0));
    padding-bottom: 70px;
    min-height: 100vh;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* ===================================
   FIXED HEADER
   =================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-top, 0));
    padding-top: env(safe-area-inset-top, 0);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img.header-logo-img {
    height: 32px;
    /* Slightly smaller to fit nicely with text */
    width: auto;
    display: block;
}

.header-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    gap: 8px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: var(--border-radius);
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .desktop-nav .nav-link i {
        font-size: 1rem;
    }

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

    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
}

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

/* ===================================
   BOTTOM NAVIGATION (MOBILE ONLY)
   =================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--surface-color);
    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);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

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

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

@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    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-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    display: none;
    min-height: calc(100vh - 130px);
    padding: 24px 0;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ===================================
   HOME SECTION
   =================================== */
.hero-section {
    text-align: center;
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    /* Takes up good screen space */
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsive font size */
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.1;
    max-width: 800px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-verse {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 auto 32px;
    max-width: 700px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

[data-theme="dark"] .hero-verse {
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-verse .verse-text {
    display: block;
    margin-bottom: 8px;
}

.hero-verse .verse-ref {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: normal;
    color: var(--text-muted);
}

#start-encounter {
    margin: 0 auto;
    font-size: 1.2rem;
    padding: 18px 48px;
    border-radius: 50px;
    box-shadow: 0 10px 20px -10px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

#start-encounter:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(0, 123, 255, 0.6);
}

.mt-4 {
    margin-top: 2rem;
    width: 100%;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.stat-card {
    background: var(--surface-color);
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    flex: 1;
    min-width: 140px;
}

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

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.features-section {
    margin-top: 48px;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.feature-card {
    background: var(--surface-color);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    border-top-color: var(--primary-hover);
}

.feature-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--primary-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   ENCOUNTER SECTION
   =================================== */
.encounter-container {
    max-width: 800px;
    margin: 0 auto;
}

.timer-display {
    text-align: center;
    padding: 24px;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.timer-value {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-sans);
}

.timer-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 16px 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Connecting Line */
.progress-indicator::before {
    content: '';
    position: absolute;
    top: 36px;
    /* Center with the 40px circle height + padding */
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    position: relative;
    z-index: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.progress-step.completed .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.stage-content {
    background: var(--surface-color);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    min-height: 400px;
}

.stage-content h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.stage-content p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.song-item:hover {
    background: var(--surface-color);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.song-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-sans);
    margin-bottom: 2px;
}

.song-artist {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stage-tip {
    margin-top: 32px;
    padding: 16px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #854D0E;
    /* Darker yellow/brown for contrast on accent */
}

.stage-tip i {
    color: #854D0E;
    font-size: 1.25rem;
    margin-top: 2px;
}

.stage-tip p {
    font-size: 0.95rem;
    margin: 0;
    font-family: var(--font-sans);
    color: #854D0E;
}

/* ... Stage Inner Content ... */
.bible-reading h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.bible-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 32px;
    padding: 0 16px;
    border-left: 4px solid var(--primary-light);
}

.question-item,
.theme-item {
    background: var(--bg-color);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.question-number,
.theme-item i {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 24px;
}

.question-item p,
.theme-item p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
}

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

.reflection-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--surface-color);
}

.stage-controls {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.stage-controls .btn {
    flex: 1;
}

/* ===================================
   HISTORY SECTION
   =================================== */
.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-date {
    font-weight: 600;
    color: var(--text-color);
}

.history-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.history-reflection {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===================================
   GUIDE SECTION
   =================================== */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-intro {
    background: var(--primary-light);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 32px;
}

.guide-section {
    background: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.guide-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.guide-section h3 i {
    font-size: 1.5rem;
}

.guide-list {
    padding-left: 24px;
}

.guide-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.guide-list li strong {
    color: var(--primary-color);
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-section {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 24px;
}

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

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--bg-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    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: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===================================
   MODAL
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ... Music Player Card ... */
.music-player-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    overflow: hidden;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.music-player-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.music-player-info {
    text-align: center;
}

/* ===================================
   TOAST NOTIFICATION
   =================================== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--surface-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

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

@media (min-width: 768px) {
    .toast {
        bottom: 24px;
    }
}

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

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

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

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

/* ===================================
   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);
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   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;
}

.mt-1 {
    margin-top: calc(var(--spacing-unit) * 1);
}

.mt-2 {
    margin-top: calc(var(--spacing-unit) * 2);
}

.mt-3 {
    margin-top: calc(var(--spacing-unit) * 3);
}

.mt-4 {
    margin-top: calc(var(--spacing-unit) * 4);
}

.mb-1 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.mb-2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.mb-3 {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.mb-4 {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stage-content {
        padding: 20px;
    }

    .timer-value {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 3rem;
    }
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Action Buttons */
.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

@media (max-width: 480px) {
    .desktop-only {
        display: none;
    }
}
/* ===================================
   SHARE MODAL
   =================================== */
.share-modal-content {
    max-width: 500px;
}

.share-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-modal-body p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 0;
}

.share-link-container {
    display: flex;
    gap: 12px;
    padding: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-family: var(--font-sans);
    color: var(--text-color);
    font-size: 0.9rem;
    outline: none;
    text-overflow: ellipsis;
}

.share-link-container .btn {
    min-width: auto;
    padding: 8px 16px;
    min-height: 40px;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.social-share-btn {
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    padding: 12px;
    color: white;
    transition: var(--transition);
}

.social-share-btn i {
    font-size: 1.5rem;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.social-share-btn.whatsapp {
    background-color: #25D366;
}

.social-share-btn.facebook {
    background-color: #1877F2;
}

.social-share-btn.twitter {
    background-color: #000000;
}

.social-share-btn.linkedin {
    background-color: #0A66C2;
}

.social-share-btn.telegram {
    background-color: #24A1DE;
}

[data-theme="dark"] .social-share-btn.twitter {
    background-color: #FFFFFF;
    color: black;
}
