/* Oyun Garaj – business profiles and sponsored ads. Built on Bootstrap variables so dark mode follows the theme. */
:root {
    --ogb-accent: #f97316;
    --ogb-accent-dark: #ea580c;
    --ogb-card-bg: var(--bs-body-bg, #fff);
    --ogb-soft-bg: var(--bs-tertiary-bg, #f6f7f9);
    --ogb-border: var(--bs-border-color, #e5e7eb);
    --ogb-muted: var(--bs-secondary-color, #6b7280);
    --ogb-radius: 0.75rem;
}

/* ---- shared ------------------------------------------------------------------------------------ */
.ogb-card { background: var(--ogb-card-bg); border: 1px solid var(--ogb-border); border-radius: var(--ogb-radius); padding: 1.25rem; margin-bottom: 1rem; }
.ogb-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
fieldset.ogb-card > legend.ogb-card-title { float: none; width: auto; padding: 0; }
.ogb-section-title { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.ogb-empty { color: var(--ogb-muted); padding: 1rem 0; }
.ogb-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ogb-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--ogb-muted); font-size: .92rem; align-items: center; }
.ogb-verified { display: inline-flex; vertical-align: middle; margin-left: .3rem; line-height: 0; }
.ogb-danger, .ogb-danger:hover { color: #c2410c !important; }
.ogb-note { margin-top: .35rem; font-size: .82rem; color: #c2410c; }
.ogb-inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0; }
.ogb-inline-form > .form-control, .ogb-inline-form > .form-select { flex: 1 1 200px; width: auto; }
.ogb-check { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1rem .4rem 0; cursor: pointer; }
.ogb-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .1rem .75rem; }
.ogb-scroll { max-height: 220px; overflow: auto; border: 1px solid var(--ogb-border); border-radius: .5rem; padding: .5rem .75rem; }
.ogb-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ogb-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.ogb-table td, .ogb-table th { vertical-align: middle; }
.ogb-row-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.ogb-row-actions form { margin: 0; }
.ogb-amount.is-pos { color: #15803d; font-weight: 600; }
.ogb-amount.is-neg { color: #c2410c; }
.btn-custom.ogb-btn, .ogb-head .btn-custom { background-color: var(--ogb-accent); border-color: var(--ogb-accent); }

/* ---- profile page ------------------------------------------------------------------------------ */
.ogb-profile { padding-top: 0 !important; }
.ogb-slider { position: relative; overflow: hidden; background: #111; aspect-ratio: 16 / 6; max-height: 520px; width: 100%; }
.ogb-slides, .ogb-slide { position: absolute; inset: 0; margin: 0; }
.ogb-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ogb-slide.is-active { opacity: 1; visibility: visible; }
.ogb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ogb-slide-link { display: block; height: 100%; color: inherit; }
.ogb-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 6% 2.2rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); display: flex; flex-direction: column; gap: .25rem; }
.ogb-slide-caption strong { font-size: clamp(1.2rem, 3vw, 2.2rem); line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.ogb-slide-caption span { font-size: clamp(.9rem, 1.6vw, 1.15rem); opacity: .92; }
.ogb-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.ogb-slider-nav:hover, .ogb-slider-nav:focus-visible { background: var(--ogb-accent); outline: none; }
.ogb-prev { left: 1rem; } .ogb-next { right: 1rem; }
.ogb-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.ogb-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.ogb-dot.is-active { background: var(--ogb-accent); width: 26px; border-radius: 6px; }
.ogb-cover { height: 260px; background: center / cover no-repeat; }
.ogb-cover-empty { height: 160px; background: linear-gradient(120deg, #1f2937, #f97316); }

.ogb-head { display: flex; align-items: flex-end; gap: 1.25rem; margin-top: -56px; position: relative; z-index: 3; padding-bottom: 1rem; border-bottom: 1px solid var(--ogb-border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.ogb-logo { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--ogb-card-bg); background: var(--ogb-soft-bg); overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ogb-logo img { width: 100%; height: 100%; object-fit: cover; }
.ogb-logo span { font-size: 2.4rem; font-weight: 800; color: var(--ogb-accent); }
.ogb-head-info { flex: 1 1 260px; min-width: 0; padding-top: 60px; }
.ogb-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 .3rem; display: flex; align-items: center; flex-wrap: wrap; }
.ogb-tagline { margin: .5rem 0 0; font-size: 1.02rem; }
.ogb-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ogb-head-actions form { margin: 0; }
.ogb-about { white-space: normal; line-height: 1.65; }
.ogb-contact, .ogb-hours { list-style: none; margin: 0; padding: 0; }
.ogb-contact li { display: flex; flex-direction: column; padding: .45rem 0; border-bottom: 1px dashed var(--ogb-border); word-break: break-word; }
.ogb-contact li:last-child, .ogb-hours li:last-child { border-bottom: 0; }
.ogb-contact span { font-size: .8rem; color: var(--ogb-muted); }
.ogb-hours li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--ogb-border); }
.ogb-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.ogb-social a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--ogb-border); text-decoration: none; font-size: .9rem; }
.ogb-social a:hover { border-color: var(--ogb-accent); color: var(--ogb-accent); }
.ogb-post-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.ogb-post-head strong { display: flex; align-items: center; }
.ogb-post-head time { display: block; font-size: .82rem; color: var(--ogb-muted); }
.ogb-post-head form { margin: 0; }
.ogb-post-logo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--ogb-soft-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ogb-accent); flex: 0 0 auto; }
.ogb-post-logo img { width: 100%; height: 100%; object-fit: cover; }
.ogb-post-body { line-height: 1.6; word-break: break-word; }
.ogb-post-image { display: block; max-width: 100%; height: auto; border-radius: .5rem; margin-top: .75rem; }

/* ---- directory --------------------------------------------------------------------------------- */
.ogb-dir-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ogb-dir-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.ogb-dir-filter .form-control, .ogb-dir-filter .form-select { width: auto; min-width: 200px; }
.ogb-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.ogb-dir-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ogb-border); border-radius: var(--ogb-radius); overflow: hidden; background: var(--ogb-card-bg); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.ogb-dir-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); color: inherit; }
.ogb-dir-cover { height: 96px; background: linear-gradient(120deg, #1f2937, #f97316) center / cover no-repeat; }
.ogb-dir-logo { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ogb-card-bg); background: var(--ogb-soft-bg); margin: -32px 0 0 1rem; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ogb-accent); }
.ogb-dir-logo img { width: 100%; height: 100%; object-fit: cover; }
.ogb-dir-body { display: flex; flex-direction: column; gap: .2rem; padding: .5rem 1rem 1rem; }
.ogb-dir-body strong { display: flex; align-items: center; font-size: 1.05rem; }
.ogb-dir-body small { color: var(--ogb-muted); }
.ogb-dir-tagline { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- management -------------------------------------------------------------------------------- */
.ogb-manage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ogb-manage-head h2 { font-size: 1.5rem; font-weight: 800; margin: .25rem 0 .4rem; display: flex; align-items: center; }
.ogb-back { font-size: .88rem; text-decoration: none; color: var(--ogb-muted); }
.ogb-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--ogb-border); margin-bottom: 1.25rem; scrollbar-width: thin; }
.ogb-tabs a { padding: .6rem 1rem; white-space: nowrap; text-decoration: none; color: var(--ogb-muted); border-bottom: 3px solid transparent; font-weight: 600; }
.ogb-tabs a:hover { color: inherit; }
.ogb-tabs a.is-active { color: var(--ogb-accent); border-bottom-color: var(--ogb-accent); }
.ogb-publish { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ogb-publish form { margin: 0; }
.ogb-image-preview { background: var(--ogb-soft-bg); border-radius: .5rem; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ogb-muted); margin-bottom: .5rem; }
.ogb-image-logo { width: 120px; height: 120px; border-radius: 50%; }
.ogb-image-cover { aspect-ratio: 16 / 5; width: 100%; }
.ogb-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.ogb-slide-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 1rem; align-items: start; }
.ogb-slide-thumb { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: .5rem; }
.ogb-slide-form { margin: 0; }
.ogb-slide-tools { display: flex; flex-direction: column; gap: .35rem; }
.ogb-slide-tools form { margin: 0; }
@media (max-width: 767.98px) { .ogb-slide-row { grid-template-columns: 1fr; } .ogb-slide-tools { flex-direction: row; } }
.ogb-balance { display: flex; flex-direction: column; gap: .35rem; }
.ogb-balance strong { font-size: 2rem; color: var(--ogb-accent); font-weight: 800; }
.ogb-presets { display: flex; gap: .35rem; flex-wrap: wrap; }
.ogb-form-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; padding: .75rem 0; background: var(--ogb-card-bg); border-top: 1px solid var(--ogb-border); z-index: 4; }
.ogb-preview-wrap { position: sticky; top: 90px; }
.ogb-verify-head { display: flex; gap: 1rem; align-items: center; }
.ogb-verify-head .ogb-verified { margin: 0; }

