/**
 * KobiCMS — Modern ön yüz teması (özellikleri bozmadan görsel katman)
 * style.css üzerine yüklenir; panelden gelen --site-primary korunur.
 */
:root {
    --kobi-surface: #ffffff;
    --kobi-surface-alt: #f1f5f9;
    --kobi-surface-muted: #f8fafc;
    --kobi-ink: #0f172a;
    --kobi-ink-soft: #475569;
    --kobi-ink-muted: #64748b;
    --kobi-border: #e2e8f0;
    --kobi-border-soft: #f1f5f9;
    --kobi-radius: 1rem;
    --kobi-radius-lg: 1.35rem;
    --kobi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.04);
    --kobi-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --kobi-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --kobi-gradient-hero: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bs-primary) 92%, #000) 0%,
        color-mix(in srgb, var(--bs-primary) 68%, #0f172a) 48%,
        #0f172a 100%
    );
    --kobi-section-gap: clamp(3rem, 6vw, 5rem);
}

body.theme-kobi {
    background: var(--kobi-surface-muted);
    color: var(--kobi-ink);
    -webkit-font-smoothing: antialiased;
}

body.theme-kobi h1,
body.theme-kobi h2,
body.theme-kobi h3,
body.theme-kobi h4,
body.theme-kobi h5,
body.theme-kobi h6 {
    color: var(--kobi-ink);
}

/* —— Butonlar —— */
body.theme-kobi .btn {
    border-radius: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.theme-kobi .btn-primary {
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.28);
}

body.theme-kobi .btn-primary:hover,
body.theme-kobi .btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--bs-primary-rgb), 0.32);
}

body.theme-kobi .btn-outline-primary:hover,
body.theme-kobi .btn-outline-primary:focus-visible {
    transform: translateY(-1px);
}

body.theme-kobi a.text-primary {
    transition: opacity 0.15s ease;
}

/* —— Bölüm başlıkları —— */
.kobi-section-head {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
}

.kobi-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.kobi-section-head__eyebrow::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 22%, transparent);
}

.kobi-section-head__title {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
}

.kobi-section-head__lead {
    margin: 0.85rem auto 0;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--kobi-ink-muted);
}

/* Eski section-title ile uyum */
body.theme-kobi .section-title h1 {
    font-size: clamp(1.35rem, 2.8vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* —— Ana sayfa bölüm ritmi —— */
body.theme-kobi .kobi-home-section {
    padding-top: var(--kobi-section-gap) !important;
    padding-bottom: var(--kobi-section-gap) !important;
    position: relative;
}

body.theme-kobi .kobi-home-section--alt {
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--bs-primary) 7%, transparent), transparent 70%),
        var(--kobi-surface-alt);
}

body.theme-kobi .kobi-home-section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.04) 1px, transparent 0);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.45;
}

body.theme-kobi .kobi-home-section > .container {
    position: relative;
    z-index: 1;
}

/* —— Kartlar (team-item evrensel) —— */
body.theme-kobi .team-item {
    border: 1px solid var(--kobi-border) !important;
    border-radius: var(--kobi-radius-lg) !important;
    background: var(--kobi-surface) !important;
    box-shadow: var(--kobi-shadow-sm) !important;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.theme-kobi .team-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--kobi-shadow-md) !important;
    border-color: color-mix(in srgb, var(--bs-primary) 22%, var(--kobi-border)) !important;
}

body.theme-kobi .team-item .team-img img,
body.theme-kobi .team-item .ratio img {
    transition: transform 0.45s ease;
}

body.theme-kobi .team-item:hover .team-img img,
body.theme-kobi .team-item:hover .ratio img {
    transform: scale(1.04);
}

body.theme-kobi .team-item .p-4 h2,
body.theme-kobi .team-item .p-4 .h5 {
    transition: color 0.2s ease;
}

body.theme-kobi .team-item:hover .p-4 h2.text-primary,
body.theme-kobi .team-item:hover .p-4 .h5.text-primary {
    color: color-mix(in srgb, var(--bs-primary) 88%, #000) !important;
}

/* Hizmet kartı hover overlay — daha yumuşak */
body.theme-kobi .team-item:hover .team-social {
    background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.72) 100%);
}

