/**
 * Evangelismo Eficaz - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* === CSS VARIABLES === */
:root {
    /* Cores da paleta escolhida */
    --primary-color: #dc2626; /* Vermelho moderno e acessível */
    --secondary-color: #b91c1c;
    --accent-color: #991b1b;
    --surface-color: #ffffff;
    --text-color: #1f2937; /* Cinza escuro para melhor legibilidade que vermelho escuro */
    
    /* Variações e cores de fundo */
    --primary-hover: #ef4444;
    --primary-light: #fee2e2;
    --bg-color: #f9fafb;
    --text-muted: #9ca3af;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    
    /* Sombras */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --border-radius: 12px;
    --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-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #ef4444; /* Vermelho mais brilhante no modo escuro para contraste */
    --primary-hover: #f87171;
    --primary-light: #450a0a; /* Fundo vermelho MUITO escuro para manter constraste com texto claro */
    --surface-color: #1f2937;
    --bg-color: #111827;
    --text-color: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #374151;
    
    /* Ajuste de sombras para modo escuro */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

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

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

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

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

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

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

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

/* === HEADER === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--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(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo h1 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 28px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.header-logo i {
    margin-right: 8px;
}

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

@media (min-width: 900px) {
    .desktop-nav {
        display: flex;
        gap: 4px;
    }
    
    .desktop-nav .nav-link {
        padding: 8px 12px;
        border-radius: 8px;
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .desktop-nav .nav-link:hover,
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
}

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

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

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

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-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 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
    min-height: 48px;
}

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

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

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

/* FAB Global Floating */
.global-fab {
    position: fixed;
    right: 24px;
    bottom: calc(var(--bottom-nav-height) + 24px);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    border: none;
    box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.global-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.5);
}

.global-fab:active {
    transform: scale(0.9) rotate(90deg);
}

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

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

.section.active {
    display: block;
}

@media (min-width: 900px) {
    .section {
        min-height: calc(100vh - var(--header-height));
    }
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === HERO SECTION === */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-image: linear-gradient(to bottom, rgba(7, 12, 30, 0.65), rgba(7, 12, 30, 0.9)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    border-radius: calc(var(--border-radius) * 2);
    margin-bottom: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #e2e8f0;
    margin-bottom: 48px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 2vw, 16px);
    max-width: 480px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08); /* glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: clamp(12px, 3vw, 24px) clamp(8px, 2vw, 16px);
    border-radius: calc(var(--border-radius) * 1.2);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(251, 191, 36, 0.4); /* subtle golden border on hover */
}

