/* =================================================================
   PHASE 7: NEWS ENHANCEMENTS - DARK MODE STYLING + ENGAGEMENT
   Using: #FFD700 (Gold), #E50914 (Red), #0F111A (BG), #FFFFFF (Headings), #C4C4C4 (Body)
   ================================================================= */

/* --- NEW V6: INFOBOX & ANIMATION ENHANCEMENTS --- */

/* 1. Main Movie Card (Clickable & Animated) */
.bo-news-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    background: #1a1c29; /* Ensures card is solid */
    border: 1px solid rgba(255, 215, 0, 0.2); 
    border-radius: 12px;
    overflow: hidden;
}

.bo-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: #FFD700;
}
/* 2. Hero Image Optimization */
.bo-poster-area img.bo-poster-img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Prevent massive vertical images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 3. Fun Copy Section (Popcorn/Chicken Math) */
.bo-fun-copy-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    color: #ffffff; /* Explicitly white */
    transition: background 0.3s ease;
    cursor: default;
}

.bo-fun-copy-area:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FFD700;
}

/* 7. Copy Button - Improved touch target size */
.bo-copy-btn {
    background: #27ae60;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 20px; /* Larger click area */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    display: inline-block;
}

.bo-copy-btn:hover {
    background: #219150;
    transform: scale(1.05);
}
/* 4. Currency Buttons (Wrap for Mobile) */
.bo-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    cursor: default;
}

