/* ============================================
   LookCricket.com — Premium Edition
   Regal • Editorial • Cricket Authority
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --emerald: #0B3D2E;
    --emerald-deep: #062A1E;
    --emerald-light: #14573F;
    --gold: #C9A93E;
    --gold-light: #E2CC6E;
    --gold-pale: #F5EDD0;
    --cream: #FAF7F0;
    --cream-dark: #F0EAD6;
    --charcoal: #1A1A2E;
    --charcoal-light: #2D2D44;
    --text: #2A2A2A;
    --text-light: #6B6B6B;
    --text-muted: #9A9A9A;
    --white: #FDFBF7;
    --border: #E8E2D0;
    --border-light: #F0EBE0;
    --shadow-sm: 0 2px 8px rgba(26,26,46,0.06);
    --shadow-md: 0 4px 20px rgba(26,26,46,0.08);
    --shadow-lg: 0 8px 40px rgba(26,26,46,0.12);
    --shadow-gold: 0 4px 20px rgba(201,169,62,0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --container: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 400;
    min-height: 100vh;
}

a { color: var(--emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Decorative Elements --- */
.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    display: block;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--emerald-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white) !important;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo-text span {
    color: var(--gold);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.06);
}

/* --- Dropdown Menu --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    transition: transform var(--transition);
    opacity: 0.6;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: white;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 200;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1.2rem 0.4rem;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.2rem;
    color: var(--text) !important;
    font-size: 0.88rem;
    font-weight: 450;
    letter-spacing: 0;
    text-transform: none;
    transition: all var(--transition);
    background: none !important;
    border-radius: 0 !important;
}

.nav-dropdown-menu a:hover {
    background: var(--cream) !important;
    color: var(--emerald) !important;
    padding-left: 1.4rem;
}

.dropdown-count {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--cream-dark);
    color: var(--text-muted);
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
}

.nav-dropdown-menu a:hover .dropdown-count {
    background: var(--emerald);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.4rem 1rem;
}

/* Search */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all var(--transition);
}

.search-form:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,62,0.15);
}

.search-form input {
    background: none;
    border: none;
    color: white;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    width: 160px;
    outline: none;
}

.search-form input::placeholder { color: rgba(255,255,255,0.4); }

.search-form button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.search-form button:hover { color: var(--gold); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   TOP BAR (gold accent strip)
   ============================================ */
.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.flash-success {
    background: #EBF5EC;
    border-color: var(--emerald);
    color: var(--emerald);
}

.flash-error {
    background: #FDF0F0;
    border-color: #C0392B;
    color: #C0392B;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    min-height: 60vh;
    padding: 2.5rem 0 4rem;
}

/* ============================================
   FEATURED SECTION (Homepage Hero)
   ============================================ */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.featured-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--emerald-deep);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.04);
}

.featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    position: relative;
}

.featured-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.featured-placeholder span {
    font-size: 3rem;
    z-index: 1;
}

.featured-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.featured-main .featured-content h2 {
    font-size: 1.65rem;
    margin: 0.5rem 0 0.6rem;
}

.featured-side .featured-content h2 {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.4rem;
}

.featured-content p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.featured-content h2 a {
    color: var(--charcoal);
}

.featured-content h2 a:hover {
    color: var(--emerald);
}

/* ============================================
   CATEGORY BADGES
   ============================================ */
.category-badge {
    display: inline-block;
    background: var(--emerald);
    color: white !important;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 2px;
    transition: background var(--transition);
}

.category-badge:hover {
    background: var(--gold);
    color: var(--charcoal) !important;
}

/* ============================================
   POST META
   ============================================ */
.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   CATEGORIES BAR (Homepage)
   ============================================ */
.categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.cat-pill:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
}

.cat-count {
    background: var(--emerald);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--emerald-deep);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.06);
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
    position: relative;
}

.card-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20.5V18H0v-2h20V6h2v10h18v2H22v10h-2V20.5z'/%3E%3C/g%3E%3C/svg%3E");
}

.card-placeholder span {
    font-size: 2.5rem;
    z-index: 1;
}

.card-body {
    padding: 1.2rem 1.4rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.15rem;
    margin: 0.5rem 0 0.5rem;
    line-height: 1.3;
}

.card-body h3 a {
    color: var(--charcoal);
}

.card-body h3 a:hover {
    color: var(--emerald);
}

.card-body > p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   CATEGORY / TAG PAGE
   ============================================ */
.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.article-full { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--text-muted); }

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0.8rem 0 1rem;
    max-width: 800px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Article Hero Image */
.article-hero {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-hero img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* Affiliate Disclosure */
.affiliate-notice {
    background: var(--gold-pale);
    border-left: 4px solid var(--gold);
    padding: 0.8rem 1.2rem;
    margin-bottom: 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.affiliate-notice a { color: var(--emerald); text-decoration: underline; }

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-pale);
}

.article-body h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--gold);
    background: var(--cream-dark);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.article-body a {
    color: var(--emerald);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--gold);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body th, .article-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--emerald);
    color: white;
    font-weight: 600;
    font-family: var(--font-body);
}

.article-body tr:nth-child(even) td {
    background: var(--cream);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tag {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tag:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--charcoal);
}

/* Share */
.share-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}

