/*
Theme Name: 2GAMER NEWS Theme (Variant 1)
Theme URI: https://2gamer.co.il
Author: AI Theme Builder
Version: 7.0.0
Text Domain: theme-2gamer-co-il
Font: Varela Round
*/

:root {
    --font-primary: 'Varela Round', sans-serif;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-primary: #0FBD92;
    --color-primary-hover: #25F4C1;
    --color-accent: #25F4C1;
    --color-border: #e2e8f0;
    --color-link: #25F4C1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    transition: font-size 0.2s, background-color 0.2s, color 0.2s;
}

body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.high-contrast a, body.high-contrast p, body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4 {
    color: #ffff00 !important;
}
body.high-contrast .site-header, body.high-contrast .post-card, body.high-contrast .hero-card {
    background-color: #111111 !important;
    border-color: #ffff00 !important;
}

a { color: var(--color-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--color-primary-hover); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-top-bar { background: #0f172a; color: #cbd5e1; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid #1e293b; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.top-bar-date { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ticker-wrapper { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.ticker-badge { background: var(--color-accent); color: #ffffff; font-weight: 800; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ticker-content a { color: #f1f5f9; font-weight: 500; }

/* HEADER & MOBILE NAVIGATION */
.site-header { background: #ffffff; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; position: relative; width: 100%; }
.site-branding { order: 1; display: flex; align-items: center; }
.site-branding a { display: flex; align-items: center; }
.site-logo-img { height: 44px; width: auto; max-width: 220px; display: block; }

.main-navigation { order: 2; }
.main-navigation ul { display: flex; list-style: none; gap: 24px; }
.main-navigation a { font-weight: 700; font-size: 1.05rem; color: #1e293b; padding: 8px 0; }
.main-navigation a:hover { color: var(--color-accent); }

.menu-toggle {
    order: 3;
    display: none; background: transparent; border: 1px solid var(--color-border);
    border-radius: 6px; cursor: pointer; padding: 8px 12px; align-items: center; gap: 8px;
    font-weight: 700; color: var(--color-primary); z-index: 1001;
}

.hamburger-box { width: 22px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-box span { display: block; width: 100%; height: 3px; background: var(--color-primary); border-radius: 2px; transition: 0.3s; }

@media (max-width: 900px) {
    .main-navigation { display: none; }
    .menu-toggle { display: flex; }
    .primary-menu-container, .main-navigation ul {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        background: var(--color-surface); box-shadow: 0 12px 25px rgba(0,0,0,0.15);
        padding: 20px; flex-direction: column; gap: 16px; border-bottom: 4px solid var(--color-primary); z-index: 9999;
    }
    .primary-menu-container.is-active, .main-navigation ul.is-active { display: flex !important; }
}

/* MARKETING BANNERS STYLING */
.ad-banner-container { width: 100%; margin: 25px 0; text-align: center; }
.ad-badge { font-size: 0.75rem; color: #94a3b8; text-align: left; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.ad-banner-link { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--color-border); }
.ad-banner-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.ad-banner-img { width: 100%; height: auto; max-height: 350px; object-fit: contain; display: block; }

.news-hero-section { margin: 30px 0; }
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); position: relative; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.hero-card.main-hero { height: 420px; }
.sub-hero-wrapper { display: flex; flex-direction: column; gap: 20px; }
.card-image-link { width: 100%; height: 100%; display: block; overflow: hidden; background: #e2e8f0; }
.card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(15, 23, 42, 0.95)); color: #ffffff; }
.card-category a { background: var(--color-accent); color: #ffffff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; display: inline-block; margin-bottom: 8px; }
.card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.card-title a { color: #ffffff; }
.card-meta { font-size: 0.8rem; opacity: 0.85; }

.news-category-section { margin-bottom: 40px; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--color-border); padding-bottom: 10px; }
.category-title a { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); }
.view-all-link { font-size: 0.9rem; font-weight: 600; color: var(--color-accent); }
.category-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Footer & Legal Disclaimer */
.site-footer { background: var(--color-primary); color: #ffffff; padding: 50px 0 20px 0; margin-top: 60px; border-top: 4px solid var(--color-accent); }
.footer-content { display: flex; flex-direction: column; gap: 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.footer-widget h3 { color: #ffffff; font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 8px; display: inline-block; }
.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 10px; }
.footer-widget a { color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-widget a:hover { color: #ffffff; }

/* Structural Variations */
.news-hero-section.layout-1 .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.news-hero-section.layout-1 .hero-card.main-hero { grid-column: span 2; height: 350px; }
.news-hero-section.layout-2 .hero-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
.news-hero-section.layout-2 .hero-card.main-hero { grid-row: span 2; }
.news-hero-section.layout-3 .hero-grid { display: flex; flex-direction: column; gap: 20px; }
.news-hero-section.layout-3 .hero-card { height: 250px; }

.post-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); display: flex; flex-direction: column; transition: transform 0.2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card-thumb { height: 180px; display: block; overflow: hidden; background: #f1f5f9; }
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: #64748b; font-weight: 700; padding: 15px; text-align: center; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.post-card-title a { color: var(--color-text); }
.post-card-excerpt { font-size: 0.92rem; color: var(--color-muted); margin-bottom: 15px; flex-grow: 1; }
.post-card-meta { font-size: 0.8rem; color: var(--color-muted); border-top: 1px solid var(--color-border); padding-top: 10px; display: flex; justify-content: space-between; }

/* Floating Accessibility Widget */
.accessibility-btn {
    position: fixed; bottom: 20px; left: 20px; width: 48px; height: 48px;
    background: var(--color-primary); color: #ffffff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); cursor: pointer; z-index: 10000; border: 2px solid #ffffff; transition: transform 0.2s;
}
.accessibility-btn:hover { transform: scale(1.1); }
.accessibility-panel {
    display: none; position: fixed; bottom: 80px; left: 20px; background: #ffffff;
    border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 20px; z-index: 10001; width: 240px; direction: rtl;
}
.accessibility-panel.is-open { display: block; }
.accessibility-panel h4 { font-size: 1rem; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; color: #0f172a; }
.accessibility-panel button {
    width: 100%; padding: 8px 12px; margin-bottom: 8px; background: #f1f5f9;
    border: 1px solid #cbd5e1; border-radius: 6px; font-weight: 700; cursor: pointer; text-align: right; font-size: 0.9rem; color: #1e293b;
}
.accessibility-panel button:hover { background: #e2e8f0; }

/* Footer & Legal Disclaimer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 50px 0 20px 0; margin-top: 60px; }
.footer-content { display: flex; flex-direction: column; gap: 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.footer-widget h3 { color: #ffffff; font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid #334155; padding-bottom: 8px; display: inline-block; }
.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 10px; }
.footer-widget a { color: #cbd5e1; font-weight: 500; }
.footer-widget a:hover { color: #ffffff; }

.footer-disclaimer-box {
    background: #1e293b; border-radius: 8px; padding: 20px; font-size: 0.88rem; line-height: 1.6; color: #cbd5e1; border-right: 4px solid var(--color-accent);
}
.footer-disclaimer-box p { margin-bottom: 10px; }
.footer-disclaimer-box p:last-child { margin-bottom: 0; }
.footer-disclaimer-box a { color: #38bdf8; font-weight: 700; text-decoration: underline; }

.footer-bottom { border-top: 1px solid #1e293b; padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.95rem; }
.footer-mandatory-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-mandatory-links a { font-weight: 700 !important; color: #38bdf8 !important; text-decoration: underline !important; }
.footer-mandatory-links a:hover { color: #7dd3fc !important; }

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card.main-hero { height: 300px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