.bo-curr-btn {
    flex: 1 1 auto;
    min-width: 80px; /* Ensure generic width */
    max-width: 120px;
    font-size: 12px;
    padding: 8px 5px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bo-curr-btn.active, .bo-curr-btn:hover {
    background: #FFD700;
    color: #000;
    font-weight: bold;
    border-color: #FFD700;
}

/* 5. Pending Data Alert & Pulse */
.bo-data-pending-msg {
    animation: bo-pulse-border 2s infinite;
}

.bo-pulse-text {
    display: inline-block;
    animation: boPulse 1.5s infinite;
    font-weight: bold;
    color: #e50914;
}
@keyframes bo-pulse-border {
    0% { border-left-color: #ffeeba; }
    50% { border-left-color: #d63638; } /* Flash Red */
    100% { border-left-color: #ffeeba; }
}

@keyframes boPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 6. Verdict Tags */
.bo-verdict-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.bo-verdict-tag.wait { background: #666; color: #fff; }
.bo-verdict-tag.flop { background: #d63638; color: #fff; }
.bo-verdict-tag.hit { background: #27ae60; color: #fff; }
.bo-verdict-tag.blockbuster { 
    background: linear-gradient(45deg, #FFD700, #FFA500); 
    color: #000; 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 7. Stats Grid Layouts */
.bo-stats-container {
    background: rgba(0,0,0,0.3); /* Slightly darker for contrast */
    border-radius: 10px;
    padding: 15px;
    margin: 5px 10px;
}

/* 3. Stats Row - Added 3-col logic here to prevent duplication */
.bo-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.bo-stats-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}
.bo-stats-row:last-child {
    margin-bottom: 0;
}
.bo-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    padding: 10px 5px;
    border-radius: 6px;
    text-align: center;
}
.bo-stat-item.highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.bo-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.bo-value {
    font-weight: bold;
    color: #fff;
    white-space: nowrap; /* Prevents large numbers from breaking into 2 lines */
}
.bo-value.large { font-size: 1.2rem; }
.bo-value.small { font-size: 0.9rem; }
/* 8. Table Styling */
.bo-table-scroll {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #333;
}
.bo-chart-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1c29;
    color: #ddd;
    font-size: 14px;
}
.bo-chart-table th {
    background: #0F111A;
    color: #FFD700;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #333;
}
.bo-chart-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
}
.bo-chart-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* 9. FAQ Styling */
.bo-faq-container {
    margin-top: 20px;
}
.bo-faq {
    background: #1a1c29;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px;
}
.bo-faq summary {
    cursor: pointer;
    font-weight: bold;
    color: #FFD700;
}
.bo-faq p {
    margin: 10px 0 0 0;
    color: #ccc;
    font-size: 14px;
}

/* --- EXISTING LAYOUT STYLES --- */

/* Sticky Trending Widget */
.sticky-trending {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 280px;
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 20px;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.sticky-trending h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #FFD700;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
}

.trending-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-item a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s;
}

.trending-item a:hover {
    color: #FFD700;
}

.trending-item .collection {
    font-size: 12px;
    color: #27ae60;
    margin-top: 4px;
}

@media (max-width: 1400px) {
    .sticky-trending {
        display: none;
    }
}

/* Author Byline */
.bo-news-byline {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-label {
    font-size: 12px;
    color: #C4C4C4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-name:hover {
    text-decoration: underline;
}

.byline-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.byline-dates time {
    font-size: 14px;
    color: #C4C4C4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-icon {
    font-size: 16px;
}

.update-date {
    color: #27ae60 !important;
}

/* Breadcrumbs */
.bo-breadcrumbs {
    background: rgba(255, 215, 0, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.bo-breadcrumbs a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.bo-breadcrumbs a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.bo-breadcrumbs .separator {
    margin: 0 10px;
    color: #C4C4C4;
    font-weight: 300;
}

.bo-breadcrumbs span[itemprop="name"]:last-child {
    color: #C4C4C4;
}

/* Table of Contents */
.bo-table-of-contents {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.toc-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 12px 15px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #FFD700;
    border-radius: 6px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.toc-list a:hover {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: #FFA500;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Author Box */
.bo-author-box {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.author-box-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.author-profile {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.author-bio-section {
    flex: 1;
}

.author-box-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.author-box-name a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.author-box-name a:hover {
    color: #FFD700;
}

.author-description {
    color: #C4C4C4;
    line-height: 1.7;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #FFD700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Related News Carousel */
.bo-related-news-carousel {
    margin: 40px 0;
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #FFD700;
}

.news-carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-carousel-card {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-carousel-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-carousel-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: #FFD700;
}

.card-date {
    font-size: 13px;
    color: #C4C4C4;
    display: block;
}

/* Inline Carousel Styling */
.inline-carousel {
    background: rgba(255, 215, 0, 0.03);
    padding: 30px;
    border-radius: 12px;
    margin: 35px 0;
}

.inline-carousel .news-carousel-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Bottom Carousel Styling */
.bottom-carousel {
    border-top: 3px solid rgba(255, 215, 0, 0.3);
    padding-top: 40px;
}

/* Complete Series Navigation Box */
.bo-series-box {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.series-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.series-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.day-link,
.day-current {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.day-link {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.day-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.day-current {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0F111A;
    border: 1px solid #FFD700;
    cursor: default;
    font-weight: 700;
}

.read-next-cta {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.read-next-cta strong {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 12px;
}

.next-day-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0F111A;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.next-day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

/* News Grid for Shortcodes (latest_box_office_news, latest_general_news) */
.bo-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.bo-news-grid .news-item {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bo-news-grid .news-item:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.bo-news-grid .news-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bo-news-grid .news-item:hover img {
    transform: scale(1.05);
}

.bo-news-grid .news-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.bo-news-grid .news-item h4 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.bo-news-grid .news-item h4 a:hover {
    color: #FFD700;
}

/* News Update Form Styling */
.bo-news-update-form {
    background: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.bo-news-update-form label {
    color: #C4C4C4;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.bo-news-update-form input[type="number"],
.bo-news-update-form input[type="text"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    color: #FFFFFF;
    width: 100%;
    max-width: 300px;
    font-size: 15px;
}

.bo-news-update-form input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bo-news-update-form button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0F111A;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.bo-news-update-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive */
/* 9. Mobile Responsive Fixes - Forced 1-column stats */
@media (max-width: 768px) {
    .bo-news-byline, .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .byline-dates {
        text-align: center;
    }

    .toc-list, .news-carousel-grid {
        grid-template-columns: 1fr;
    }

    /* Force stats to stack vertically on small phones to prevent overlapping numbers */
    .bo-stats-row, 
    .bo-stats-row.three-col {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .bo-stat-item {
        padding: 15px;
    }

    .bo-breadcrumbs {
        font-size: 11px;
        padding: 10px;
        text-align: center;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .author-avatar,
    .author-photo {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    }
}