/* =============================================
   NEWS DETAILS PAGE STYLES
   ============================================= */

/* Theme Variables */
:root {
    --black: #000000;
    --noir: #0a0608;
    --charcoal: #14101a;
    --slate: #1c1624;
    --steel: #2d2438;
    --silver: #9a8fa8;
    --pearl: #f0eaf5;
    --white: #ffffff;
    --ruby: #e31b54;
    --crimson: #c41040;
    --gold: #f5a623;
    --amber: #ffb347;
    --burgundy: #6b1c3a;
    --royal-purple: #4a1259;
    --deep-violet: #2d1b4e;
    --text: var(--pearl);
    --text-muted: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.06);
    --font-display: 'Bebas Neue', 'Vazirmatn', sans-serif;
    --font-body: 'Vazirmatn', 'Tajawal', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme Colors */
[data-theme="ocean"] { --ruby: #0ea5e9; --crimson: #0284c7; --gold: #38bdf8; --amber: #7dd3fc; --burgundy: #0c4a6e; }
[data-theme="emerald"] { --ruby: #10b981; --crimson: #059669; --gold: #34d399; --amber: #6ee7b7; --burgundy: #064e3b; }
[data-theme="purple"] { --ruby: #a855f7; --crimson: #9333ea; --gold: #c084fc; --amber: #d8b4fe; --burgundy: #4c1d95; }
[data-theme="sunset"] { --ruby: #f97316; --crimson: #ea580c; --gold: #fb923c; --amber: #fdba74; --burgundy: #7c2d12; }
[data-theme="rose"] { --ruby: #ec4899; --crimson: #db2777; --gold: #f472b6; --amber: #f9a8d4; --burgundy: #831843; }
[data-theme="red"] { --ruby: #ef4444; --crimson: #dc2626; --gold: #f87171; --amber: #fca5a5; --burgundy: #7f1d1d; }
[data-theme="darkred"] { --ruby: #b91c1c; --crimson: #991b1b; --gold: #dc2626; --amber: #ef4444; --burgundy: #450a0a; }
[data-theme="yellow"] { --ruby: #eab308; --crimson: #ca8a04; --gold: #facc15; --amber: #fde047; --burgundy: #713f12; }
[data-theme="darkyellow"] { --ruby: #a16207; --crimson: #854d0e; --gold: #ca8a04; --amber: #eab308; --burgundy: #422006; }

/* Hero Article Header */
.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
}

.article-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, var(--noir) 0%, transparent 30%, transparent 40%, rgba(10,6,8,0.95) 100%),
        linear-gradient(90deg, var(--noir) 0%, transparent 50%);
}

.article-hero__content {
    position: relative;
    z-index: 10;
    padding: 60px;
    max-width: 900px;
    width: 100%;
}

.article-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.article-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--white);
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--silver);
    font-size: 0.95rem;
}

.article-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-hero__meta-item i {
    color: var(--gold);
}

/* Article Content */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.article-content {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 40px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--pearl);
    margin-bottom: 24px;
}

.article-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 24px 0;
}

.article-content a {
    color: var(--gold);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--ruby);
}

/* Embed Video */
.article-embed {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--charcoal);
    aspect-ratio: 16/9;
}

.article-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.share-section__label {
    font-size: 1rem;
    color: var(--silver);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-section__label i {
    color: var(--gold);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--silver);
    font-size: 1.2rem;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.share-btn--facebook:hover { 
    background: #1877f2; 
    border-color: #1877f2; 
    color: white; 
}

.share-btn--twitter:hover { 
    background: #1da1f2; 
    border-color: #1da1f2; 
    color: white; 
}

.share-btn--telegram:hover { 
    background: #0088cc; 
    border-color: #0088cc; 
    color: white; 
}

.share-btn--whatsapp:hover { 
    background: #25d366; 
    border-color: #25d366; 
    color: white; 
}

.share-btn--copy:hover { 
    background: var(--ruby); 
    border-color: var(--ruby); 
    color: white; 
}

/* Comments Section */
.comments-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
}

.comments-section__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-section__title i {
    color: var(--gold);
}

.fb-comments {
    background: transparent !important;
}

/* Related News Section */
.related-section {
    padding: 60px;
    background: linear-gradient(180deg, transparent, rgba(107, 28, 58, 0.1), transparent);
}

.related-section::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ruby), var(--gold), transparent);
    margin-bottom: 60px;
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section__title {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section__title i {
    color: var(--gold);
}

.section__title span {
    color: var(--ruby);
}

.section__link {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.section__link:hover {
    color: var(--ruby);
}

/* Related News Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* News Card */
.news-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s var(--ease-out-expo);
    cursor: pointer;
    transform-style: preserve-3d;
    display: block;
}

.news-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--ruby), var(--gold), var(--ruby));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.news-card__image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s var(--ease-out-expo);
}

.news-card:hover .news-card__image {
    transform: scale(1.15) rotate(2deg);
}

.news-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.9) 100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.news-card:hover .news-card__overlay {
    opacity: 0.8;
}

.news-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ruby);
    font-size: 1.8rem;
    transition: all 0.5s var(--ease-out-expo);
}

.news-card:hover .news-card__play {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.news-card__info {
    padding: 24px;
}

.news-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pearl);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover .news-card__title {
    color: var(--gold);
}

/* Back Button */
.back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(227, 27, 84, 0.4);
    transition: all 0.4s var(--ease-out-expo);
}

.back-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 40px rgba(227, 27, 84, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-hero { 
        min-height: 60vh; 
    }
    
    .article-hero__content { 
        padding: 30px 20px; 
    }
    
    .article-hero__title { 
        font-size: 1.8rem; 
    }
    
    .article-container { 
        padding: 30px 20px; 
    }
    
    .article-content { 
        padding: 30px 24px; 
    }
    
    .related-section { 
        padding: 40px 20px; 
    }
    
    .related-grid { 
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
        gap: 20px; 
    }
    
    .back-btn { 
        bottom: 20px; 
        left: 20px; 
        width: 48px; 
        height: 48px; 
    }
}

@media (max-width: 768px) {
    .article-hero__meta {
        gap: 16px;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-section {
        padding: 24px;
    }
    
    .section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .article-hero__content {
        padding: 20px 16px;
    }
    
    .article-content {
        padding: 20px 16px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn {
        width: 42px;
        height: 42px;
    }
}
