/* ========================================================================
   Maharashtra Today - Homepage Styles
   ======================================================================== */

/* ========================================================================
   Breaking News Ticker
   ======================================================================== */

.breaking-news-section {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

.breaking-news-ticker {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-label svg {
    animation: pulse 2s infinite;
}

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

.breaking-news-content {
    display: flex;
    gap: 40px;
    color: #fff;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.breaking-news-item {
    white-space: nowrap;
    animation: scroll-news 30s linear infinite;
}

.breaking-news-item a {
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.breaking-news-item a:hover {
    opacity: 0.8;
}

@keyframes scroll-news {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========================================================================
   Hero Section
   ======================================================================== */

.hero-section {
    position: relative;
    padding: 40px 0;
}

.hero-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    min-height: 600px;
}

.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-main {
    grid-row: span 2;
}

.hero-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-thumbnail-gradient .gradient-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-thumbnail img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.hero-main .hero-content {
    padding: 40px;
}

.hero-category {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.hero-category a {
    color: #fff;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
}

.hero-main .hero-title {
    font-size: 2.5rem;
}

.hero-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.hero-title a:hover {
    color: #d32f2f;
}

.hero-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 15px;
}

.hero-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-date svg {
    opacity: 0.8;
}

/* ========================================================================
   Category Sections
   ======================================================================== */

.homepage-category-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d32f2f;
}

.section-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: #d32f2f;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d32f2f;
    font-weight: 700;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(211, 47, 47, 0.1);
}

.view-all-link:hover {
    background: #d32f2f;
    color: #fff;
    transform: translateX(4px);
}

.view-all-link svg {
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ========================================================================
   Compact Article Cards
   ======================================================================== */

.compact-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.compact-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.compact-card-inner {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.compact-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.compact-thumbnail-gradient .gradient-placeholder {
    border-radius: 8px;
}

.compact-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compact-article-card:hover .compact-thumbnail img {
    transform: scale(1.1);
}

.compact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-category {
    display: inline-block;
    margin-bottom: 8px;
}

.compact-category a {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 700;
}

.compact-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.compact-title a:hover {
    color: #d32f2f;
}

.compact-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.813rem;
    color: #999;
}

.compact-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compact-date svg {
    opacity: 0.6;
}

/* ========================================================================
   Latest News Section
   ======================================================================== */

.latest-news-section {
    margin-top: 60px;
}

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

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }

    .hero-main {
        grid-row: span 1;
        min-height: 500px;
    }

    .hero-card {
        min-height: 300px;
    }

    .category-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .breaking-news-ticker {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .breaking-label {
        align-self: stretch;
        justify-content: center;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-main .hero-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-main .hero-content,
    .hero-content {
        padding: 25px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .compact-card-inner {
        flex-direction: column;
    }

    .compact-thumbnail {
        width: 100%;
        height: 200px;
    }

    .homepage-category-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .breaking-news-item {
        font-size: 0.875rem;
    }

    .hero-main .hero-title {
        font-size: 1.5rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    .compact-title {
        font-size: 1rem;
    }
}

/* ========================================================================
   Homepage Wrapper
   ======================================================================== */

.homepage-wrapper {
    background: #fff;
}

.homepage-wrapper .content-wrapper {
    margin-top: 40px;
}

/* ========================================================================
   Featured Badge (Optional)
   ======================================================================== */

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 3;
}

/* ========================================================================
   Trending Badge
   ======================================================================== */

.trending-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff4444 0%, #ff0000 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    z-index: 3;
    animation: trending-pulse 2s infinite;
}

@keyframes trending-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
