/* Global SAR Hub, article page styles. Header, nav and footer come from css/news.css. */

/* BREADCRUMB */
.article-breadcrumb {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 0;
}
.article-breadcrumb-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}
.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #5b8fff; }
.article-breadcrumb .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.25); }
.article-breadcrumb .current { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

/* MAIN */
.article-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}
.article-container {
    max-width: 760px;
    margin: 0 auto;
}

/* HEADER OF THE ARTICLE */
.article-header {
    margin-bottom: 32px;
    text-align: left;
}
.article-title {
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
}
.article-meta i { margin-right: 4px; opacity: 0.7; }
.article-meta .dot { color: rgba(255, 255, 255, 0.25); }

/* HERO MEDIA */
.article-hero {
    margin: 0 0 40px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.article-video-wrap {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
}
.article-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CONTENT */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}
.article-content p { margin: 0 0 22px; }
.article-content strong, .article-content b { color: #fff; }
.article-content a {
    color: #5b8fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover { color: #2A6BFF; }

/* SOURCE LINK */
.article-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 22px;
    background: rgba(42, 107, 255, 0.12);
    border: 1px solid rgba(42, 107, 255, 0.3);
    border-radius: 10px;
    color: #5b8fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-source-link:hover {
    background: rgba(42, 107, 255, 0.2);
    border-color: rgba(42, 107, 255, 0.5);
    transform: translateY(-1px);
}

/* SECTION TITLE */
.article-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2A6BFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 50px 0 22px;
}

/* USEFUL LINKS */
.article-links { margin-top: 30px; }
.article-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.article-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.article-link-item i:first-child {
    color: #5b8fff;
    font-size: 14px;
    flex-shrink: 0;
}
.article-link-label {
    flex: 1;
    word-break: break-word;
}
.article-link-arrow {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.article-link-item:hover {
    background: rgba(42, 107, 255, 0.1);
    border-color: rgba(42, 107, 255, 0.4);
    transform: translateX(2px);
}
.article-link-item:hover .article-link-arrow {
    color: #5b8fff;
    transform: translate(2px, -2px);
}

/* GALLERY */
.article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.article-gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.article-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.article-gallery-item figcaption {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-style: italic;
}

/* FOOTER OF THE ARTICLE */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.article-share { display: flex; align-items: center; gap: 10px; }
.article-share-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 6px;
}
.article-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.article-share-btn:hover {
    background: rgba(42, 107, 255, 0.15);
    border-color: rgba(42, 107, 255, 0.3);
    color: #5b8fff;
    transform: translateY(-1px);
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s;
}
.article-back:hover { color: #5b8fff; }

/* RELATED ARTICLES */
.article-related {
    max-width: 1100px;
    margin: 80px auto 0;
}
.article-related .article-section-title { text-align: center; }
.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.article-related-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.article-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(42, 107, 255, 0.4);
    box-shadow: 0 10px 30px rgba(42, 107, 255, 0.15);
}
.article-related-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.article-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.article-related-card:hover .article-related-media img { transform: scale(1.05); }
.article-related-body { padding: 18px 20px 22px; }
.article-related-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #fff;
}
.article-related-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 500;
}

/* NOT FOUND */
.article-not-found {
    text-align: center;
    padding: 60px 20px;
}
.article-not-found h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 14px;
}
.article-not-found p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px;
}

/* RESPONSIVE, only article specific overrides, the nav handles itself via news.css */
@media (max-width: 700px) {
    .article-title { font-size: 1.65rem; }
    .article-main { padding: 30px 16px 60px; }
    .article-content { font-size: 1rem; line-height: 1.75; }
    .article-footer { flex-direction: column; align-items: flex-start; }
    .article-gallery-item img { height: 160px; }
}
