/* ==========================================================================
   PATRIOTS AFTERTHOUGHTS STYLESHEET
   File: style-patriots.css
   Category ID: 1482
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Reset
   -------------------------------------------------------------------------- */
:root {
    --pats-navy: #002244;
    --pats-red: #C60C30;
    --pats-silver: #B0B7BC;
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body.patriots-list {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. Header & Main Navigation
   -------------------------------------------------------------------------- */
header {
    background-color: #090d16;
    border-bottom: 2px solid var(--pats-red);
    padding: 20px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.logo span {
    color: var(--pats-red);
}

.nav-links a {
    margin-left: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--pats-red);
}

.menu-toggle {
    display: none;
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 68, 0.95);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-overlay.active {
    display: flex;
}

.nav-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* --------------------------------------------------------------------------
   3. Category Header & Search
   -------------------------------------------------------------------------- */
.category-header {
    background: linear-gradient(to right, var(--pats-navy), #0a1120);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-flex-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cat-text-block h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 2px 2px 0px var(--pats-red);
}

.category-description {
    color: var(--pats-silver);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 25px;
}

/* Latest Episode Banner */
.latest-episode-banner {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-left: 4px solid var(--pats-red);
    border-radius: 4px;
    display: inline-block;
}

.latest-episode-banner a:hover {
    color: var(--pats-silver);
}

/* Search Form */
.patriots-search-wrapper .mm-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
}

.mm-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: white;
    outline: none;
}

.mm-search-submit {
    background: var(--pats-red);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mm-search-submit:hover {
    background: #a00a27;
}

/* Social & Subscribe Buttons */
.cat-sub-icons {
    display: flex;
    gap: 15px;
}

.sub-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.sub-icon:hover {
    background: var(--pats-red);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   4. Hero Grid (16:9 Aspect Ratio Maintained)
   -------------------------------------------------------------------------- */
.hero {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.tag {
    background: var(--pats-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

/* 1st Post: Main Hero Feature (Gradient Overlay Title) */
.hero-main-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.hero-main-link:hover {
    transform: scale(0.99);
}

.hero-main {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    aspect-ratio: 16 / 9; /* Preserves 1280x720 ratio */
    background-size: cover !important;
    background-position: center !important;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-main-content {
    position: relative;
    z-index: 2;
}

.hero-main-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

/* Side Posts 2, 3, 4 (Thumbnail Top, Title Below) */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-post-link {
    display: block;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    border-bottom: 3px solid transparent;
}

.side-post-link:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--pats-red);
}

.side-post-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Preserves 1280x720 ratio */
    object-fit: cover;
    display: block;
}

.side-content {
    padding: 15px 20px;
}

.side-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.side-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. Archive Grid & Cards
   -------------------------------------------------------------------------- */
.archive-wrapper {
    padding: 0 0 60px 0;
    width: 100%;
}

.archive-wrapper .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.mini-post {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.mini-post:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--pats-red);
}

.mini-post > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mini-image {
    width: 100%;
}

.mini-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mini-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mini-content h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.3;
}

.mini-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    margin-top: auto;
}


/* --------------------------------------------------------------------------
   6. Pagination 
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--pats-red);
    color: white;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.clean-footer {
    background-color: #090d16;
    color: #f8fafc;
    padding: 50px 24px 30px 24px;
}

.footer-wrap {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 450px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 16px;
}

.row-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    font-weight: 600;
}

.icon-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-links a {
    color: #94a3b8;
    font-size: 1.4rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.icon-links a:hover {
    transform: translateY(-3px);
    color: var(--pats-red);
}

.custom-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-credit {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #475569;
}

/* --------------------------------------------------------------------------
   8. WP Admin Floating Button
   -------------------------------------------------------------------------- */
.edit-wp-button a {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--pats-navy);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid var(--pats-silver);
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
}

.edit-wp-button a:hover {
    background: var(--pats-red);
}

/* --------------------------------------------------------------------------
   9. Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on small laptops/tablets */
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile landscape */
    }
}

@media (max-width: 480px) {
    .feature-row {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
    .footer-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    .cat-text-block h1 {
        font-size: 2.5rem;
    }
}