/*
Theme Name: Ozgeris
Theme URI: https://hobbi.st
Author: hobbist.kz
Author URI: https://hobbi.st
Description: Site-wide WordPress theme built from the visual language of the Ozgeris Coach Dashboard — dark glassmorphism, cyan/purple neon accents, Inter + Playfair Display typography, fixed glass header, glass sidebar navigation and a mobile bottom nav bar. The dashboard header/footer chrome is active on every page, not just the dashboard.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ozgeris
Tags: dark, glassmorphism, custom-menu, custom-logo, featured-images, footer-widgets, threaded-comments, translation-ready
*/

/* =========================================================
   1. DESIGN TOKENS  (copied 1:1 from the Ozgeris dashboard)
   ========================================================= */
:root {
    --bg-color: #05070f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    --warning-color: #ff3366;
    --success-color: #00e676;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --tg-color: #2AABEE;
    --danger: #ef4444;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Playfair Display', serif;
    --header-h: 64px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--bg-color); scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    line-height: 1.6;
}

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

a { color: var(--accent-cyan); text-decoration: none; transition: 0.2s; }
a:hover { color: #fff; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px 0;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 16px 0; color: var(--text-main); }

::selection { background: var(--accent-purple); color: #fff; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 10px; }

/* =========================================================
   3. BACKGROUND GLOW / SITE WRAPPER
   ========================================================= */
.ozg-site-wrapper { position: relative; min-height: 100vh; width: 100%; }

.ozg-bg-glow-1 { position: fixed; top: -10%; left: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0,0,0,0) 70%); filter: blur(60px); z-index: 0; pointer-events: none; }
.ozg-bg-glow-2 { position: fixed; bottom: -10%; right: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0,0,0,0) 70%); filter: blur(60px); z-index: 0; pointer-events: none; }

/* =========================================================
   4. GLASS COMPONENTS
   ========================================================= */
.ozg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
}

.ozg-btn {
    background: linear-gradient(135deg, #00f0ff, #0080ff);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,240,255,0.3);
    text-decoration: none;
    font-family: inherit;
}
.ozg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,240,255,0.45); color: #000; }

.ozg-btn-sec {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
    font-family: inherit;
}
.ozg-btn-sec:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-cyan); color: #fff; }

.ozg-badge {
    background: rgba(0,240,255,0.1);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ozg-fade-in { animation: fadeIn 0.5s ease both; }

/* =========================================================
   5. SITE HEADER  (fixed glass panel — active on EVERY page)
   ========================================================= */
.ozg-header-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.ozg-header-panel.ozg-hide { transform: translateY(-100%); }

.ozg-header-main { display: flex; align-items: center; gap: 16px; width: 100%; }

.ozg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.ozg-brand img { height: 36px; width: auto; border-radius: 8px; }
.ozg-brand:hover { color: var(--accent-cyan) !important; }

.ozg-header-nav { display: flex; align-items: center; gap: 4px; flex-grow: 1; }
.ozg-header-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.ozg-header-nav li { position: relative; }
.ozg-header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid transparent;
}
.ozg-header-nav a:hover,
.ozg-header-nav .current-menu-item > a,
.ozg-header-nav .current_page_item > a {
    background: rgba(255,255,255,0.06);
    border-color: var(--glass-border);
    color: var(--accent-cyan);
}

.ozg-header-resources { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ozg-resource-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
}

.ozg-profile-header { display: flex; align-items: center; gap: 10px; color: #fff !important; }
.ozg-profile-header img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent-purple); object-fit: cover; }
.ozg-profile-header-info { display: flex; flex-direction: column; line-height: 1.2; }
.ozg-profile-name { font-weight: 700; font-size: 0.9rem; }
.ozg-profile-trophy { font-size: 0.75rem; color: #fbbf24; font-weight: 700; }

.ozg-header-menu-btn {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.ozg-header-menu-btn:hover { background: rgba(255,255,255,0.1); color: var(--accent-cyan); }

.ozg-header-expanded {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
    animation: ozgFadeDown 0.25s ease;
}
@keyframes ozgFadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.ozg-header-expanded.show { display: flex; }
.ozg-header-expanded ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ozg-header-expanded a {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); padding: 12px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    font-weight: 600;
}
.ozg-header-expanded a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

.ozg-toast {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 240, 255, 0.1); border: 1px solid var(--accent-cyan);
    color: #fff; padding: 12px 24px; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); font-size: 0.9rem;
    z-index: 2147483647; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease; backdrop-filter: blur(10px);
}
.ozg-toast.show { opacity: 1; }

/* =========================================================
   6. PAGE LAYOUT  (sidebar + content, same grid as dashboard)
   ========================================================= */
.ozg-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 40px) 24px 100px 24px;
    position: relative;
    z-index: 1;
}

.ozg-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 30px); height: max-content; z-index: 10; }
.ozg-user { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 8px; }
.ozg-avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent-purple); object-fit: cover; }

.ozg-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; color: var(--text-muted); text-decoration: none;
    border-radius: 14px; font-weight: 500; transition: all 0.3s;
    border: 1px solid transparent; background: transparent;
    cursor: pointer; text-align: left; width: 100%; font-size: 1rem;
}
.ozg-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ozg-nav-link.active,
.ozg-nav-link.current-menu-item {
    background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(138,43,226,0.12));
    border-color: var(--accent-cyan); color: #fff;
}

.ozg-content { min-width: 0; }
.ozg-content .ozg-glass { margin-bottom: 24px; }

