/*
Theme Name: SEO News Theme
Theme URI: http://localhost:8888
Description: A trendy, dark-mode gambling news theme optimized for SEO and speed.
Version: 2.0
Author: Developer
License: GPL-2.0-or-later
Text Domain: seo-news-theme
*/

/* ========== GOOGLE FONT IMPORT ========== */
/* Inter loaded via wp_enqueue in functions.php */

/* ========== CSS VARIABLES ========== */
:root {
    /* Dark Palette */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #222839;
    --bg-elevated: #252b3b;

    /* Accent Colors */
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-dark: #d97706;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f2e 0%, #0f1420 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(245, 158, 11, .4) 0%, rgba(16, 185, 129, .4) 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #fbbf24;

    /* Borders */
    --border-color: rgba(255, 255, 255, .06);
    --border-accent: rgba(245, 158, 11, .3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, .15);
    --shadow-glow-green: 0 0 20px rgba(16, 185, 129, .15);

    /* Layout */
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --max-width: 1240px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

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

::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ========== LAYOUT ========== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    padding: 48px 0;
}

/* ========== GLASSMORPHISM MIXIN ========== */
.glass {
    background: rgba(26, 31, 46, .7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* ========== HEADER ========== */
.site-header {
    background: rgba(10, 14, 23, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(245, 158, 11, .1);
}

.main-nav a.current {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, .12);
}

/* ========== HEADER SEARCH FIELD ========== */
.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    margin-left: 16px;
    transition: border-color var(--transition);
}

.header-search-form:hover,
.header-search-form:focus-within {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, .08);
}

.header-search-form .search-field {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: .85rem;
    padding: 6px 8px;
    width: 140px;
    outline: none;
    font-family: inherit;
    transition: width var(--transition);
}

.header-search-form .search-field::placeholder {
    color: var(--text-muted);
}

.header-search-form .search-field:focus {
    width: 180px;
}

.header-search-form .search-submit {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.header-search-form .search-submit:hover {
    color: var(--accent-gold);
}

/* ========== UTILITIES ========== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 56px;
    height: 460px;
    border: 1px solid var(--border-color);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    background: var(--gradient-hero);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 48px 56px;
}

.hero-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 23, .9) 0%, rgba(10, 14, 23, .4) 40%, rgba(10, 14, 23, .1) 70%);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-slide-content .category-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.hero-slide-content h2 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-slide-content h2 a {
    color: var(--text-primary);
    -webkit-text-fill-color: unset;
}

.hero-slide-content h2 a:hover {
    color: var(--accent-gold-light);
}

.hero-slide-content .slide-meta {
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slide-content .slide-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slider-nav {
    position: absolute;
    bottom: 24px;
    right: 56px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--accent-gold);
    width: 48px;
    box-shadow: 0 0 12px rgba(245, 158, 11, .4);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, .4);
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* ========== CATEGORY BLOCKS ========== */
.categories-section {
    margin-bottom: 56px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card-header {
    padding: 16px 22px;
    background: var(--gradient-gold);
    position: relative;
    overflow: hidden;
}

.category-card-header::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.category-card-header h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.category-card-header h3 a {
    color: var(--bg-primary);
}

.category-card-body {
    padding: 22px;
}

.category-card-body .post-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.category-card-body .post-title a {
    color: var(--text-primary);
}

.category-card-body .post-title a:hover {
    color: var(--accent-gold-light);
}

.category-card-body .post-excerpt {
    font-size: .84rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.category-card-body .read-more {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: .8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.category-card-body .read-more:hover {
    color: var(--accent-gold-light);
    gap: 10px;
}

/* ========== SIDEBAR ========== */
.sidebar .widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition);
}

.sidebar .widget:hover {
    box-shadow: var(--shadow-glow);
}

.sidebar .widget-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .widget-title::before {
    content: '🔥';
    font-size: .85rem;
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: .87rem;
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget li a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
    display: block;
}

.sidebar .widget li a:hover {
    color: var(--accent-gold-light);
    padding-left: 8px;
}

.sidebar .widget .post-date {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Sidebar hot-badge style */
.sidebar .hot-badge {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* ========== SINGLE POST ========== */
.single-post-header {
    margin-bottom: 36px;
}

.single-post-header .category-badge {
    display: inline-block;
    background: rgba(245, 158, 11, .12);
    color: var(--accent-gold);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
    border: 1px solid rgba(245, 158, 11, .2);
}

.single-post-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: .85rem;
    color: var(--text-muted);
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta .meta-item svg {
    opacity: .6;
}

.post-meta .meta-divider {
    color: var(--border-color);
}

.featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--border-color);
}

.featured-image img {
    width: 100%;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-primary);
    padding-left: 16px;
    border-left: 3px solid var(--accent-gold);
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 12px;
    color: var(--text-primary);
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 26px 0 10px;
    color: var(--text-primary);
}

.post-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 22px 0 8px;
    color: var(--text-secondary);
}

.post-content h6 {
    font-size: .9rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 20px 28px;
    margin: 28px 0;
    background: rgba(245, 158, 11, .06);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

/* ========== RELATED POSTS ========== */
.related-posts {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.related-post-card .card-body {
    padding: 18px;
}

.related-post-card .card-category {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.related-post-card .card-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-post-card .card-title a {
    color: var(--text-primary);
}

.related-post-card .card-title a:hover {
    color: var(--accent-gold-light);
}

.related-post-card .card-date {
    font-size: .75rem;
    color: var(--text-muted);
}

/* ========== CATEGORY ARCHIVE ========== */
.archive-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.archive-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.archive-header h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-header .archive-desc {
    color: var(--text-secondary);
    font-size: .95rem;
}

.archive-posts-list .archive-post {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.archive-posts-list .archive-post:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.archive-posts-list .archive-post h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-posts-list .archive-post h2 a {
    color: var(--text-primary);
}

.archive-posts-list .archive-post h2 a:hover {
    color: var(--accent-gold-light);
}

.archive-posts-list .archive-post .post-excerpt {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.archive-posts-list .read-more {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: .8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.archive-posts-list .read-more:hover {
    color: var(--accent-gold-light);
    gap: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 28px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-col h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-col .footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-col p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: .85rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent-gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: .78rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent-gold);
}

/* ========== 18+ BADGE ========== */
.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, .15);
    color: var(--accent-red);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, .2);
    margin-top: 12px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp .5s ease both;
}

.category-card:nth-child(2) {
    animation-delay: .1s;
}

.category-card:nth-child(3) {
    animation-delay: .2s;
}

/* Pulse glow on slider dots */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, .3);
    }

    50% {
        box-shadow: 0 0 16px rgba(245, 158, 11, .5);
    }
}

.slider-dot.active {
    animation: pulseGlow 2s ease infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 14px 24px;
        gap: 10px;
    }

    .main-nav ul {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 6px 12px;
        font-size: .82rem;
    }

    .hero-slider {
        height: 340px;
        border-radius: var(--radius-lg);
    }

    .hero-slide-content h2 {
        font-size: 1.4rem;
    }

    .hero-slide-inner {
        padding: 28px;
    }

    .slider-nav {
        right: 28px;
        bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .single-post-header h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}