/* ============================================================
   DEMİR KARDEŞLER — BİLEŞEN & TASARIM SİSTEMİ
   Mevcut style.css'i EZMEZ, tamamlar. Sonra yüklenir.
   ============================================================ */

/* ---------- 1. TASARIM TOKEN'LARI ---------- */
:root {
    /* Marka renkleri (mevcut mavi korunuyor) */
    --dk-primary:      #2563eb;
    --dk-primary-700:  #1d4ed8;
    --dk-primary-50:   #eff6ff;
    --dk-wa:           #25d366;
    --dk-wa-700:       #128c7e;

    /* Nötr */
    --dk-ink:          #0f172a;
    --dk-body:         #334155;
    --dk-muted:        #64748b;
    --dk-line:         #e2e8f0;
    --dk-surface:      #ffffff;
    --dk-bg:           #f8fafc;

    /* Yuvarlaklık */
    --dk-r-sm: 8px;
    --dk-r-md: 14px;
    --dk-r-lg: 20px;
    --dk-r-pill: 999px;

    /* Boşluk */
    --dk-s1: 8px;
    --dk-s2: 16px;
    --dk-s3: 24px;
    --dk-s4: 32px;
    --dk-s6: 48px;
    --dk-s8: 72px;

    /* Gölge */
    --dk-sh-sm: 0 1px 3px rgba(15,23,42,.06);
    --dk-sh-md: 0 6px 18px rgba(15,23,42,.08);
    --dk-sh-lg: 0 16px 40px rgba(15,23,42,.14);
}

/* ---------- 2. MOBİL TAŞMA DÜZELTMESİ (kritik) ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }
img { height: auto; }
.container, .container-fluid { padding-left: 16px; padding-right: 16px; }

/* Eski temadan kalan kırmızı link hover kalıntısını düzelt */
a:hover { color: var(--dk-primary-700); }

/* ---------- 3. HEADER / MENÜ ---------- */
.header .navbar-brand img.maya-logo { max-height: 52px; width: auto; }

.header .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;
    color: var(--dk-ink);
    padding: 10px 12px;
    border-radius: var(--dk-r-sm);
    transition: color .2s ease, background-color .2s ease;
}
.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
    color: var(--dk-primary);
    background: var(--dk-primary-50);
}
.header .navbar-nav .nav-link.phone-link {
    color: var(--dk-primary);
    font-weight: 700;
    white-space: nowrap;
}

/* Ürünler açılır menüsü */
.header .dropdown-menu {
    border: 1px solid var(--dk-line);
    border-radius: var(--dk-r-md);
    box-shadow: var(--dk-sh-md);
    padding: 8px;
    min-width: 240px;
}
.header .dropdown-item {
    border-radius: var(--dk-r-sm);
    padding: 10px 12px;
    font-weight: 500;
    color: var(--dk-body);
}
.header .dropdown-item:hover,
.header .dropdown-item.active {
    background: var(--dk-primary-50);
    color: var(--dk-primary);
}

/* Header'daki WhatsApp teklif butonu */
.btn-wa-header {
    background: var(--dk-wa);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--dk-r-pill);
    padding: 10px 18px;
    white-space: nowrap;
    border: none;
    transition: background-color .2s ease, transform .2s ease;
}
.btn-wa-header:hover { background: var(--dk-wa-700); color: #fff; transform: translateY(-1px); }
.btn-wa-header i { margin-right: 6px; }

/* Mobil menü: hamburger her zaman görünür ve erişilebilir */
@media (max-width: 991.98px) {
    .header .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--dk-line);
        border-radius: var(--dk-r-sm);
        padding: 8px 10px;
        margin-left: auto;
    }
    .header .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--dk-primary-50); }
    .header .navbar-collapse {
        margin-top: 12px;
        border-top: 1px solid var(--dk-line);
        padding-top: 12px;
    }
    .header .navbar-nav .nav-link { padding: 12px 8px; font-size: 15px; }
    .btn-wa-header { display: block; text-align: center; margin-top: 8px; }
    .header .navbar-brand img.maya-logo { max-height: 44px; }
}

/* ---------- 4. VİTRİN: ÜRÜN KARTI ---------- */
.dk-products { --dk-gap: 24px; }

.dk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--dk-surface);
    border: 1px solid var(--dk-line);
    border-radius: var(--dk-r-md);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dk-sh-lg);
    border-color: transparent;
}

.dk-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dk-bg);
}
.dk-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.dk-card:hover .dk-card__media img { transform: scale(1.06); }

.dk-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(37,99,235,.95);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 6px 12px;
    border-radius: var(--dk-r-pill);
}