/* —— Slayt / carousel —— */
body.theme-kobi #header-carousel .carousel-item {
    position: relative;
}

body.theme-kobi #header-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.35) 42%, rgba(15, 23, 42, 0.55) 100%),
        radial-gradient(circle at 85% 15%, rgba(var(--bs-primary-rgb), 0.35), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

body.theme-kobi #header-carousel .carousel-caption {
    background: transparent !important;
    z-index: 2;
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

body.theme-kobi #header-carousel .carousel-caption h5.text-uppercase {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

body.theme-kobi #header-carousel .carousel-caption h1.display-1 {
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-size: clamp(2rem, 5.5vw, 3.75rem);
}

body.theme-kobi #header-carousel .carousel-caption .btn-primary {
    border-radius: 999px;
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
}

body.theme-kobi #header-carousel .carousel-control-prev,
body.theme-kobi #header-carousel .carousel-control-next {
    width: 3.25rem;
    height: 3.25rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.theme-kobi #header-carousel .carousel-control-prev {
    left: 1rem;
}

body.theme-kobi #header-carousel .carousel-control-next {
    right: 1rem;
}

body.theme-kobi #header-carousel .carousel-control-prev:hover,
body.theme-kobi #header-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-50%) scale(1.05);
}

body.theme-kobi #header-carousel .carousel-control-prev-icon,
body.theme-kobi #header-carousel .carousel-control-next-icon {
    width: 1.35rem;
    height: 1.35rem;
}

/* —— İç sayfa hero —— */
body.theme-kobi .kobi-page-hero.bg-header-page-hero {
    background: var(--kobi-gradient-hero) !important;
    border-bottom: none;
    margin-bottom: 0;
    overflow: hidden;
    isolation: isolate;
}

body.theme-kobi .kobi-page-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 80% 20%, rgba(var(--bs-primary-rgb), 0.22) 0%, transparent 38%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

body.theme-kobi .kobi-page-hero .bg-header-page-inner {
    position: relative;
    z-index: 1;
}

body.theme-kobi .kobi-page-hero .bg-header-page-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

body.theme-kobi .kobi-page-hero .bg-header-breadcrumb-band {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    padding: 0.55rem 1.25rem;
    margin-top: 1rem;
}

body.theme-kobi .bg-header-sep {
    margin: 0 0.55rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 400;
}

body.theme-kobi .bg-header-crumb--current {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
}

/* İç sayfa içerik alanı — ana sayfa bölümleri hariç */
body.theme-kobi .container-fluid.py-5.wow.fadeInUp:not(.kobi-home-section) > .container {
    background: var(--kobi-surface);
    border: 1px solid var(--kobi-border);
    border-radius: var(--kobi-radius-lg);
    box-shadow: var(--kobi-shadow-md);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: -1.25rem;
    position: relative;
    z-index: 2;
}

body.theme-kobi .kobi-home-section > .container {
    margin-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* —— İç sayfa içerik alanı (eski sınıf uyumu) —— */
body.theme-kobi .kobi-page-content {
    margin-top: -1.5rem;
    padding-bottom: var(--kobi-section-gap);
    position: relative;
    z-index: 2;
}

body.theme-kobi .kobi-page-content > .container,
body.theme-kobi .kobi-page-content > .container-fluid > .container {
    background: var(--kobi-surface);
    border: 1px solid var(--kobi-border);
    border-radius: var(--kobi-radius-lg);
    box-shadow: var(--kobi-shadow-md);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* —— Navbar yapışkan cam efekti —— */
@media (min-width: 992px) {
    body.theme-kobi .theme-premium .sticky-top.navbar-dark {
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--kobi-border) !important;
        box-shadow: var(--kobi-shadow-sm);
    }
}

body.theme-kobi .theme-premium .header-theme-nav-cta {
    border-radius: 999px !important;
    font-weight: 700;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    box-shadow: var(--kobi-shadow-sm) !important;
}

/* —— Arşiv / kategori —— */
body.theme-kobi .archive-category-card {
    border-radius: var(--kobi-radius) !important;
    border: 1px solid var(--kobi-border) !important;
    overflow: hidden;
}

body.theme-kobi .archive-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kobi-shadow-md) !important;
}