.ozg-widget-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }

/* single-column layout when sidebar is absent */
.ozg-layout.no-sidebar { grid-template-columns: 1fr; max-width: 900px; }

@media (max-width: 900px) {
    .ozg-layout { grid-template-columns: 1fr; padding: calc(var(--header-h) + 30px) 12px 150px 12px; }
    .ozg-sidebar { display: none; }
    .ozg-header-nav { display: none; }
    .ozg-header-menu-btn { display: flex; }
    .ozg-mob-nav { display: flex; }
}

/* =========================================================
   7. MOBILE BOTTOM NAV  (site-wide, same as dashboard)
   ========================================================= */
.ozg-mob-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(5,7,15,0.92);
    border-top: 1px solid var(--glass-border);
    padding: 10px; justify-content: space-around;
    z-index: 10000; backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.ozg-mob-item {
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-muted) !important; font-size: 0.65rem; gap: 4px;
    text-decoration: none; cursor: pointer;
}
.ozg-mob-item i, .ozg-mob-item svg { width: 20px; height: 20px; stroke: var(--text-muted); }
.ozg-mob-item.active,
.ozg-mob-item.current-menu-item { color: var(--accent-cyan) !important; }
.ozg-mob-item.active i, .ozg-mob-item.active svg,
.ozg-mob-item.current-menu-item i, .ozg-mob-item.current-menu-item svg { stroke: var(--accent-cyan); }

/* =========================================================
   8. SITE FOOTER  (glass, scrollable pill bar + widgets)
   ========================================================= */
.ozg-footer { position: relative; z-index: 1; border-top: 1px solid var(--glass-border); background: rgba(255,255,255,0.02); }

.ozg-footer-widgets {
    max-width: 1400px; margin: 0 auto;
    padding: 60px 24px 30px 24px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.ozg-footer-widgets .widget-title,
.ozg-footer-widgets h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; color: #fff; }
.ozg-footer-widgets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ozg-footer-widgets a { color: var(--text-muted); }
.ozg-footer-widgets a:hover { color: var(--accent-cyan); }

.ozg-footer-bottom {
    max-width: 1400px; margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    color: var(--text-muted); font-size: 0.85rem;
}
.ozg-footer-social { display: flex; gap: 10px; }
.ozg-footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: var(--text-muted) !important;
}
.ozg-footer-social a:hover { background: var(--accent-purple); border-color: var(--accent-purple); color: #fff !important; }

/* Scrollable pill footer bar (as seen in the dashboard "Gamer Panel Footer") */
.footer-content-wrapper {
    overflow-x: auto; overflow-y: visible; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-content-wrapper::-webkit-scrollbar { height: 3px; }
.footer-content-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.footer-content-wrapper::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 10px; }

.footer-button {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 30px; padding: 6px 14px; font-size: 0.75rem;
    white-space: nowrap; backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff !important; font-weight: 600;
}
.footer-button:hover { background: var(--accent-purple); border-color: var(--accent-purple); color: #fff !important; }

@media (max-width: 768px) {
    .footer-content-wrapper { padding: 6px 10px; }
    .footer-button { padding: 4px 10px; }
}

/* =========================================================
   9. CONTENT / TYPOGRAPHY / WP CORE
   ========================================================= */
.site-main { position: relative; z-index: 1; }

/* On the dashboard page the plugin renders its own full header/sidebar/footer,
   so the theme just gets out of the way and lets it fill the viewport. */
.ozg-dashboard-main { padding: 0; margin: 0; min-height: 100vh; }

.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(0,240,255,0.4); }
.entry-content blockquote {
    border-left: 3px solid var(--accent-cyan);
    background: rgba(255,255,255,0.03);
    padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 24px 0;
    color: var(--text-muted); font-style: italic;
}
.entry-content pre, .entry-content code {
    background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
    border-radius: 10px; color: #e2e8f0;
}
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content code { padding: 2px 6px; }
.entry-content img { border-radius: 16px; margin: 16px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content table th, .entry-content table td { border: 1px solid var(--glass-border); padding: 10px 14px; }
.entry-content table th { background: rgba(255,255,255,0.05); }
.wp-caption-text, figcaption { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin-top: 6px; }

.ozg-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ozg-post-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column;
}
.ozg-post-card:hover { transform: translateY(-4px); border-color: var(--accent-cyan); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.ozg-post-card .thumb { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: rgba(255,255,255,0.03); }
.ozg-post-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.ozg-post-card h2, .ozg-post-card h3 { font-size: 1.1rem; margin: 0; }
.ozg-post-card .excerpt { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }

.ozg-pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0 0; flex-wrap: wrap; }
.ozg-pagination a, .ozg-pagination span {
    padding: 8px 16px; border-radius: 10px; border: 1px solid var(--glass-border);
    color: var(--text-muted); background: rgba(255,255,255,0.03);
}
.ozg-pagination .current, .ozg-pagination a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.ozg-form input[type="text"], .ozg-form input[type="email"], .ozg-form input[type="url"],
.ozg-form input[type="search"], .ozg-form input[type="password"], .ozg-form textarea, .ozg-form select {
    width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
    color: #fff; padding: 12px 16px; border-radius: 12px; outline: none;
    transition: 0.3s; font-family: inherit; margin-bottom: 16px;
}
.ozg-form input:focus, .ozg-form textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.1); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-cyan); color: #000; padding: 12px 20px; z-index: 99999; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
