/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #fafafa;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.nav {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Article Styles */
.phobia-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.phobia-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.phobia-content {
    padding: 3rem 2rem;
}

/* Phobia Description */
.phobia-description {
    margin-bottom: 3rem;
}

.phobia-description h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.phobia-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Phobia Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-card li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Help Section */
.help-section {
    background: #e8f4f8;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 3rem;
}

.help-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.help-section p {
    margin-bottom: 1rem;
    color: #555;
}

.help-section strong {
    color: #2c3e50;
}

/* Phobia Grid (Homepage) */
.phobia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.phobia-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phobia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.phobia-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.phobia-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phobia-card h3 a:hover {
    color: #667eea;
}

.phobia-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.intro-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Phobia List Section */
.phobia-list-section {
    margin-bottom: 4rem;
}

.phobia-list-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer em {
    font-style: normal;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 2rem;
    }

    .article-header {
        padding: 2rem 1rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .phobia-content {
        padding: 2rem 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phobia-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phobia-card {
        padding: 1.5rem;
    }

    .intro-section {
        padding: 2rem 1.5rem;
    }

    .intro-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .phobia-description h2,
    .phobia-list-section h2 {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.nav-link:focus,
.read-more:focus,
.phobia-card h3 a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }

    .phobia-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Related Phobias Section */
.related-phobias {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-phobias h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-phobia-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-phobia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-phobia-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.related-phobia-card h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-phobia-card h3 a:hover {
    color: #764ba2;
}

.related-phobia-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-link:hover {
    color: #764ba2;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-phobia-card {
        padding: 1.25rem;
    }
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.statistics-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 2rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}