/* ---- statistics -------------------------------------------------------------------------------- */
.ogb-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ogb-kpi { background: var(--ogb-card-bg); border: 1px solid var(--ogb-border); border-radius: var(--ogb-radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; border-top: 3px solid var(--ogb-accent); }
.ogb-kpi span { font-size: .8rem; color: var(--ogb-muted); }
.ogb-kpi strong { font-size: 1.4rem; font-weight: 800; }
.ogb-kpi small { font-size: .75rem; color: var(--ogb-muted); }
.ogb-range { display: flex; gap: .35rem; }
.ogb-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ogb-chart-grid { stroke: var(--ogb-border); stroke-width: 1; }
.ogb-chart-axis { fill: var(--ogb-muted); font-size: 11px; font-family: inherit; }
.ogb-chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ogb-muted); margin-top: .5rem; }
.ogb-chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.ogb-chart-title { font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; }
.ogb-chart circle:hover, .ogb-chart rect:hover { opacity: .75; }

/* ---- sponsored ads ----------------------------------------------------------------------------- */
.ogb-ad { position: relative; width: 100%; }
.ogb-ad > a, .ogb-ad > .ogb-ad-inner { display: flex; text-decoration: none; color: inherit; background: var(--ogb-card-bg); border: 1px solid var(--ogb-border); border-radius: var(--ogb-radius); overflow: hidden; height: 100%; transition: box-shadow .15s, border-color .15s; }
.ogb-ad > a:hover { border-color: var(--ogb-accent); box-shadow: 0 6px 20px rgba(249,115,22,.12); color: inherit; }
.ogb-ad-label { position: absolute; top: .5rem; left: .5rem; z-index: 1; background: rgba(17,24,39,.72); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.ogb-ad-media { background: var(--ogb-soft-bg) center / cover no-repeat; flex: 0 0 auto; }
.ogb-ad-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem; min-width: 0; flex: 1 1 auto; }
.ogb-ad-brand { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ogb-muted); font-weight: 600; }
.ogb-ad-brand img { border-radius: 50%; object-fit: cover; }
.ogb-ad-brand .ogb-verified { margin-left: 0; }
.ogb-ad-title { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ogb-ad-text { font-size: .88rem; color: var(--ogb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ogb-ad-cta { align-self: flex-start; margin-top: auto; background: var(--ogb-accent); color: #fff; font-weight: 700; font-size: .82rem; padding: .35rem .9rem; border-radius: .4rem; }
.ogb-ad-wide { max-width: 970px; margin: 0 auto; }
.ogb-ad-wide > a { flex-direction: row; min-height: 110px; }
.ogb-ad-wide .ogb-ad-media { width: 210px; aspect-ratio: 1200 / 628; }
.ogb-ad-wide.ogb-ad-noimg .ogb-ad-label { position: static; align-self: flex-start; margin: .85rem 0 0 1rem; }
.ogb-ad-card > a, .ogb-ad-card > .ogb-ad-inner { flex-direction: column; }
.ogb-ad-card .ogb-ad-media { width: 100%; aspect-ratio: 1200 / 628; }
.ogb-ad-card.ogb-ad-noimg .ogb-ad-body { padding-top: 2.2rem; }
@media (max-width: 575.98px) { .ogb-ad-wide > a { flex-direction: column; } .ogb-ad-wide .ogb-ad-media { width: 100%; } }
.ogb-sponsored { margin-bottom: 1.5rem; }
.ogb-sponsored-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: .85rem; }
.ogb-sponsored-head span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ogb-muted); }
.ogb-sponsored-head a { color: var(--ogb-accent); text-decoration: none; }
.ogb-sponsored-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ogb-sponsored_sidebar .ogb-sponsored-grid { grid-template-columns: 1fr; }
.ogb-ad-card.ogb-preview-card, .ogb-preview-wrap .ogb-ad { max-width: 360px; }

/* fixed-size banners (728x90, 300x250, 160x600) */
.ogb-banner { margin: 0 auto; line-height: 0; }
.ogb-banner > a { display: block; position: relative; border: 0; border-radius: .25rem; background: transparent; overflow: hidden; }
.ogb-banner > a:hover { box-shadow: none; }
.ogb-banner img { display: block; width: 100%; height: auto; }
.ogb-banner .ogb-ad-label { top: 4px; left: 4px; font-size: .6rem; padding: 1px 6px; line-height: 1.4; opacity: .85; }

/* left / right side rails beside the page content; business.js positions and reveals them */
.ogb-rail { position: fixed; top: 50%; transform: translateY(-50%); width: 160px; z-index: 20; }
.ogb-rail[hidden] { display: none !important; }
.ogb-rail .ogb-banner { max-width: 160px; }
@media (max-width: 1599.98px) { .ogb-rail { display: none !important; } }
@media print { .ogb-rail { display: none !important; } }

/* campaign form: creatives */
.ogb-creative { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; border-top: 1px dashed var(--ogb-border); }
.ogb-creative:first-of-type { border-top: 0; }
.ogb-creative-frame { flex: 0 0 auto; width: 100%; background: var(--ogb-soft-bg); border: 1px dashed var(--ogb-border); border-radius: .4rem; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ogb-muted); font-size: .75rem; font-weight: 700; }
.ogb-creative-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ogb-creative[data-w="160"] .ogb-creative-frame { width: 64px; }
.ogb-creative[data-w="300"] .ogb-creative-frame { width: 120px; }
.ogb-creative[data-w="728"] .ogb-creative-frame { width: 240px; }
.ogb-creative[data-w="1200"] .ogb-creative-frame { width: 160px; }
.ogb-creative-info { flex: 1 1 auto; min-width: 0; }
.ogb-creative-msg { display: block; font-size: .8rem; margin-top: .25rem; }
.ogb-creative-msg.is-ok { color: #15803d; }
.ogb-creative-msg.is-error { color: var(--ogb-accent-dark); font-weight: 600; }
@media (max-width: 575.98px) { .ogb-creative { flex-direction: column; } .ogb-creative[data-w] .ogb-creative-frame { width: 100%; max-width: 240px; } }

@media (prefers-reduced-motion: reduce) { .ogb-slide { transition: none; } .ogb-dir-card { transition: none; } }
