/* FAQ Template - Mobile-First Accordion Style */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #10b981;
    --secondary: #059669;
    --accent: #14b8a6;
    --text: #111827;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --border: #e5e7eb;
}

body { 
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7; 
    padding: 12px;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Subtle gradient background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, 
        rgba(16, 185, 129, 0.05) 0%, 
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container { 
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Sticky header with blur */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: -12px -12px 16px -12px;
    padding: 16px 12px 12px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

h1 { 
    color: var(--text); 
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.2;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

h1::before {
    content: "💬";
    font-size: 1.75rem;
}




/* Main content card */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out;
}

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

article { 
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.75;
}

article p {
    margin-bottom: 14px;
}

article p:last-child {
    margin-bottom: 0;
}

article strong {
    color: var(--primary);
    font-weight: 600;
}

article ul, article ol {
    margin: 14px 0;
    padding-left: 20px;
}

article li {
    margin-bottom: 8px;
    position: relative;
}

article li::marker {
    color: var(--primary);
}

/* Accordion-style related questions */
.related-questions {
    margin-top: 20px;
}

.related-questions h2 {
    color: var(--text);
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.related-questions h2::before {
    content: "📚";
    font-size: 1.25rem;
}

.related-questions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-questions li {
    margin: 0;
}

/* Touch-optimized accordion items */
.related-questions a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9375rem;
    min-height: 64px;
    position: relative;
}

/* Green accent bar */
.related-questions a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chevron icon */
.related-questions a::after {
    content: "›";
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.related-questions a:active {
    transform: scale(0.98);
}

.related-questions a:hover {
    background: rgba(16, 185, 129, 0.02);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    padding-left: 24px;
}

.related-questions a:hover::before {
    height: 32px;
}

.related-questions a:hover::after {
    transform: translateX(2px);
    background: var(--primary);
    color: white;
}

footer {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--text-light);
    border: 1px solid var(--border);
    line-height: 1.6;
}

footer p {
    margin-bottom: 6px;
}

footer strong {
    color: var(--text);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Pull-to-refresh indicator (visual only) */
.pull-indicator {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    z-index: 100;
}

/* Desktop enhancements */
@media (min-width: 768px) {
    body {
        padding: 24px;
    }
    
    .header-sticky {
        margin: -24px -24px 24px -24px;
        padding: 20px 24px 16px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .content-card {
        padding: 32px;
        margin-bottom: 24px;
        border-radius: 20px;
    }
    
    article {
        font-size: 1.0625rem;
    }
    
    .related-questions h2 {
        font-size: 1.375rem;
        margin-bottom: 16px;
    }
    
    .related-questions ul {
        gap: 12px;
    }
    
    .related-questions a {
        padding: 20px 20px 20px 24px;
        font-size: 1rem;
        min-height: 72px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f9fafb;
        --text-light: #d1d5db;
        --bg: #111827;
        --border: #374151;
    }
    
    body::before {
        background: linear-gradient(180deg, 
            rgba(16, 185, 129, 0.08) 0%, 
            transparent 100%);
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* CTA Block Styles - FAQ Accordion Style */
.cta-block {
    margin: 24px 0;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out;
}

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

.cta-style-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cta-style-secondary {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid var(--primary);
    color: var(--text);
}

.cta-style-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.cta-style-minimal {
    background: transparent;
    border-top: 2px solid var(--border);
    padding-top: 24px;
    color: var(--text);
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 18px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-style-primary .cta-button {
    background: white;
    color: var(--primary);
}

.cta-style-primary .cta-button:active {
    transform: scale(0.98);
}

.cta-style-primary .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.cta-style-secondary .cta-button {
    background: var(--primary);
    color: white;
}

.cta-style-secondary .cta-button:hover {
    background: var(--secondary);
}

.cta-style-accent .cta-button {
    background: white;
    color: var(--accent);
}

.cta-style-accent .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.cta-style-minimal .cta-button {
    background: var(--primary);
    color: white;
}

.cta-style-minimal .cta-button:hover {
    background: var(--secondary);
}

@media (min-width: 768px) {
    .cta-block {
        padding: 32px;
        border-radius: 16px;
    }
    
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 16px 36px;
        font-size: 1rem;
    }
}


/* Back Navigation */
.top-nav {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95em;
    transition: background 0.3s;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Quick Answer Box */
.quick-answer {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.quick-answer-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #1e40af;
}

.quick-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Detailed Content */
.detailed-content {
    margin: 30px 0;
}

.detailed-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.detailed-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.detailed-content ul, 
.detailed-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.detailed-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Questions Section */
.questions-section {
    margin: 30px 0;
}

.questions-section h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}