.dk-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px;
}
.dk-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dk-ink);
    margin: 0 0 8px;
    line-height: 1.35;
}
.dk-card__text {
    font-size: 14px;
    color: var(--dk-muted);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dk-card__foot { margin-top: auto; display: flex; gap: 8px; }

.dk-btn-quote {
    flex: 1 1 auto;
    background: var(--dk-wa);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 11px 14px;
    border-radius: var(--dk-r-sm);
    border: none;
    transition: background-color .2s ease;
}
.dk-btn-quote:hover { background: var(--dk-wa-700); color: #fff; }
.dk-btn-quote i { margin-right: 6px; }

.dk-btn-detail {
    flex: 0 0 auto;
    background: var(--dk-primary-50);
    color: var(--dk-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: var(--dk-r-sm);
    transition: background-color .2s ease;
}
.dk-btn-detail:hover { background: var(--dk-primary); color: #fff; }

/* ---------- 5. BÖLÜM BAŞLIKLARI ---------- */
.dk-section { padding: var(--dk-s8) 0; }
.dk-section--tint { background: var(--dk-bg); }

.dk-section__head { text-align: center; max-width: 720px; margin: 0 auto var(--dk-s6); }
.dk-section__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--dk-ink);
    margin: 0 0 12px;
}
.dk-section__sub { font-size: 16px; color: var(--dk-muted); margin: 0; line-height: 1.7; }

/* ---------- 6. ÜRÜN DETAY: SABİT ALT AKSİYON ---------- */
.dk-sticky-cta {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--dk-line);
    padding: 12px 0;
}

/* ---------- 7. MOBİL ALT BUTON ÇUBUĞU (mevcut yapıyı korur) ---------- */
@media (max-width: 767.98px) {
    body { padding-bottom: 68px; }
    .dk-section { padding: var(--dk-s6) 0; }
}

/* ---------- 8. MOBİL SABİT AKSİYON ÇUBUĞU ---------- */
/* (stiller index.php'nin inline CSS'inden buraya taşındı) */
.mobile-fixed-buttons {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 12px rgba(15,23,42,.12);
    z-index: 1030;
}
.mobile-fixed-buttons .btn {
    flex: 1 1 0;
    margin: 0 5px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--dk-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.mobile-fixed-buttons .btn i { margin-right: 6px; }
.mobile-fixed-buttons .btn-call     { background: var(--dk-primary); color: #fff; }
.mobile-fixed-buttons .btn-whatsapp { background: var(--dk-wa); color: #fff; }

@media (max-width: 767.98px) {
    .mobile-fixed-buttons { display: flex; }
}

/* ---------- 9. YATAY TAŞMA SAVUNMASI ---------- */
/* Menü satırı asla sarmasın; hamburger her zaman görünür alanda kalsın */
.header .navbar { flex-wrap: nowrap; }
.header .navbar-collapse { flex-basis: 100%; }
@media (max-width: 991.98px) {
    .header .navbar { flex-wrap: wrap; }
    .header .navbar-brand { max-width: calc(100% - 70px); margin-right: 0; }
    .header .navbar-brand img.maya-logo { max-width: 100%; }
}
/* Grid ve gömülü içerik taşmasın */
.row { --bs-gutter-x: 1.5rem; }
.dk-section .row { margin-left: 0; margin-right: 0; }
.dk-section .row > [class*="col-"] { padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
iframe { max-width: 100%; }

/* ---------- 10. KÜÇÜK EKRAN: KART SIKILAŞTIRMA (BOLUM-10) ---------- */
@media (max-width: 575.98px) {
    .dk-card__body   { padding: 14px; }
    .dk-card__title  { font-size: 15px; margin-bottom: 6px; }
    .dk-card__text   { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 12px; }
    .dk-card__badge  { font-size: 10px; padding: 5px 10px; top: 8px; left: 8px; }
    .dk-card__foot   { flex-direction: column; gap: 6px; }
    .dk-card__foot > a,
    .dk-card__foot > button {
        width: 100%;
        flex: 0 0 auto;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    .dk-section__head { margin-bottom: var(--dk-s4); }
}


/* ---------- 11. KART BAGLANTILARI (BOLUM-11) ---------- */
.dk-card__media { display: block; text-decoration: none; }
.dk-card__title a { color: inherit; text-decoration: none; }
.dk-card__title a:hover { color: var(--dk-primary); }
.dk-card__foot a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dk-products { margin-bottom: 0; }

.dk-section__foot { text-align: center; margin-top: var(--dk-s4); }
.dk-section__foot .dk-btn-detail--lg { display: inline-flex; }

/* Bot tuzagi alani - gercek kullanicilar gormez */
.dk-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
