/* Global Anime News Theme - Professional News Design */
:root {
    --primary-blue: #2563EB;
    --primary-teal: #06B6D4;
    --accent-cyan: #0EA5E9;
    --bg-light: #FFFFFF;
    --bg-off-white: #FAFAFA;
    --bg-gray: #F4F4F5;
    --text-dark: #18181B;
    --text-body: #3F3F46;
    --text-muted: #71717A;
    --text-light: #A1A1AA;
    --border-light: #E4E4E7;
    --border-medium: #D4D4D8;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-off-white);
    color: var(--text-body);
    line-height: 1.6;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Site Container */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: var(--primary-blue);
    border-bottom: none;
}

.top-bar-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all var(--transition-speed);
    padding: 4px 8px;
    border-radius: 6px;
}

.top-bar-social a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

/* Site Header */
.site-header {
    background: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header-brand {
    display: flex;
    justify-content: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 60px;
    width: auto;
}

.brand-text {
    text-align: left;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Main Navigation */
.main-navigation {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--bg-gray);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-speed);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: var(--bg-gray);
    color: var(--primary-blue);
}

/* Main Content */
.site-main {
    flex: 1;
}

/* Featured Section */
.featured-section {
    background: var(--bg-off-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
}

.featured-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--bg-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 28px;
    border-radius: 6px;
}

.featured-article {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 48px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition-speed);
}

.featured-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-content {
    max-width: 800px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.featured-category {
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-divider {
    color: var(--border-medium);
}

.featured-date {
    color: var(--text-muted);
}

.featured-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-title a {
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.featured-title a:hover {
    color: var(--primary-blue);
}

.featured-summary {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 24px;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-blue);
    color: var(--bg-light);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.featured-button:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* News Grid Section */
.news-grid-section {
    padding: 72px 0;
}

.section-heading {
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-line {
    width: 70px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0;
    transition: all var(--transition-speed);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 24px 28px 28px 28px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.news-card:hover .news-card-title {
    color: var(--primary-blue);
}

.news-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0 0 16px 0;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--border-medium);
}

/* Article Page */
.article-page {
    background: var(--bg-light);
}

.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-light);
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: var(--border-medium);
}

.breadcrumb-current {
    color: var(--text-body);
    font-weight: 600;
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-author {
    font-weight: 600;
    color: var(--primary-blue);
}

.meta-separator {
    color: var(--border-medium);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.article-tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
}

.article-body {
    padding: 60px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
}

.article-content h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-blue);
    padding-left: 16px;
}

.article-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-blue);
    background: var(--bg-off-white);
    padding: 24px 28px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-body);
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--primary-teal);
}

.article-content img {
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Q&A Module */
.qa-module {
    padding: 72px 0;
    background: var(--bg-off-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.module-header {
    margin-bottom: 32px;
}

.module-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.qa-question-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qa-question-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--bg-light);
    border-radius: 10px;
    font-size: 20px;
}

.qa-question-content {
    flex: 1;
}

.qa-question-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.qa-question-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

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

.qa-answer-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.qa-answer-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qa-answer-accepted {
    border-color: var(--primary-teal);
    background: var(--bg-light);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
}

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

.qa-answer-author {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 15px;
}

.qa-accepted-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-teal);
    color: var(--bg-light);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
}

.qa-answer-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
}

.qa-answer-time {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
}

/* FAQ Module */
.faq-module {
    padding: 72px 0;
}

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

.faq-details {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-details:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-details[open] {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-summary {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    background: var(--bg-gray);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 12px;
    transition: transform 0.2s;
}

.faq-details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-question-text {
    flex: 1;
}

.faq-answer-content {
    padding: 0 20px 20px 52px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

/* Related Module */
.related-module {
    padding: 72px 0;
    background: var(--bg-off-white);
    border-top: 1px solid var(--border-light);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.related-article-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0;
    transition: all var(--transition-speed);
    overflow: hidden;
}

.related-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.related-article-card .card-content {
    padding: 20px 24px 24px 24px;
}

.related-article-card .card-image {
    height: 160px;
}

.related-article-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color var(--transition-speed);
}

.related-article-card:hover .related-article-title {
    color: var(--primary-blue);
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Header */
.category-header {
    background: var(--bg-light);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-light);
}

.category-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-underline {
    width: 70px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Page Content */
.page-content-wrapper {
    background: var(--bg-light);
}

.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-light);
}

.page-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-summary {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.page-divider {
    width: 70px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.page-body {
    padding: 60px 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    color: var(--primary-teal);
}

/* Pagination */
.pagination {
    padding: 72px 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-body);
    transition: all var(--transition-speed);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-link:hover {
    background: var(--primary-blue);
    color: var(--bg-light);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pagination-current {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: #FFFFFF;
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.footer-info {
    max-width: 500px;
}

.footer-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        white-space: nowrap;
    }

    .featured-article {
        padding: 28px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 28px;
    }

    .article-title {
        font-size: 32px;
    }
}