:root {
    --brand: #4C8C2F;        /* logo koyu çimen yeşili (ana) */
    --brand-2: #3C6F25;      /* daha koyu (hover) */
    --brand-3: #8BC34A;      /* logo açık çimen yeşili */
    --brand-light: #f1f8e9;
    --accent: #8BC34A;
    --ink: #2b2b2b;          /* logo "ONGUN" koyu gri */
    --muted: #6b7280;
    --line: #e5e7eb;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

.navbar-brand { font-weight: 700; color: var(--ink) !important; padding-top: .15rem; padding-bottom: .15rem; }
/* Logo header'da sabit boyut (büyük açılmasın) */
.site-logo { height: 50px !important; max-height: 50px !important; width: auto !important; max-width: 240px; object-fit: contain; }
@media (max-width: 575px) { .site-logo { height: 40px !important; max-height: 40px !important; max-width: 180px; } }
.navbar.bg-white { box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; }
.brand-word { line-height: 1; }
.brand-word .b1 { font-weight: 800; color: var(--ink); letter-spacing: .5px; font-size: 1.35rem; }
.brand-word .b2 { font-weight: 700; color: var(--brand); letter-spacing: .12em; font-size: .62rem; display: block; }

.text-brand { color: var(--brand) !important; }
.text-ink { color: var(--ink) !important; }
.text-accent { color: var(--brand-3) !important; }
.bg-brand { background-color: var(--brand) !important; }
.bg-ink { background-color: var(--ink) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }
.btn-brand { background-color: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background-color: var(--brand-2); color: #fff; }
/* Pasif (disabled) buton net görünsün: gri + tıklanamaz */
.btn-brand:disabled, .btn-brand.disabled { background-color: #b7c0ba !important; color: #f1f1f1 !important; cursor: not-allowed; opacity: 1; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.badge.bg-light.text-brand { background: var(--brand-light) !important; }

/* Hero / slider */
.hero-slide {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-color: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    /* Sol tarafta yazı okunsun diye koyu, sağa doğru saydam -> resim canlı görünür */
    background: linear-gradient(90deg, rgba(15,38,18,.72) 0%, rgba(15,38,18,.38) 42%, rgba(15,38,18,0) 78%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 { font-size: 2.7rem; font-weight: 800; letter-spacing: -.5px; }

/* Slider yavaş zoom (Ken Burns) + içerik beliriş */
.carousel-item.active .hero-slide { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { background-size: 108%; } to { background-size: 122%; } }
.carousel-item.active .hero-slide h1 { animation: heroUp .8s ease both; }
.carousel-item.active .hero-slide p  { animation: heroUp .8s .15s ease both; }
.carousel-item.active .hero-slide a  { animation: heroUp .8s .30s ease both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.carousel-fade .carousel-item { transition: opacity .8s ease; }

/* Rakamlar şeridi */
.stats-strip { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; }
.stats-strip .stat-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stats-strip .stat-num .suffix { color: var(--brand-3); }
.stats-strip .stat-label { opacity: .9; font-size: .95rem; }
.stats-strip i { font-size: 1.8rem; color: var(--brand-3); }

/* Öne çıkan kart görselinde hafif zoom */
.card-hover { overflow: hidden; }
.card-hover img.img-cover { transition: transform .5s ease; }
.card-hover:hover img.img-cover { transform: scale(1.06); }

/* "Yukarı çık" butonu */
#toTop {
    position: fixed; right: 20px; bottom: 20px; z-index: 1030;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--brand); color: #fff; display: none; box-shadow: 0 .3rem .8rem rgba(0,0,0,.25);
}
#toTop.show { display: block; }

.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 .5rem 1.5rem rgba(76,140,47,.18); }

/* İçerik (WYSIWYG) mobil güvenliği: büyük görsel/tablo taşmasın */
.section img:not(.img-cover):not(.site-logo) { max-width: 100%; height: auto; }
.section iframe, .section video { max-width: 100%; }
.section table { display: block; max-width: 100%; overflow-x: auto; }

.section { padding: 4.5rem 0; }
.section-title { font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.section-title::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--brand-3); margin: .6rem auto 0; border-radius: 2px;
}
.section-sub { color: var(--muted); margin-bottom: 2.5rem; }

.img-cover { width: 100%; height: 220px; object-fit: cover; background: #e9ecef; }
.placeholder-img {
    width: 100%; height: 220px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    display: flex; align-items: center; justify-content: center; color: #fff;
}

.topbar-accent { height: 4px; background: linear-gradient(90deg, var(--brand-3), var(--brand)); }

/* Anti-spam korumalı e-posta (maskeli ipucu, tıkla-göster) */
.protected-email { cursor: pointer; text-decoration: none; white-space: nowrap; color: inherit; }
.protected-email .pe-text { border-bottom: 1px dotted currentColor; }
.protected-email:hover .pe-text { color: var(--brand-3); }
.protected-email.revealed { cursor: text; }
.protected-email.revealed .pe-text { border-bottom: none; }

/* KVKK / Çerez bildirimi bandı */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: rgba(43, 43, 43, .97); color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
}
.cookie-consent a { color: var(--brand-3); }
.cookie-consent a:hover { color: #fff; }

footer.site-footer { background: var(--ink); color: #d4d4d4; }
footer.site-footer a { color: #fff; }
footer.site-footer a:hover { color: var(--brand-3); }
footer.site-footer h5 { color: #fff; border-left: 3px solid var(--brand-3); padding-left: .6rem; }

/* ============ ADMIN PANEL (kurumsal, sık) ============ */
.admin-body { background: #f6f7f9; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    height: 56px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.admin-topbar .brand { font-weight: 800; color: #334155; letter-spacing: .5px; }
.admin-topbar .brand i { color: var(--brand); }

/* Soft, kurumsal beyaz sidebar — yeşil yalnızca aktif vurgu */
.admin-sidebar {
    width: 232px;
    min-height: calc(100vh - 56px);
    background: #ffffff;
    border-right: 1px solid #e9edf1;
    position: sticky; top: 56px;
}
.admin-sidebar .nav-section {
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: #9aa4b2; padding: 1rem 1.1rem .35rem;
}
.admin-sidebar .nav-link {
    color: #4b5563; padding: .55rem 1.1rem; font-size: .9rem;
    display: flex; align-items: center; gap: .6rem; border-left: 3px solid transparent;
}
.admin-sidebar .nav-link i { color: #9aa4b2; }
.admin-sidebar .nav-link:hover { color: #111827; background: #f3f5f7; }
.admin-sidebar .nav-link.active {
    color: var(--brand); background: var(--brand-light);
    border-left-color: var(--brand); font-weight: 600;
}
.admin-sidebar .nav-link.active i { color: var(--brand); }
.admin-sidebar { transition: width .2s ease, margin-left .2s ease; }
.admin-topbar #sidebarToggle { border: 1px solid var(--line); }

/* Masaüstü: ikon-only daraltma */
body.sb-collapsed .admin-sidebar { width: 64px; }
body.sb-collapsed .admin-sidebar .nav-link { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; font-size: 0; }
body.sb-collapsed .admin-sidebar .nav-link i { font-size: 1.15rem; }
body.sb-collapsed .admin-sidebar .nav-section { font-size: 0; padding: .4rem 0; margin-top: .25rem; border-top: 1px solid #eef1f4; }
.admin-content { padding: 1.5rem; }
.admin-page-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); }

.admin-content .card { border: 1px solid var(--line); border-radius: .5rem; }
.admin-content .card-header { background: #fff; font-weight: 600; border-bottom: 1px solid var(--line); }
.admin-content .table { font-size: .9rem; }
.admin-content .table > thead th {
    background: #fafbfc; color: var(--muted); font-weight: 600;
    text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
}
.admin-content .table > tbody td { vertical-align: middle; }
.admin-content .form-label { font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: .25rem; }

/* Görsel kütüphanesi seçim vurgusu */
.media-lib-item.selected { outline: 3px solid var(--brand); outline-offset: -1px; box-shadow: 0 0 0 2px var(--brand-3); }
.media-lib-item:hover { filter: brightness(1.05); }

/* Ürün galeri kapak vurgusu */
.gallery-item { cursor: default; }
.gallery-item.is-cover { border-color: var(--brand) !important; box-shadow: 0 0 0 2px var(--brand-3); }
.gallery-item .cover-btn, .gallery-item .gallery-remove { line-height: 1; }

.stat-card { border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.stat-card .stat-icon {
    width: 46px; height: 46px; border-radius: .6rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

@media (max-width: 768px) {
    /* Mobilde sidebar çekmece (off-canvas) olarak açılır */
    .admin-sidebar {
        position: fixed; top: 56px; left: 0; z-index: 1030;
        width: 232px; height: calc(100vh - 56px);
        margin-left: -264px; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.18);
    }
    body.sb-open .admin-sidebar { margin-left: 0; }
    /* Mobilde daralma modu geçersiz */
    body.sb-collapsed .admin-sidebar { width: 232px; }
    body.sb-collapsed .admin-sidebar .nav-link { justify-content: flex-start; gap: .6rem; padding: .55rem 1.1rem; font-size: .9rem; }
    body.sb-collapsed .admin-sidebar .nav-section { font-size: .68rem; padding: 1rem 1.1rem .35rem; border-top: 0; }
}

/* ===== Sertifika galerisi (ana sayfa) ===== */
.cert-thumb{height:120px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:.6rem;padding:.6rem;overflow:hidden;transition:box-shadow .2s,transform .2s}
.cert-thumb img{max-height:100%;max-width:100%;object-fit:contain}
.cert-item{cursor:pointer}
.cert-item:hover .cert-thumb{box-shadow:0 .5rem 1.2rem rgba(0,0,0,.14);transform:translateY(-3px)}
.cert-item small{font-size:.8rem}
.cert-desc{font-size:.72rem;line-height:1.25;margin-top:.15rem}

/* Sürüm damgası (sidebar sol alt) */
.admin-sidebar { display: flex; flex-direction: column; }
.admin-version { border-top: 1px solid #eef1f4; letter-spacing: .02em; }
.admin-version i { color: #9aa4b2; }
body.sb-collapsed .admin-version { display: none; }
@media (max-width: 768px) { .admin-version { margin-top: 1rem; } }