/* —— SSS akordeon —— */
body.theme-kobi .accordion-item {
    border: 1px solid var(--kobi-border) !important;
    border-radius: var(--kobi-radius) !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    box-shadow: var(--kobi-shadow-sm);
}

/* Ana sayfa ve arşiv SSS: tek blok, çift çerçeve yok */
body.theme-kobi .kobi-faq-accordion {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--kobi-border);
    border-radius: var(--kobi-radius-lg);
    overflow: hidden;
    background: var(--kobi-surface);
    box-shadow: var(--kobi-shadow-sm);
}

body.theme-kobi .kobi-faq-accordion .accordion-item {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--kobi-border) !important;
}

body.theme-kobi .kobi-faq-accordion .accordion-item:last-child {
    border-bottom: none !important;
}

body.theme-kobi .kobi-faq-accordion .accordion-button {
    background: var(--kobi-surface);
}

body.theme-kobi .kobi-faq-accordion .accordion-body {
    background: color-mix(in srgb, var(--kobi-surface-alt) 55%, var(--kobi-surface));
}

body.theme-kobi .accordion-button {
    font-weight: 600;
    color: var(--kobi-ink);
}

body.theme-kobi .accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--bs-primary) 8%, #fff);
    color: var(--bs-primary);
    box-shadow: none;
}

/* —— Blog / içerik metni —— */
body.theme-kobi .content-body,
body.theme-kobi .blog-post-content {
    line-height: 1.75;
    color: var(--kobi-ink-soft);
}

body.theme-kobi .content-body h2,
body.theme-kobi .content-body h3,
body.theme-kobi .blog-post-content h2,
body.theme-kobi .blog-post-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
}

/* —— Sayfalama —— */
body.theme-kobi .pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.15rem;
    border-color: var(--kobi-border);
    color: var(--kobi-ink-soft);
}

body.theme-kobi .pagination .page-item.active .page-link {
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.25);
}

/* —— Yorumlar (owl) —— */
body.theme-kobi .testimonial-carousel .owl-dot {
    border-radius: 999px;
}

body.theme-kobi .testimonial-carousel .owl-item.center .testimonial-item {
    border-radius: var(--kobi-radius-lg);
    box-shadow: var(--kobi-shadow-md) !important;
    border: 1px solid var(--kobi-border);
}

/* Ana sayfa blog kartları — meta satırı ortala */
body.theme-kobi .home-blog .p-4 > .d-flex.flex-wrap,
body.theme-kobi .archive-products-main .team-item .p-4 > .d-flex.flex-wrap {
    justify-content: center;
}

body.theme-kobi .home-testimonials .testimonial-carousel {
    overflow: hidden;
}

/* —— İletişim / form —— */
body.theme-kobi .form-control,
body.theme-kobi .form-select {
    border-color: var(--kobi-border);
    border-radius: 0.65rem;
    padding: 0.65rem 0.9rem;
}

body.theme-kobi .form-control:focus,
body.theme-kobi .form-select:focus {
    border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--kobi-border));
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

body.theme-kobi .home-section .text-center .btn-primary {
    border-radius: 999px;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* —— Footer —— */
body.theme-kobi .theme-premium-footer .footer-column-title,
body.theme-kobi .theme-premium-footer h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.theme-kobi .theme-premium-footer a {
    transition: opacity 0.15s ease, color 0.15s ease;
}

body.theme-kobi .theme-premium-footer a:hover {
    opacity: 0.88;
}

/* —— Yüzen WhatsApp / ara —— */
body.theme-kobi .kobicms-float-actions {
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
}

body.theme-kobi .kobicms-float-btn {
    border-radius: 999px !important;
}

/* —— Boş durum kartları —— */
body.theme-kobi .bg-light.rounded.border {
    border-color: var(--kobi-border) !important;
    border-radius: var(--kobi-radius-lg) !important;
    background: var(--kobi-surface) !important;
}
