/* ============================================
   ARTICLE PAGE STYLES - Clean Orange Editorial
   ONLY for news/view.php
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --tom-orange: #FF6B35;
    --tom-orange-light: #FFF5ED;
    --tom-orange-dark: #E55525;
    --tom-text: #1a1a1a;
    --tom-text-muted: #666;
    --tom-text-light: #999;
    --tom-border: #f0f0f0;
    --tom-bg: #fafafa;
}

/* Reset article page only */
body.article-page {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Mukta', 'Inter', sans-serif;
    color: var(--tom-text);
    line-height: 1.6;
}

body.article-page * {
    box-sizing: border-box;
}

/* Hide existing site header/nav on article page */
body.article-page > .utility-bar,
body.article-page > .main-header,
body.article-page > .main-nav,
body.article-page > .news-hub-bar,
body.article-page > .premium-strip,
body.article-page > .mobile-overlay,
body.article-page > .mobile-overlay-bg,
body.article-page > .main-footer,
body.article-page > .mobile-bottom-nav {
    display: none !important;
}

/* ============ ARTICLE HEADER (sticky compact bar) ============ */
.tom-article-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tom-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tom-back {
    color: var(--tom-text);
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
}

.tom-brand {
    font-size: 14px;
    font-weight: 800;
    color: var(--tom-text);
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    flex: 1;
}

.tom-brand .accent {
    color: var(--tom-orange);
}

.tom-actions {
    display: flex;
    gap: 14px;
    font-size: 18px;
    color: var(--tom-text);
}

.tom-actions a {
    color: var(--tom-text);
    text-decoration: none;
    cursor: pointer;
    padding: 4px;
}

.tom-actions a:hover {
    color: var(--tom-orange);
}

/* ============ ARTICLE CONTAINER ============ */
.tom-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

/* ============ HERO IMAGE (full width) ============ */
.tom-hero {
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* ============ ARTICLE BODY ============ */
.tom-body {
    padding: 18px 18px 30px;
}

/* Headline */
.tom-headline {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tom-text);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

/* Meta - simple, minimal */
.tom-meta {
    font-size: 13px;
    color: var(--tom-text-light);
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tom-border);
}

.tom-meta span {
    margin-right: 4px;
}

.tom-meta .dot {
    margin: 0 6px;
    color: #ccc;
}

/* Lead paragraph - bold opening */
.tom-lead {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--tom-text);
    margin: 0 0 18px;
}

/* Article content */
.tom-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d2d2d;
}

.tom-content p {
    margin: 0 0 16px;
}

.tom-content p:last-child {
    margin-bottom: 0;
}

/* ============ AUTHOR CARD (at bottom) ============ */
.tom-author-card {
    margin-top: 28px;
    padding: 16px;
    background: var(--tom-bg);
    border-radius: 10px;
    border-top: 3px solid var(--tom-orange);
    display: flex;
    align-items: center;
    gap: 14px;
}

.tom-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tom-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.tom-author-info {
    flex: 1;
}

.tom-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tom-text);
    margin: 0;
}

.tom-author-org {
    font-size: 12px;
    color: var(--tom-text-muted);
    margin-top: 2px;
}

/* ============ TAGS ============ */
.tom-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.tom-tag {
    background: var(--tom-bg);
    color: var(--tom-text-muted);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.tom-tag:hover {
    background: var(--tom-orange-light);
    color: var(--tom-orange);
}

/* ============ WHATSAPP CTA ============ */
.tom-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.tom-whatsapp .wa-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.tom-whatsapp .wa-text {
    flex: 1;
}

.tom-whatsapp .wa-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tom-whatsapp .wa-sub {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.tom-whatsapp .wa-btn {
    background: #fff;
    color: #25D366;
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
}

/* ============ SHARE ROW ============ */
.tom-share {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--tom-border);
}

.tom-share-label {
    font-size: 13px;
    color: var(--tom-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.tom-share-buttons {
    display: flex;
    gap: 8px;
}

.tom-share-btn {
    flex: 1;
    padding: 10px;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.tom-share-btn.fb { background: #1877F2; }
.tom-share-btn.tw { background: #1DA1F2; }
.tom-share-btn.wa { background: #25D366; }
.tom-share-btn:hover { opacity: 0.9; }

/* ============ RELATED NEWS ============ */
.tom-related {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 2px solid var(--tom-orange);
}

.tom-related-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tom-text);
    margin: 0 0 14px;
}

.tom-related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tom-border);
    text-decoration: none;
    color: inherit;
}

.tom-related-item:last-child {
    border-bottom: none;
}

.tom-related-img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #eee;
}

.tom-related-body {
    flex: 1;
    min-width: 0;
}

.tom-related-cat {
    font-size: 11px;
    color: var(--tom-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tom-related-headline {
    font-size: 14px;
    font-weight: 700;
    color: var(--tom-text);
    line-height: 1.3;
    margin: 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tom-related-time {
    font-size: 11px;
    color: var(--tom-text-light);
}

/* ============ TABLET / DESKTOP ============ */
@media (min-width: 768px) {
    .tom-article-header {
        padding: 14px 24px;
    }
    
    .tom-brand {
        font-size: 18px;
    }
    
    .tom-actions {
        font-size: 20px;
        gap: 20px;
    }
    
    .tom-hero {
        max-height: 480px;
    }
    
    .tom-body {
        padding: 30px 30px 50px;
    }
    
    .tom-headline {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .tom-meta {
        font-size: 14px;
    }
    
    .tom-lead {
        font-size: 20px;
    }
    
    .tom-content {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    .tom-hero {
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .tom-article {
        padding: 0 20px;
    }
}
