/**
 * Hooshex News Custom Styles
 * Primary Color: #f15bb5 (Pink)
 * 
 * @package Studiare Child
 */

/* ==========================================================================
   News Template Variables & Overrides
   ========================================================================== */

.news-template,
.news-hero-section,
.news-post-card,
.post-type-archive-news,
.tax-news_category,
.tax-news_tag {
    --news-color-primary: #f15bb5;
    --news-color-secondary: #ff006e;
    --news-color-dark: #242c44;
    --news-color-light: #f6f7fa;
}

/* ==========================================================================
   Hero Section - News Specific
   ========================================================================== */

.news-hero-section {
    --theme-color: #f15bb5 !important;
    --theme-color-rgb: 241, 91, 181 !important;
}

.news-hero-section .hero-categories a {
    background-color: #f15bb5;
    box-shadow: 0 4px 15px rgba(241, 91, 181, 0.3);
}

.news-hero-section .hero-categories a:hover {
    box-shadow: 0 6px 20px rgba(241, 91, 181, 0.4);
}

.news-hero-section .hero-date i,
.news-hero-section .hero-stats i {
    color: #f15bb5;
}

.news-hero-section .hero-author-image img {
    border-color: #f15bb5;
}

.news-hero-section .scroll-arrow {
    border-color: #f15bb5;
}

.news-hero-section .scroll-arrow::after {
    border-right-color: #f15bb5;
    border-bottom-color: #f15bb5;
}

/* Breaking News Badge */
.news-breaking-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff006e, #f15bb5);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.02);
    }
}

/* ==========================================================================
   News Post Card
   ========================================================================== */

.news-post-card .reading-progress-bar {
    background: linear-gradient(to right, #f15bb5, #ff006e);
}

.news-post-card .entry-content blockquote {
    border-left-color: #f15bb5;
}

/* News Source Box */
.news-source-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(241, 91, 181, 0.05), rgba(255, 0, 110, 0.05));
    border-right: 4px solid #f15bb5;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 14px;
}

.news-source-box i {
    color: #f15bb5;
    font-size: 18px;
}

.news-source-box span {
    font-weight: 600;
    color: #242c44;
}

.news-source-box a {
    color: #f15bb5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-source-box a:hover {
    color: #ff006e;
    text-decoration: underline;
}

/* ==========================================================================
   News Tags & Categories
   ========================================================================== */

.news-tags h4 i,
.news-share-buttons h4 i {
    color: #f15bb5;
}

.news-tags .tags-container a:hover {
    background-color: #f15bb5;
    color: #fff;
}

/* News Categories in taxonomy pages */
.tax-news_category .hero-categories a,
.tax-news_tag .hero-categories a {
    background-color: #f15bb5;
}

/* ==========================================================================
   Related News Section
   ========================================================================== */

.news-related-posts {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-related-posts .section-heading h3 {
    color: #242c44;
}

.news-related-posts .section-heading i {
    color: #f15bb5;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-news-item {
    background: #f6f7fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(241, 91, 181, 0.15);
}

.related-news-thumb {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.related-news-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-news-item:hover .related-news-thumb img {
    transform: scale(1.1);
}

.related-news-content {
    padding: 15px;
}

.related-news-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.related-news-content h4 a {
    color: #242c44;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-content h4 a:hover {
    color: #f15bb5;
}

.related-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.related-news-meta i {
    color: #f15bb5;
}

/* ==========================================================================
   News Post Navigation
   ========================================================================== */

.news-post-navigation {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(241, 91, 181, 0.05), rgba(255, 0, 110, 0.05));
    border-radius: 10px;
}

.news-post-navigation .post-nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-post-navigation .post-nav-item {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.news-post-navigation .post-nav-item:hover {
    border-color: #f15bb5;
    box-shadow: 0 4px 16px rgba(241, 91, 181, 0.15);
}

.news-post-navigation .post-nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-post-navigation .post-nav-item a {
    color: #242c44;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-post-navigation .post-nav-item:hover a {
    color: #f15bb5;
}

.news-post-navigation .prev-post {
    text-align: right;
}

.news-post-navigation .next-post {
    text-align: left;
}

/* ==========================================================================
   News Author Box
   ========================================================================== */

.news-author-box {
    border-top: 3px solid #f15bb5;
}

.news-author-box .author-link {
    color: #f15bb5;
}

.news-author-box .author-link:hover {
    color: #ff006e;
}

/* ==========================================================================
   News Comments Section
   ========================================================================== */

.news-comments-section {
    border-top: 3px solid #f15bb5;
}

.news-comments-section .comment-reply-link {
    background-color: #f15bb5;
}

.news-comments-section .comment-reply-link:hover {
    background-color: #ff006e;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-post-navigation .post-nav-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-post-navigation .prev-post,
    .news-post-navigation .next-post {
        text-align: right;
    }
}

@media (max-width: 576px) {
    .news-breaking-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .news-source-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .news-hero-section,
    .news-share-buttons,
    .news-related-posts,
    .news-post-navigation,
    .news-comments-section {
        display: none;
    }
    
    .news-post-card {
        box-shadow: none;
    }
}

