/*
Theme Name: Kozmobet Child
Theme URI: 
Description: قالب اختصاصی سایت پیش بینی کوزموبت
Author: 
Author URI: 
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   1. CSS Variables (Dark Mode & Accents)
   ========================================================================== */
:root {
    /* Backgrounds */
    --kz-bg-main: #0B132B;
    --kz-bg-card: #1C2541;
    --kz-bg-card-hover: #263152;
    
    /* Typography */
    --kz-text-primary: #FFFFFF;
    --kz-text-secondary: #94A3B8;
    
    /* Accents (Neon Green for winning/tips, Orange for alerts) */
    --kz-accent-green: #00E676;
    --kz-accent-green-glow: rgba(0, 230, 118, 0.2);
    --kz-accent-orange: #FF9100;
    
    /* Fonts */
    --kz-font-fa: 'Vazirmatn', 'Yekan Bakh', Tahoma, Arial, sans-serif;
    --kz-font-en: 'Inter', 'Roboto', sans-serif;
    
    /* UI Values */
    --kz-border-radius: 12px;
    --kz-transition: all 0.3s ease;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */
body {
    background-color: var(--kz-bg-main);
    color: var(--kz-text-primary);
    font-family: var(--kz-font-fa);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kz-text-primary);
}

a {
    color: var(--kz-accent-green);
    text-decoration: none;
    transition: var(--kz-transition);
}

a:hover {
    color: #ffffff;
}

/* ==========================================================================
   3. Feed Layout & Match Cards (Bot Integration)
   ========================================================================== */
.kz-feed-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* The Main Match Card */
.kz-match-card {
    background-color: var(--kz-bg-card);
    border-radius: var(--kz-border-radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--kz-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kz-match-card:hover {
    background-color: var(--kz-bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(0, 230, 118, 0.3);
}

/* Card Header (League & Time) */
.kz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--kz-text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.kz-league {
    font-weight: bold;
    color: var(--kz-accent-orange);
}

.kz-time {
    font-family: var(--kz-font-en);
}

/* Teams Area */
.kz-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.kz-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.kz-team-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.kz-team-name {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.kz-vs {
    font-family: var(--kz-font-en);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--kz-text-secondary);
    padding: 0 15px;
}

/* Tip & Odds Box */
.kz-tip-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.kz-tip-label {
    font-size: 0.9rem;
    color: var(--kz-text-secondary);
    margin-bottom: 4px;
}

.kz-tip-value {
    color: var(--kz-accent-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.kz-odds-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.kz-odds-value {
    font-family: var(--kz-font-en);
    background-color: var(--kz-accent-green);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Button */
.kz-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: var(--kz-accent-green);
    border: 1px solid var(--kz-accent-green);
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 5px;
}

.kz-action-btn:hover {
    background-color: var(--kz-accent-green);
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .kz-team-name {
        font-size: 0.95rem;
    }
    .kz-team-logo img {
        width: 36px;
        height: 36px;
    }
    .kz-tip-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .kz-odds-box {
        align-items: flex-start;
        width: 100%;
    }
}

/* ==========================================================================
   4. Global GeneratePress Overrides (Dark Mode Force)
   ========================================================================== */
/* Body and wrappers */
body, 
.site, 
.site-wrapper,
.site-content,
#main {
    background-color: var(--kz-bg-main) !important;
    color: var(--kz-text-primary) !important;
}

/* Header & Navigation */
.site-header, 
.main-navigation,
.main-navigation ul ul {
    background-color: var(--kz-bg-card) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-navigation .main-nav ul li a, 
.site-header .site-title a {
    color: var(--kz-text-primary) !important;
}

.main-navigation .main-nav ul li:hover > a {
    color: var(--kz-accent-green) !important;
}

/* Single Post Content Area (The white box issue) */
.inside-article,
.sidebar .widget,
.comments-area {
    background-color: var(--kz-bg-card) !important;
    color: var(--kz-text-secondary) !important;
    border-radius: var(--kz-border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    padding: 30px !important; /* give it breathing room */
}

/* Post Titles */
h1.entry-title {
    color: var(--kz-accent-green) !important;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Article Typography */
.entry-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #e2e8f0 !important;
}

.entry-content h2 {
    color: #fff !important;
    font-size: 1.6rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-right: 4px solid var(--kz-accent-green);
    padding-right: 15px;
}

.entry-content h3 {
    color: #f8fafc !important;
    font-size: 1.3rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Shortcode specific spacing inside posts */
.kz-single-post-card {
    margin: 20px 0 40px 0; /* Space out the tip box from the rest of the text */
}

/* Sidebar Widgets */
.widget-title {
    color: var(--kz-accent-green) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.sidebar .widget a {
    color: #e2e8f0;
}
.sidebar .widget a:hover {
    color: var(--kz-accent-green);
}
