/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
    line-height: 1.8;
    color: #2A2A2A;
    background: #FAF8F3;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and navigation */
header {
    background: #4A1518;
    color: white;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Main content */
main {
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

/* FAQ-specific styles */
.faq-single {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    border-bottom: 2px solid #8B1A1A;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.faq-header h1 {
    color: #4A1518;
    margin-bottom: 0.5rem;
}

.faq-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-meta span {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.category {
    background: #8B1A1A;
    color: white;
}

.street-tested {
    background: #C41E3A;
    color: white;
}

.soul-stages {
    background: #5B3A8B;
    color: white;
}

/* Special callout boxes */
.foundation-problem {
    background: #FFF5F5;
    border-left: 5px solid #8B1A1A;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.foundation-problem h2 {
    color: #6B0000;
    margin-bottom: 1rem;
}

.quick-answer {
    background: #F5FFF5;
    border-left: 5px solid #2E7D52;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.quick-answer h2 {
    color: #1A5C38;
    margin-bottom: 1rem;
}

/* Content styling */
.faq-content h2 {
    color: #4A1518;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #E8D0D0;
    padding-bottom: 0.5rem;
}

.faq-content h3 {
    color: #3D1515;
    margin: 1.5rem 0 1rem 0;
}

/* Related questions */
.related-questions, .next-questions {
    background: #FAF5F5;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.related-questions h2, .next-questions h2 {
    color: #4A1518;
    margin-bottom: 1rem;
    border: none;
}

.related-links, .next-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-link, .next-link {
    display: inline-block;
    color: #8B1A1A;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 3px;
    transition: background 0.3s;
}

.related-link:hover, .next-link:hover {
    background: #F5EEEE;
}

/* FAQ index page */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 3px solid #8B1A1A;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2 {
    color: #4A1518;
    margin-bottom: 1rem;
}

.question-preview {
    display: block;
    color: #8B1A1A;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F5EEEE;
    transition: color 0.3s;
}

.question-preview:hover {
    color: #6B0000;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: #8B1A1A;
    text-decoration: none;
    font-weight: bold;
}

/* Search functionality */
.search-container {
    margin: 2rem 0;
    text-align: center;
}

#faq-search {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid #D4A0A0;
    border-radius: 25px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
}

#faq-search:focus {
    border-color: #8B1A1A;
}

#search-results {
    margin-top: 1rem;
    text-align: left;
}

.search-result {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-result h3 {
    margin-bottom: 0.5rem;
}

.search-result a {
    color: #4A1518;
    text-decoration: none;
}

.search-result a:hover {
    color: #8B1A1A;
}

.foundation-snippet {
    color: #6B0000;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.quick-snippet {
    color: #1A5C38;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.result-meta {
    margin-top: 0.5rem;
}

.category-tag {
    background: #8B1A1A;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.street-level-tag {
    background: #C41E3A;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Home page hero */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #8B1A1A 0%, #4A1518 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.5);
    transition: background 0.3s;
}

.cta-button:hover {
    background: rgba(255,255,255,0.35);
    color: white;
}

/* Question cards */
.featured-questions {
    margin: 3rem 0;
}

.featured-questions h2 {
    text-align: center;
    color: #4A1518;
    margin-bottom: 2rem;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.question-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 3px solid #8B1A1A;
}

.question-card:hover {
    transform: translateY(-5px);
}

.question-card h3 {
    margin-bottom: 1rem;
}

.question-card a {
    color: #4A1518;
    text-decoration: none;
}

.question-card a:hover {
    color: #8B1A1A;
}

/* FAQ navigation */
.faq-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #F5EEEE;
}

.prev-faq, .next-faq {
    color: #8B1A1A;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.prev-faq:hover, .next-faq:hover {
    background: #F5EEEE;
}

/* Footer */
footer {
    background: #4A1518;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #E8C8C8;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .faq-meta {
        flex-direction: column;
    }

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

    .faq-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}