.stat-number {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #fbbf24; /* Golden glow color matching the prompt */
    margin-bottom: clamp(2px, 1vw, 4px);
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.stat-label {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px var(--primary-light));
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.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(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

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

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* === CONTACTS === */
.contacts-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.contacts-filters .form-select,
.contacts-filters .form-input {
    flex: 1;
    min-width: 200px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: var(--surface-color);
    border: none;
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--border-color);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.contact-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.contact-actions {
    display: flex;
    gap: 8px;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 4px;
}

.contact-actions .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    color: var(--text-secondary);
}

.contact-actions .btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.status-conversando { background: #fef3c7; color: #b45309; }
.status-interessado { background: #dbeafe; color: #1d4ed8; }
.status-acompanhando { background: #d1fae5; color: #047857; }
.status-convertido { background: #fce7f3; color: #be185d; }

/* Injects side-bar border colors dynamically based on the badge */
.contact-card:has(.status-conversando)::before { background: #f59e0b; }
.contact-card:has(.status-interessado)::before { background: #3b82f6; }
.contact-card:has(.status-acompanhando)::before { background: #10b981; }
.contact-card:has(.status-convertido)::before { background: #ec4899; }

.contact-notes, .contact-prayer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.contact-notes i, .contact-prayer i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 1rem;
    opacity: 0.8;
}

.contact-prayer {
    background: rgba(var(--primary-color-rgb), 0.05);
    color: var(--text-color);
}

.contact-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.contact-quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.contact-quick-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* === APPROACHES === */
.approaches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .approaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.approach-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-light);
}

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

.approach-questions {
    margin-bottom: 20px;
}

.approach-questions h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.approach-questions ul {
    list-style: none;
    padding-left: 0;
}

.approach-questions li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.approach-questions li:last-child {
    border-bottom: none;
}

/* === VERSES === */
.verses-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.verse-category {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-light);
}


/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: 24px;
}

/* === TOAST === */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
}

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

.toast {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

/* === FAQ === */
.faq-section {
    background: var(--bg-color);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--bg-color);
    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(--border-color);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer[hidden] {
    display: none;
}

/* === FOOTER === */
.app-footer {
    background: var(--surface-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.app-footer p {
    margin-bottom: 8px;
}

.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);
}

/* === 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-0 { margin-bottom: 0; }
.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); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .contacts-filters {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

/* === PRINT STYLES === */
@media print {
    .app-header,
    .bottom-nav,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        padding: 0;
    }
    
    .section {
        display: block !important;
        page-break-after: always;
    }
}

/* === UX ACCORDION === */
details.ux-accordion {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

details.ux-accordion[open] {
    box-shadow: var(--shadow-medium);
}

details.ux-accordion > summary {
    list-style: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    user-select: none;
}

details.ux-accordion > summary::-webkit-details-marker {
    display: none;
}

details.ux-accordion[open] > summary {
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

details.ux-accordion > summary i.fa-chevron-down {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

details.ux-accordion[open] > summary i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 16px 20px;
    color: var(--text-secondary);
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* === APPROACH CARDS PREMIUM STYLING === */
.approach-card {
    border: none !important;
    background: var(--surface-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border-radius: calc(var(--border-radius) * 1.5) !important;
    margin-bottom: 20px !important;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-card > summary {
    padding: clamp(16px, 4vw, 24px) clamp(16px, 4vw, 24px) !important;
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.approach-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.approach-card:hover .approach-icon {
    transform: scale(1.1) rotate(-5deg);
}

.approach-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.approach-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.approach-section {
    margin-bottom: clamp(16px, 4vw, 24px);
    background: var(--bg-color);
    padding: clamp(12px, 4vw, 20px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.approach-card .accordion-content {
    padding: clamp(12px, 3vw, 24px) clamp(12px, 3vw, 24px);
}

.approach-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.approach-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.approach-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 3px;
    flex-shrink: 0; /* Impede o ícone de ser esmagado pelo texto */
}

.approach-strategy {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    background: rgba(var(--primary-color-rgb), 0.05); /* if not defined will fallback smoothly */
    padding: 16px;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.approach-verses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.verse-tag {
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.verse-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

.approach-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}

/* === FOLLOW-UP & PRAYERS === */
.followup-dashboard {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.followup-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.1);
}

.followup-stats {
    background: linear-gradient(135deg, var(--primary-light), var(--surface-color));
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.followup-stats h3 {
    margin-bottom: 24px;
    color: var(--text-color);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.followup-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.followup-stats .stat-card {
    background: var(--surface-color);
    border: none;
    padding: 20px 8px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.3s;
    min-width: 0;
}

.followup-stats .stat-card:hover {
    transform: translateY(-4px);
}

.followup-stats .stat-number {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: none;
}

.followup-stats .stat-label {
    color: var(--text-secondary);
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    word-break: break-word;
    hyphens: auto;
}

.followup-list, .templates-grid, .prayer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .followup-list, .templates-grid, .prayer-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.followup-card, .template-card, .prayer-item {
    background: var(--surface-color);
    border: none;
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.followup-card:hover, .template-card:hover, .prayer-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.followup-card.urgent::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #ef4444; }
.followup-card.medium::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #f59e0b; }
.followup-card.recent::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #10b981; }

.followup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.followup-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.followup-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.followup-info, .template-message, .prayer-content p {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.followup-timing, .template-timing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.followup-actions, .template-actions, .prayer-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.followup-actions .btn, .template-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px;
}

.template-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.template-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.template-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.template-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.template-message {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.03);
}

.prayer-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.prayer-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: 500;
}

.prayer-actions {
    justify-content: flex-end;
    border-top: none;
    padding-top: 0;
}

.prayer-actions .btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.prayer-actions .btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--surface-color);
    border-radius: calc(var(--border-radius) * 1.5);
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

/* === FOOTER === */
.app-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 48px;
    margin-top: 64px;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.02);
}

.app-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.app-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-color);
    font-family: var(--font-family-primary);
}

.app-footer-brand img {
    height: 24px;
    width: auto;
}

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

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

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

.app-footer .b20-link {
    font-weight: 600;
    color: var(--primary-color);
}

.app-footer .b20-link:hover {
    text-decoration: underline;
}

.app-footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
