/* ─── Column Article Styles ─── */
/* Supplements top.css for column article pages */

/* ─── Article Container ─── */
.column-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Breadcrumb ─── */
.article-breadcrumb {
    padding-top: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--accent);
}

.article-breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* ─── Article Header ─── */
.article-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.article-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(108, 180, 238, 0.2);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.article-meta time {
    color: var(--text-secondary);
}

/* ─── Hero Image ─── */
.article-hero-image {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 56px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out 0.4s both;
    aspect-ratio: 1200 / 630;
    background: var(--panel-bg);
}

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

/* Placeholder when no image is loaded yet */
.article-hero-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* ─── Article Body ─── */
.article-body {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.12em;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(108, 180, 238, 0.2);
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-body p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 2.1;
    margin-bottom: 24px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 400;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.article-body a:hover {
    opacity: 1;
}

/* ─── Key Point Box ─── */
.key-point {
    background: rgba(108, 180, 238, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
    padding: 24px 28px;
    margin: 36px 0;
}

.key-point p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 2;
}

.key-point strong {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* ─── Comparison Table ─── */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

.comparison-table th {
    background: rgba(108, 180, 238, 0.12);
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
}

.comparison-table td {
    padding: 14px 20px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--panel-bg);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ─── Info Card (inline) ─── */
.info-card {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    margin: 28px 0;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(108, 180, 238, 0.2);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: rgba(108, 180, 238, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-card-icon svg {
    width: 22px;
    height: 22px;
}

.info-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.9;
}

/* ─── Ordered / Unordered Lists ─── */
.article-body ul,
.article-body ol {
    margin: 20px 0 28px 0;
    padding-left: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 2;
    padding: 6px 0 6px 28px;
    position: relative;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.article-body ol {
    counter-reset: article-ol;
}

.article-body ol li {
    counter-increment: article-ol;
}

.article-body ol li::before {
    content: counter(article-ol) ".";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-size: 0.85rem;
    font-family: var(--font);
    opacity: 0.8;
}

/* ─── Article CTA ─── */
.article-cta {
    text-align: center;
    padding: 80px 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(108, 180, 238, 0.15);
    position: relative;
}

.article-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(108, 180, 238, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.article-cta h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

.article-cta p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.8;
}

.article-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    border: 2px solid var(--accent);
    border-radius: 36px;
    background: rgba(108, 180, 238, 0.12);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font);
    font-size: 1.05rem;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 40px rgba(108, 180, 238, 0.15);
}

.article-cta .cta-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .article-cta .cta-btn:hover {
        background: rgba(108, 180, 238, 0.25);
        box-shadow: 0 0 60px rgba(108, 180, 238, 0.35);
        transform: translateY(-3px);
    }
    .article-cta .cta-btn:hover svg {
        transform: translateX(4px);
    }
}

/* ─── Related Articles ─── */
.related-articles {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-articles h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    color: var(--text-secondary);
    border: none;
    padding: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    padding: 20px 24px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (hover: hover) {
    .related-card:hover {
        border-color: rgba(108, 180, 238, 0.3);
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.04);
    }
}

.related-card-title {
    font-size: 0.88rem;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin-bottom: 6px;
}

.related-card-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Column Index Page ─── */
.column-index {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.column-index-header {
    text-align: center;
    padding-top: 120px;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.column-index-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.column-index-header p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 2;
}

.column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.column-card {
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
    .column-card:hover {
        border-color: rgba(108, 180, 238, 0.3);
        transform: translateY(-6px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 180, 238, 0.1);
    }
}

.column-card-image {
    aspect-ratio: 1200 / 630;
    background: rgba(108, 180, 238, 0.05);
    overflow: hidden;
}

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

@media (hover: hover) {
    .column-card:hover .column-card-image img {
        transform: scale(1.05);
    }
}

.column-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-card-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.column-card-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.8;
    flex: 1;
}

.column-card-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 12px;
    letter-spacing: 0.04em;
}

/* ─── Back to top link ─── */
.back-to-column {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-to-column:hover {
    opacity: 1;
}

.back-to-column svg {
    width: 16px;
    height: 16px;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .column-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

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

    .article-hero-image {
        border-radius: 14px;
        margin-bottom: 40px;
    }

    .article-body h2 {
        font-size: 1.2rem;
        margin-top: 44px;
    }

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

    .comparison-table th,
    .comparison-table td {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .info-card {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .article-cta {
        padding: 60px 16px;
    }

    .article-cta .cta-btn {
        padding: 16px 32px;
        font-size: 0.95rem;
    }

    .column-index-header {
        padding-top: 80px;
        margin-bottom: 40px;
    }

    .column-index-header h1 {
        font-size: 1.4rem;
    }

    .column-card-body {
        padding: 20px;
    }
}
