/* ======================================
   Article Detail Page Styles
   ====================================== */

/* Article Header */
.article-header {
    padding-top: 120px;
    padding-bottom: 0;
    background-color: var(--bg-darker);
}

.article-meta {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.article-meta-category {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-brass);
    display: inline-block;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(197, 179, 88, 0.3);
    padding-bottom: 0.2rem;
}

.article-meta-date {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--text-hagane);
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* Article Hero Image */
.article-hero {
    width: 80%;
    max-width: 800px;
    margin: 0 auto 4rem;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Body */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-hagane);
    margin-bottom: 1.8rem;
    letter-spacing: 0.02em;
}

.article-body .article-lead {
    font-size: 1.15rem;
    line-height: 2.1;
    color: var(--text-hagane);
    margin-bottom: 2.5rem;
}

/* Section Headings */
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-hagane);
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(197, 179, 88, 0.15);
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.article-body h2:first-child {
    margin-top: 0;
}

/* Article Divider */
.article-divider {
    width: 60px;
    height: 1px;
    background: rgba(197, 179, 88, 0.3);
    margin: 3rem auto;
    border: none;
}

/* Images in Article */
.article-body figure {
    max-width: 720px;
    margin: 3rem auto;
    position: relative;
}

.article-body figure.article-figure-wide {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.article-body figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body figcaption {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Blockquote */
.article-body blockquote {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    border-left: 2px solid var(--accent-brass);
    background: rgba(37, 37, 37, 0.4);
    position: relative;
}

.article-body blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-hagane);
    line-height: 2;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

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

.article-body blockquote cite {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: normal;
}

/* Strong emphasis */
.article-body strong {
    font-weight: 400;
    color: #fff;
}

/* Article Footer */
.article-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.article-series-note {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

/* Cross-post Link */
.article-crosspost {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(37, 37, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    transition: border-color 0.3s ease;
}

.article-crosspost:hover {
    border-color: rgba(197, 179, 88, 0.2);
}

.article-crosspost-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.article-crosspost-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-crosspost-text a {
    color: var(--accent-brass);
    transition: opacity 0.3s ease;
}

.article-crosspost-text a:hover {
    opacity: 0.8;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-nav-item--next {
    text-align: right;
    align-items: flex-end;
}

.article-nav-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-nav-title {
    font-size: 0.95rem;
    color: var(--text-hagane);
    transition: color 0.3s ease;
    line-height: 1.6;
}

.article-nav-item:hover .article-nav-title {
    color: var(--accent-brass);
}

/* Back to Articles */
.article-back {
    text-align: center;
    margin-top: 3rem;
}

.article-back a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(160, 160, 160, 0.3);
    padding-bottom: 0.2rem;
}

.article-back a:hover {
    color: var(--accent-brass);
    border-color: var(--accent-brass);
}

/* ======================================
   Articles List Page Styles
   ====================================== */

.articles-page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--bg-darker);
}

.articles-page-label {
    display: block;
    font-family: var(--font-ui);
    color: var(--accent-brass);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.articles-page-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.15em;
    color: var(--text-hagane);
    line-height: 1.6;
}

/* AI Notice */
.articles-ai-notice {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    text-align: center;
}

.articles-ai-notice p {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* Article Cards Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.articles-card {
    background-color: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.articles-card:hover {
    border-color: var(--accent-brass);
    transform: translateY(-4px);
}

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

.articles-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.articles-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.articles-card:hover .articles-card-image img {
    transform: scale(1.05);
}

.articles-card-content {
    padding: 1.2rem 1.4rem;
}

.articles-card-category {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-brass);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.articles-card-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.articles-card-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: var(--text-hagane);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card:hover .articles-card-title {
    color: var(--accent-brass);
}

.articles-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.articles-card-description {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Platform Links Section */
.articles-platform {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.articles-platform-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 auto 3rem;
    border: none;
}

.articles-platform-text {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.articles-platform-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.articles-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.articles-platform-link:hover {
    border-color: var(--accent-brass);
    color: var(--accent-brass);
}

.articles-platform-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.articles-platform-link[aria-label="note"] svg {
    width: 15px;
    height: 15px;
}

/* ======================================
   Responsive: Article Pages
   ====================================== */
@media (max-width: 768px) {
    .article-header {
        padding-top: 80px;
    }

    .article-meta {
        padding: 0 1.5rem 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
        letter-spacing: 0.04em;
    }

    .article-subtitle {
        font-size: 0.9rem;
    }

    .article-hero {
        margin-bottom: 3rem;
    }

    .article-body {
        padding: 0 1.5rem 3rem;
    }

    .article-body p {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .article-body .article-lead {
        font-size: 1.05rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }

    .article-body figure.article-figure-wide {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .article-body blockquote {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .article-body blockquote p {
        font-size: 1rem;
    }

    .article-footer {
        padding: 0 1.5rem 4rem;
    }

    .article-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .article-nav-item--next {
        text-align: left;
        align-items: flex-start;
    }

    /* Articles List */
    .articles-page-header {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .articles-page-title {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .articles-card-content {
        padding: 1rem 1.2rem;
    }

    .articles-card-title {
        font-size: 0.95rem;
    }

    .articles-platform {
        padding: 3rem 1.5rem 4rem;
    }

    .articles-platform-links {
        flex-direction: column;
        align-items: center;
    }

    .articles-platform-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding-top: 70px;
    }

    .article-meta {
        padding: 0 1rem 1rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-body {
        padding: 0 1rem 2.5rem;
    }

    .article-body p {
        font-size: 0.9rem;
    }

    .article-body h2 {
        font-size: 1.15rem;
    }

    .article-body figure.article-figure-wide {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .article-footer {
        padding: 0 1rem 3rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem 1rem;
    }
}
