:root {
    /* Edgy Midnight/Cyberpunk Palette */
    --bg-main: #000000;       /* Absolute pure black background */
    --bg-card: #0a0a0c;       /* Deep slate-black for cards */
    --text-main: #f8fafc;     /* Near-white for striking readability */
    --text-muted: #64748b;    /* Dimmed gray for secondary text */

    /* Intense, High-Contrast Category Colors */
    --color-gossip: #ff2a5f;  /* Neon Crimson */
    --color-news: #00e5ff;    /* Electric Cyan */
    --color-movies: #bd00ff;  /* Toxic Purple */
    --color-vitals: #00ff66;  /* Acid Green */
    --color-tech: #ffaa00;    /* Amber Orange */
}


body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

/* Header Styles */
.main-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    border-bottom: 1px solid #1e293b;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 24px 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #ffffff;
}

/* Responsive Grid Layout */
.grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card Styles */
.news-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1a1a1f; /* Darkened border to match the black background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15); /* Gives a subtle neon glow on hover */
    border-color: #444450;                  /* Crisper border contrast on hover */
}


/* Category Tags */
.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.tag-gossip { background-color: rgba(244, 63, 94, 0.15); color: var(--color-gossip); }
.tag-news { background-color: rgba(59, 130, 246, 0.15); color: var(--color-news); }
.tag-movies { background-color: rgba(168, 85, 247, 0.15); color: var(--color-movies); }
.tag-vitals { background-color: rgba(16, 185, 129, 0.15); color: var(--color-vitals); }
.tag-tech { background-color: rgba(245, 158, 11, 0.15); color: var(--color-tech); }

/* Card Content Elements */
.card-title {
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-gossip);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-0 0 20px 0;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid #1e293b;
    padding-top: 12px;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Styling */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

/* Small Screens Adjustments */
@media (max-width: 640px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .logo { font-size: 2rem; }
    .main-nav { flex-wrap: wrap; }
}


/* Card Image Styles */
.card-image-container {
    width: 100%;
    height: 200px; /* Force an even height so tall portrait images don't stretch the card */
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center 20%; /* Adjusts vertical focus slight upward if needed */
    transition: transform 0.3s ease;
}

/* Optional: Zooms into the photo slightly when you hover over the card */
.news-card:hover .card-image {
    transform: scale(1.03);
}
