/* Core Developer-Tools Theme Global Styles */
:root {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --secondary: #94a3b8;
    --dark: #080d1a;
    --light: #f8fafc;
    --accent: #a855f7;
    --glass: rgba(13, 20, 38, 0.8);
    --glass-border: rgba(56, 189, 248, 0.14);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #080d1a !important;
    color: #f8fafc !important;
    line-height: 1.6;
    overflow-x: hidden;
    /* Clean dark background — no stars, subtle depth only */
    background-image:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(99, 60, 180, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(30, 100, 180, 0.08) 0%, transparent 60%);
    background-size: 100% 100%, 100% 100%;
    background-attachment: fixed;
}

/* Global Overrides for Dark Space Theme */
.text-dark {
    color: #f8fafc !important;
}

.text-secondary {
    color: #94a3b8 !important;
}

.text-muted {
    color: #64748b !important;
}

.bg-light,
.bg-white {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--glass-border);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.gradient-text,
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #c084fc 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Navbar Overrides for Floating Header */
.navbar {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0;
}

/* Glassmorphism Cards */
.card,
.glass-card {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    border-radius: 16px !important;
    transition: var(--transition) !important;
}

.card:hover,
.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15), 0 0 25px rgba(139, 92, 246, 0.12) !important;
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 1.5rem;
}

.counter-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.counter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #94a3b8;
}

/* Form inputs in Space Theme */
.form-control,
.form-select {
    background-color: rgba(7, 11, 20, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #f8fafc !important;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(7, 11, 20, 0.9) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
}

.form-floating label {
    color: #94a3b8 !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4) !important;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5) !important;
}

.btn-outline-primary {
    border: 1.5px solid #38bdf8 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.05) !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: #38bdf8 !important;
    color: #070b14 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5) !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #050811 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    color: #f8fafc;
    padding: 80px 0 40px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: #38bdf8;
}

/* Utilities */
.hover-cyan {
    transition: var(--transition);
}

.hover-cyan:hover {
    color: #38bdf8 !important;
    transform: translateX(4px);
}

/* Dropdown Menu Glass Styling */
.dropdown-menu.glass-card {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

/* Form Check Inputs */
.form-check-input {
    background-color: rgba(7, 11, 20, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
/* ---------------------------------------------------------------
   Görsel galerisi ve lightbox — _Gallery partial'i + site.js
   --------------------------------------------------------------- */
.ybt-gallery {
    margin-top: 1.75rem;
}

.ybt-gallery-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #e2e8f0;
}

.ybt-gallery-head i {
    color: #38bdf8;
}

.ybt-gallery-count {
    margin-left: auto;
    font-weight: 400;
    font-size: 0.78rem;
    color: #94a3b8;
}

.ybt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.6rem;
}

.ybt-gallery-item {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: none;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ybt-gallery-item:hover,
.ybt-gallery-item:focus-visible {
    transform: translateY(-2px);
    border-color: #38bdf8;
    outline: none;
}

.ybt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox: site.js tek bir tane olusturup body'ye ekler. */
.ybt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ybt-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ybt-lightbox img {
    max-width: min(94vw, 1280px);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.ybt-lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.ybt-lightbox-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
}

.ybt-lightbox-close { top: 1.1rem; right: 1.1rem; }
.ybt-lightbox-prev { left: 1.1rem; }
.ybt-lightbox-next { right: 1.1rem; }

.ybt-lightbox-counter {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
    .ybt-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
    .ybt-lightbox-prev { left: 0.4rem; }
    .ybt-lightbox-next { right: 0.4rem; }
}

/* Hareket azaltma tercihi aciksa gecisleri kapatiyoruz. */
@media (prefers-reduced-motion: reduce) {
    .ybt-gallery-item,
    .ybt-lightbox { transition: none; }
}

/* Kapak üstündeki "N görsel" rozeti — _GalleryTrigger partial'i */
.gallery-trigger-badge {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(6px);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: zoom-in;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.gallery-trigger-badge:hover,
.gallery-trigger-badge:focus-visible {
    background: rgba(56, 189, 248, 0.26);
    border-color: #38bdf8;
    outline: none;
}

.gallery-trigger-badge i {
    font-size: 0.8rem;
}

/* Çok günlü etkinliklerin "3 gün" etiketi */
.event-daycount {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Tüzük sayfası — _TuzukMetni partial'i */
.tuzuk-metin { line-height: 1.85; color: #cbd5e1; }
.tuzuk-metin .tuzuk-madde {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
.tuzuk-metin .tuzuk-madde:first-child { margin-top: 0; }
.tuzuk-metin ul { padding-left: 1.2rem; }
.tuzuk-metin li { margin-bottom: 0.4rem; }
.tuzuk-metin strong { color: #e2e8f0; }
