/**
 * Front Page Styles - Premium News Portal
 * @package CineStream Pro
 * @version 3.0.0
 */

/* ========== CONTAINER & LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO SECTION ========== */
.hero-premium-wrapper {
    background: #0a0a0a;
    padding: 30px 0;
    margin-bottom: 0;
}

.hero-premium-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-premium-main {
    flex: 2;
    min-width: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-slider-premium {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #fff;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.hero-slide-item.active .hero-slide-content {
    transform: translateY(0);
}

.hero-slide-category {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-label {
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-time {
    font-size: 13px;
    opacity: 0.9;
}

.hero-slide-title {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-slide-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-slide-title a:hover {
    color: #e74c3c;
}

.hero-slide-excerpt {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 80%;
}

.hero-slide-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-nav-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    pointer-events: auto;
}

.slider-nav-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
}

.slider-dot.active {
    background: #e74c3c;
    transform: scale(1.05);
}

/* Hero Sidebar */
.hero-premium-sidebar {
    flex: 1;
    min-width: 280px;
}

.trending-topics-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
}

.card-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-icon {
    font-size: 24px;
    color: #e74c3c;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    flex: 1;
}

.header-line {
    width: 40px;
    height: 3px;
    background: #e74c3c;
    border-radius: 2px;
}

.trending-topics-list {
    padding: 20px;
}

.topic-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s;
}

.topic-item:hover {
    transform: translateX(5px);
}

.topic-rank {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    min-width: 40px;
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.topic-title:hover {
    color: #e74c3c;
}

.trending-badge {
    background: #ffeaa7;
    color: #d63031;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-right: 10px;
}

.topic-views {
    font-size: 12px;
    color: #666;
}

.view-all-topics {
    display: block;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.view-all-topics:hover {
    background: #e74c3c;
    color: #fff;
}

/* ========== BREAKING NEWS ========== */
.breaking-news-premium {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 0;
    border-bottom: 2px solid #e74c3c;
}

.breaking-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.breaking-label {
    background: #e74c3c;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
}

.ticker-item a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.breaking-date {
    font-size: 13px;
    opacity: 0.8;
}

/* ========== MAIN CONTENT ========== */
.main-content-container {
    padding: 40px 20px;
}

.content-layout-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.content-main {
    flex: 2;
    min-width: 280px;
}

.content-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e74c3c;
}

.section-title {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    color: #e74c3c;
}

.section-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.section-link:hover {
    color: #e74c3c;
}

/* Latest News Grid */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-article {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
}

.featured-article .article-image {
    flex: 1;
}

.featured-article .article-content {
    flex: 1;
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-article:hover .article-image img {
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 20px;
}

.article-category {
    margin-bottom: 10px;
}

.cat-label {
    background: #f0f0f0;
    color: #e74c3c;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #e74c3c;
}

.featured-article .article-title {
    font-size: 24px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.article-meta i {
    margin-right: 4px;
}

/* Category Sections Row */
.category-sections-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.category-title {
    font-size: 18px;
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid;
}

.category-title.cricket {
    border-left-color: #00a8ff;
    color: #00a8ff;
}

.category-title.entertainment {
    border-left-color: #e84118;
    color: #e84118;
}

.category-news-list {
    padding: 15px 20px;
}

.category-featured {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cat-feat-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.category-featured h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.category-featured h4 a {
    color: #333;
    text-decoration: none;
}

.category-featured h4 a:hover {
    color: #e74c3c;
}

.cat-excerpt {
    font-size: 13px;
    color: #666;
}

.category-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item-title {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

.category-item-title:hover {
    color: #e74c3c;
}

.category-item-time {
    font-size: 11px;
    color: #999;
}

/* Technology News Grid */
.tech-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.tech-news-card:hover {
    transform: translateY(-3px);
}

.tech-news-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.tech-news-content {
    padding: 12px;
}

.tech-news-content h4 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tech-news-content h4 a {
    color: #333;
    text-decoration: none;
}

.tech-news-content h4 a:hover {
    color: #e74c3c;
}

.tech-news-time {
    font-size: 11px;
    color: #999;
}

/* ========== SIDEBAR ========== */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-title {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #e74c3c;
}

.card-title h3 {
    margin: 0;
    font-size: 18px;
}

/* Search Card */
.search-card {
    padding: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-submit {
    background: #e74c3c;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #c0392b;
}

/* Most Read Card */
.most-read-list {
    padding: 10px 0;
}

.most-read-item {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.most-read-item:hover {
    background: #fafafa;
}

.most-read-rank {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    min-width: 30px;
}

.most-read-info {
    flex: 1;
}

.most-read-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.most-read-title:hover {
    color: #e74c3c;
}

.most-read-views {
    font-size: 11px;
    color: #999;
}

/* Viral Videos Card */
.viral-videos-list {
    padding: 10px 0;
}

.viral-video-item {
    display: flex;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.video-thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.video-info {
    flex: 1;
}

.video-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.video-title:hover {
    color: #e74c3c;
}

.video-views {
    font-size: 11px;
    color: #999;
}

/* Advertisement Card */
.ad-card {
    text-align: center;
    padding: 20px;
}

.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* Topics Cloud */
.topics-cloud {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.topic:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

/* Newsletter Card */
.newsletter-card {
    text-align: center;
    padding: 0 20px 20px;
}

.newsletter-card p {
    color: #666;
    margin-bottom: 15px;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.sidebar-newsletter button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.sidebar-newsletter button:hover {
    background: #c0392b;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero-slider-premium {
        height: 400px;
    }
    
    .hero-slide-title {
        font-size: 28px;
    }
    
    .hero-slide-excerpt {
        max-width: 100%;
    }
    
    .featured-article {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .featured-article .article-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-premium-container {
        flex-direction: column;
    }
    
    .hero-slider-premium {
        height: 350px;
    }
    
    .hero-slide-content {
        padding: 20px;
    }
    
    .hero-slide-title {
        font-size: 22px;
    }
    
    .hero-slide-excerpt {
        font-size: 14px;
    }
    
    .hero-slider-dots {
        bottom: 15px;
        right: 15px;
    }
    
    .slider-dot {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .breaking-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .breaking-ticker {
        white-space: normal;
    }
    
    .ticker-track {
        animation: none;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .ticker-item {
        margin-right: 0;
    }
    
    .content-layout-grid {
        flex-direction: column;
    }
    
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .category-sections-row {
        grid-template-columns: 1fr;
    }
    
    .tech-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-slider-premium {
        height: 300px;
    }
    
    .hero-slide-title {
        font-size: 18px;
    }
    
    .hero-slide-meta {
        font-size: 11px;
        gap: 10px;
    }
    
    .slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .featured-article .article-title {
        font-size: 18px;
    }
    
    .most-read-item {
        padding: 10px 15px;
    }
}