/* style.css */
:root {
    --primary-red: #e50914;
    --bg-black: #141414;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --meta-gray: #777;
    --card-radius: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    padding: 80px 20px;
}

.container { 
    max-width: 1200px; 
    margin: 60px auto; 
}

/* --- The Grid --- */
.news-grid {
    display: grid;
    /* Responsive grid: fits as many as possible, min 300px wide */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 40px 20px;
}

/* --- Card Structure --- */
.news-card {
    position: relative;
    background: transparent;
    border-radius: var(--card-radius);
    transition: var(--transition-smooth);
    z-index: 1;
    cursor: pointer;
    border: 1px solid transparent;
}

/* 1. Main Hover State (The Pop-Out) */
.news-card:hover {
    transform: scale(1.05);
    z-index: 10;
    /* Red glow shadow as requested */
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    border-color: #444;
}

/* 2. Image Container */
.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #111;
    border-radius: var(--card-radius);
    overflow: hidden; /* Clips the image when it scales */
}

.card-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

/* 3. Image Hover Effect (Subtle Zoom) */
.news-card:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Play Button */
.play-button {
    position: absolute; 
    bottom: 12px; 
    left: 12px;
    background: white; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.news-card:hover .play-button {
    transform: scale(1.1);
    background: var(--primary-red);
}

.news-card:hover .play-button svg {
    fill: white;
}

.play-button svg {
    fill: black;
    width: 14px;
    margin-left: 2px;
}

/* --- Typography --- */
.label {
    display: block; 
    font-weight: 900; 
    font-size: 10px;
    margin: 15px 0 5px; 
    color: var(--primary-red); 
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800; 
    line-height: 1.2;
    margin-bottom: 8px; 
    transition: color 0.3s ease;
}

.news-card:hover .title {
    color: #fff; /* Keeps title bright on hover */
}

.description { 
    font-size: 14px; 
    color: var(--text-gray); 
    margin-bottom: 12px; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta { 
    font-size: 11px; 
    font-weight: bold; 
    color: var(--meta-gray); 
    text-transform: uppercase; 
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body { padding: 60px 15px; }
    
    /* Disable intense hover on touch devices to prevent "sticky" hover states */
    @media (hover: none) {
        .news-card:hover {
            transform: none;
            box-shadow: none;
        }
    }
}


.card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole area clickable */
    transition: transform 0.2s ease;
}

/* Optional: Add a hover effect to the whole card */
.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}