.share-links span:first-child {
    font-weight: 600;
    color: var(--text-light);
}

.share-links a {
    background: var(--emerald);
    color: white !important;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition);
}

.share-links a:hover {
    background: var(--gold);
    color: var(--charcoal) !important;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    color: var(--emerald);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold-pale);
}

.sidebar-search {
    display: flex;
    gap: 0.5rem;
}

.sidebar-search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition);
}

.sidebar-search input:focus { border-color: var(--gold); }

.sidebar-search button {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-search button:hover { background: var(--gold); color: var(--charcoal); }

.sidebar-link {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--gold); padding-left: 0.3rem; }
.sidebar-link span { color: var(--text-muted); font-size: 0.8rem; }

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    border-color: var(--emerald);
    color: rgba(255,255,255,0.85);
}

.newsletter-widget h3 {
    color: var(--gold) !important;
    border-bottom-color: rgba(255,255,255,0.15) !important;
}

.newsletter-widget p {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.newsletter-widget .newsletter-form input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.newsletter-widget .newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-widget .newsletter-form button {
    background: var(--gold);
    color: var(--charcoal);
}

/* ============================================
   NEWSLETTER FORMS
   ============================================ */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.newsletter-form input {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 0.65rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-form button:hover {
    background: var(--gold);
    color: var(--charcoal);
}

.newsletter-msg {
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

/* Inline form (homepage CTA) */
.inline-form {
    flex-direction: row;
    max-width: 480px;
    margin: 0 auto;
}

.inline-form input { flex: 1; }

.inline-form button {
    padding: 0.65rem 1.5rem;
    white-space: nowrap;
}

/* ============================================
   NEWSLETTER CTA (Homepage)
   ============================================ */
.newsletter-cta {
    text-align: center;
    padding: 3.5rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    border-radius: var(--radius-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-cta > * { position: relative; z-index: 1; }

.newsletter-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.6rem;
}

.newsletter-cta p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.newsletter-cta .newsletter-form button {
    background: var(--gold);
    color: var(--charcoal);
}

.newsletter-cta .newsletter-form button:hover {
    background: var(--gold-light);
}

.newsletter-cta .newsletter-form input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.newsletter-cta .newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}

.page-link:hover, .page-link.current {
    background: var(--emerald);
    color: white;
    border-color: var(--emerald);
}

.page-link.current {
    pointer-events: none;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   STATIC PAGES (About, Contact, etc.)
   ============================================ */
.page-content {
    max-width: 800px;
}

.page-content h1 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-pale);
}

.page-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 0.8rem;
}

.page-content p {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background: white;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,62,0.1);
}

.contact-form button {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form button:hover {
    background: var(--gold);
    color: var(--charcoal);
}

.honeypot { display: none !important; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: rgba(255,255,255,0.85);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    z-index: 200;
}

.cookie-banner a { color: var(--gold); text-decoration: underline; }

.cookie-banner button {
    background: var(--gold);
    color: var(--charcoal);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 0;
    margin-top: 3rem;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid h3, .footer-grid h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-grid h3 {
    font-size: 1.5rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links a,
.footer-categories a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    padding: 0.3rem 0;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-categories a:hover {
    color: var(--gold);
    padding-left: 0.3rem;
}

.footer-newsletter p {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.footer-newsletter .newsletter-form input {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: white;
}

.footer-newsletter .newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }

.footer-newsletter .newsletter-form button {
    background: var(--gold);
    color: var(--charcoal);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom p { margin-bottom: 0.3rem; }
.footer-bottom a { color: var(--gold); }
.affiliate-note { font-size: 0.75rem; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-results h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; gap: 2rem; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --container: 100%; }
    
    .header-inner { height: 60px; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 63px;
        left: 0;
        right: 0;
        background: var(--emerald-deep);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active { display: flex; }
    
    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .menu-toggle { display: flex; }
    
    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(255,255,255,0.04);
        border: none;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    
    .nav-dropdown-menu::before { display: none; }
    
    .dropdown-heading {
        color: rgba(255,255,255,0.4);
        padding: 0.5rem 1.5rem 0.3rem;
    }
    
    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.7) !important;
        padding: 0.55rem 2rem;
        font-size: 0.85rem;
    }
    
    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.06) !important;
        color: var(--gold) !important;
    }
    
    .dropdown-count {
        background: rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.5);
    }
    
    .dropdown-divider {
        background: rgba(255,255,255,0.06);
        margin: 0.3rem 1.5rem;
    }
    
    .search-form { display: none; }
    
    .articles-grid { grid-template-columns: 1fr; }
    
    .article-header h1 { font-size: 1.9rem; }
    
    .newsletter-cta { padding: 2.5rem 1.5rem; }
    .newsletter-cta h2 { font-size: 1.6rem; }
    .inline-form { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .category-header h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .page-content h1 { font-size: 1.9rem; }
    
    .cookie-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
    
    .share-links { flex-wrap: wrap; }
    
    .categories-bar { gap: 0.4rem; }
    .cat-pill { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
}

@media (max-width: 480px) {
    body { font-size: 0.95rem; }
    .container { padding: 0 1rem; }
    .article-header h1 { font-size: 1.6rem; }
    .featured-main .featured-content h2 { font-size: 1.3rem; }
    .card-body { padding: 1rem; }
}
