/* /css/style.css - THE UPGRADED VERSION */

/* =================================================================== */
/* WHAT'S CHANGED: EVERYTHING!                                       */
/* This adds professional typography, colors, layout, and the styles */
/* for the new featured card and archive gallery grid.               */
/* =================================================================== */

/* --- 1. FONTS & BASIC SETUP --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Lora', serif;
    --color-text: #333;
    --color-primary: #0d47a1; /* A deeper, classic blue */
    --color-light-gray: #f4f4f4;
    --color-white: #fff;
    --shadow: 0 8px 16px rgba(0,0,0,0.1);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f9fafb;
    margin: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- 2. HEADER & FOOTER --- */
header {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--color-white);
}
header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}
header p {
    margin: 0 0 1rem 0;
    color: #666;
}
header nav a {
    margin: 0 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background: #1f2937;
    color: #d1d5db;
}

/* --- 3. SECTION TITLES --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.featured-issue, .archive {
    text-align: center;
    margin-bottom: 3rem;
}

/* --- 4. FEATURED ISSUE STYLING --- */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    text-align: left;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.featured-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 0;
}
.read-button {
    display: inline-block;
    margin-top: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

/* --- 5. ARCHIVE GALLERY GRID --- */
.archive-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.archive-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.archive-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.archive-card:hover .card-image {
    transform: scale(1.1);
}
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--color-white);
    padding: 2.5rem 1rem 1rem 1rem;
    text-align: left;
}
.card-title {
    font-family: var(--font-heading);
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}
.card-date {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
}