/*
Theme Name: CyberFeed Arena V2
Theme URI: https://mydkfood.com
Author: AI Designer
Description: High-performance, tactical HUD design for Esports.
Version: 2.1
*/

:root {
    /* --- NEW COLOR SCHEME: MAGMA PROTOCOL --- */
    --c-bg: #08090C;
    --c-panel: #12141A;
    --c-panel-hover: #1C1F26;
    
    --c-accent: #FF4655; /* Tactical Red */
    --c-accent-hover: #FF2030;
    --c-accent-secondary: #ECE8E1; /* Bone White */
    
    --c-text-main: #ECE8E1;
    --c-text-muted: #8B9BB4;
    
    --c-border: #2A2E38;
    --c-border-active: #FF4655;
    
    /* --- FONTS --- */
    --f-head: 'Rajdhani', sans-serif;
    --f-ui: 'Chakra Petch', sans-serif;
    --f-body: 'Inter', sans-serif;
    
    /* --- SPACING --- */
    --s-container: 1440px;
    --s-pad: 2rem;
    
    /* --- EFFECTS --- */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --glow-red: 0 0 25px rgba(255, 70, 85, 0.25);
    --shadow-panel: 0 10px 30px rgba(0,0,0,0.5);
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--f-head); text-transform: uppercase; font-weight: 700; line-height: 1.1; }

.t-display {
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: -0.03em;
    color: var(--c-text-main);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.t-section-head {
    font-size: clamp(2rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.t-section-head::before {
    content: '';
    display: block;
    width: 12px; height: 12px;
    background: var(--c-accent);
    box-shadow: 0 0 10px var(--c-accent);
}

.t-mono { font-family: var(--f-ui); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem; }

/* --- BUTTONS --- */
.btn-cyber {
    display: inline-flex;
    padding: 1.2rem 2.5rem;
    background: var(--c-accent);
    color: var(--c-text-main);
    font-family: var(--f-ui);
    font-weight: 700;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
}

.btn-cyber:hover {
    background: var(--c-text-main);
    color: var(--c-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
}
.btn-outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem var(--s-pad);
    background: rgba(8, 9, 12, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner { max-width: var(--s-container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.brand-logo { font-size: 1.8rem; font-weight: 800; font-family: var(--f-head); letter-spacing: 1px; }
.brand-logo span { color: var(--c-accent); }

.main-nav ul { display: flex; gap: 2.5rem; list-style: none; }
.main-nav a { font-family: var(--f-ui); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px; }
.main-nav a:hover { color: var(--c-accent); }

/* --- HERO --- */
.hero-section {
    padding: 180px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(255, 70, 85, 0.08) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--s-container);
    margin: 0 auto;
    padding: 0 var(--s-pad);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
}
.stat-item .val { display: block; font-size: 2rem; font-weight: 700; color: var(--c-accent); font-family: var(--f-head); }
.stat-item .lbl { font-size: 0.8rem; color: var(--c-text-muted); font-family: var(--f-ui); }

/* --- NEW: TICKER --- */
.meta-ticker {
    background: var(--c-accent);
    color: #fff;
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
    transform: skewY(-1deg);
    margin: -2rem 0 4rem;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}
.ticker-wrap { display: flex; white-space: nowrap; animation: ticker 20s linear infinite; }
.ticker-item { margin-right: 4rem; font-family: var(--f-ui); font-weight: 700; font-size: 1rem; text-transform: uppercase; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- NEW: FEATURED BREAKOUT --- */
.featured-breakout {
    margin: 6rem 0;
    background: var(--c-panel);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}

.breakout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: var(--s-container);
    margin: 0 auto;
}

.breakout-visual {
    background: #1a1d26;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.breakout-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

.breakout-content {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- POST GRID --- */
.grid-section { padding: 4rem var(--s-pad); max-width: var(--s-container); margin: 0 auto; }
.grid-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2.5rem; }

.post-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
    display: flex; flex-direction: column; height: 100%;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--c-accent); }

.card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #000;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); opacity: 0.9; }
.post-card:hover .card-thumb img { transform: scale(1.1); opacity: 1; }

.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.4rem; margin-bottom: 1rem; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }
.card-footer { border-top: 1px solid var(--c-border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-ui); font-size: 0.8rem; color: #666; }

/* --- NEWSLETTER --- */
.newsletter-section {
    margin-top: 6rem;
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-panel) 100%);
    border-top: 1px solid var(--c-border);
}

.nl-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--c-border);
    background: rgba(255,255,255,0.02);
    position: relative;
}
.nl-box::before { content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--c-accent); border-left: 2px solid var(--c-accent); }
.nl-box::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 20px; height: 20px; border-bottom: 2px solid var(--c-accent); border-right: 2px solid var(--c-accent); }

.nl-input {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid var(--c-border);
    color: #fff;
    margin: 1.5rem 0;
    font-family: var(--f-ui);
}

/* --- FOOTER --- */
.site-footer { background: #050507; padding: 4rem 0; border-top: 1px solid var(--c-border); color: #666; margin-top: 0; }
.footer-inner { max-width: var(--s-container); margin: 0 auto; padding: 0 var(--s-pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }

/* --- PAGINATION --- */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
}

.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    margin: 0 6px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-family: var(--f-ui);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    padding: 0 10px;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--c-accent);
    color: var(--c-text-main);
    border-color: var(--c-accent);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
    transform: translateY(-2px);
}

.page-numbers.prev, 
.page-numbers.next {
    padding: 0 20px;
    width: auto;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: #666;
}
.page-numbers.dots:hover {
    background: transparent;
    color: #666;
    box-shadow: none;
    transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-grid, .breakout-grid { grid-template-columns: 1fr; }
    .t-display { font-size: 3rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .header-inner { flex-direction: column; gap: 1rem; }
    .main-nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}
