/* ============================================================
   Tema 2 — Kurumsal. Elle yazılmış, tek parça, build aracı
   gerektirmeyen self-contained stylesheet. Sınıflar "t2-" önekiyle
   isimlendirilir (Tema 1 ile çakışmaz). `badge`/`badge-*` sınıfları
   İSTİSNADIR — App\Core\StatusLabels bu isimleri sabit döndürür,
   bu yüzden önek TAŞIMAZ ve isimleri DEĞİŞTİRİLEMEZ.
   ============================================================ */

:root {
    --t2-navy: #0f1e3c;
    --t2-navy-2: #16264a;
    --t2-navy-3: #1e335c;
    --t2-blue: #2563eb;
    --t2-blue-dark: #1d4ed8;
    --t2-blue-light: #eff6ff;
    --t2-blue-tint: #dbeafe;

    --t2-ink: #0f172a;
    --t2-slate: #475569;
    --t2-slate-light: #64748b;
    --t2-border: #e2e8f0;
    --t2-border-2: #cbd5e1;
    --t2-bg: #f8fafc;
    --t2-white: #ffffff;

    --t2-success: #16a34a;
    --t2-success-bg: #f0fdf4;
    --t2-warning: #d97706;
    --t2-warning-bg: #fffbeb;
    --t2-danger: #dc2626;
    --t2-danger-bg: #fef2f2;
    --t2-info: #0ea5e9;
    --t2-info-bg: #f0f9ff;
    --t2-orange: #ea580c;
    --t2-orange-bg: #fff7ed;
    --t2-muted: #64748b;
    --t2-muted-bg: #f1f5f9;

    --t2-font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
    --t2-font-body: 'Inter', system-ui, sans-serif;

    --t2-radius-sm: 6px;
    --t2-radius: 10px;
    --t2-radius-lg: 16px;
    --t2-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --t2-shadow-lg: 0 4px 6px rgba(15, 23, 42, .05), 0 10px 24px rgba(15, 23, 42, .08);
    --t2-header-h: 128px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--t2-font-body);
    color: var(--t2-ink);
    background: var(--t2-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--t2-font-heading); font-weight: 700; margin: 0 0 .5em; color: var(--t2-navy); line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: var(--t2-blue); text-decoration: none; }
a:hover { color: var(--t2-blue-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
[x-cloak] { display: none !important; }

/* ---------- Layout primitives ---------- */
.t2-container { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.t2-main { flex: 1 0 auto; padding-top: var(--t2-header-h); }
.t2-section { padding: 3rem 0; }
.t2-grid { display: grid; gap: 1.25rem; }
.t2-grid-2 { grid-template-columns: repeat(1, 1fr); }
.t2-grid-3 { grid-template-columns: repeat(1, 1fr); }
.t2-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
    .t2-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .t2-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .t2-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .t2-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.t2-flex { display: flex; align-items: center; }
.t2-flex-between { display: flex; align-items: center; justify-content: space-between; }
.t2-hidden-lg { display: block; }
.t2-only-lg { display: none; }
@media (min-width: 1024px) {
    .t2-hidden-lg { display: none; }
    .t2-only-lg { display: block; }
}

/* ---------- Buttons ---------- */
.t2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .875rem; padding: .7rem 1.3rem;
    border-radius: var(--t2-radius-sm); border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s;
    line-height: 1.2;
}
.t2-btn-primary { background: var(--t2-navy); color: var(--t2-white); }
.t2-btn-primary:hover { background: var(--t2-navy-2); color: var(--t2-white); }
.t2-btn-accent { background: var(--t2-blue); color: var(--t2-white); }
.t2-btn-accent:hover { background: var(--t2-blue-dark); color: var(--t2-white); }
.t2-btn-outline { background: var(--t2-white); border-color: var(--t2-border-2); color: var(--t2-navy); }
.t2-btn-outline:hover { border-color: var(--t2-blue); color: var(--t2-blue); }
.t2-btn-ghost { background: transparent; color: var(--t2-slate); }
.t2-btn-ghost:hover { color: var(--t2-navy); }
.t2-btn-block { display: flex; width: 100%; }
.t2-btn:disabled { opacity: .5; cursor: not-allowed; }
.t2-btn-sm { padding: .45rem .9rem; font-size: .8125rem; }

/* ---------- Cards ---------- */
.t2-card { background: var(--t2-white); border: 1px solid var(--t2-border); border-radius: var(--t2-radius); box-shadow: var(--t2-shadow); }
.t2-card-pad { padding: 1.5rem; }
.t2-card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--t2-border); font-family: var(--t2-font-heading); font-weight: 700; font-size: 1rem; color: var(--t2-navy); display: flex; align-items: center; gap: .6rem; }

/* ---------- Badges (StatusLabels sözleşmesi — önek YOK, isim sabit) ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--t2-success-bg); color: var(--t2-success); }
.badge-warning { background: var(--t2-warning-bg); color: var(--t2-warning); }
.badge-danger { background: var(--t2-danger-bg); color: var(--t2-danger); }
.badge-info { background: var(--t2-info-bg); color: var(--t2-info); }
.badge-orange { background: var(--t2-orange-bg); color: var(--t2-orange); }
.badge-muted { background: var(--t2-muted-bg); color: var(--t2-muted); }

/* ---------- Forms ---------- */
.t2-field { margin-bottom: 1.1rem; }
.t2-label { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: var(--t2-navy); margin-bottom: .4rem; }
.t2-input, .t2-select, .t2-textarea {
    width: 100%; border: 1px solid var(--t2-border-2); border-radius: var(--t2-radius-sm);
    padding: .65rem .85rem; font-size: .875rem; color: var(--t2-ink); background: var(--t2-white);
    transition: border-color .15s, box-shadow .15s;
}
.t2-input:focus, .t2-select:focus, .t2-textarea:focus { outline: none; border-color: var(--t2-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.t2-input-group { display: flex; }
.t2-input-prefix { display: flex; align-items: center; padding: 0 .85rem; border: 1px solid var(--t2-border-2); border-right: 0; border-radius: var(--t2-radius-sm) 0 0 var(--t2-radius-sm); background: var(--t2-bg); font-size: .8125rem; color: var(--t2-slate); }
.t2-input-group .t2-input { border-radius: 0 var(--t2-radius-sm) var(--t2-radius-sm) 0; }
.t2-checkbox-row { display: flex; align-items: flex-start; gap: .55rem; font-size: .8rem; color: var(--t2-slate); }
.t2-hint { font-size: .75rem; color: var(--t2-slate-light); margin-top: .35rem; }

/* ---------- Header / Nav ---------- */
.t2-topbar { display: none; background: var(--t2-navy); color: #cbd5e1; font-size: .8rem; }
@media (min-width: 768px) { .t2-topbar { display: block; } }
.t2-topbar .t2-container { padding-top: .5rem; padding-bottom: .5rem; }
.t2-topbar a { color: #cbd5e1; }
.t2-topbar a:hover { color: var(--t2-white); }
.t2-topbar-links { display: flex; gap: 1.25rem; }

.t2-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--t2-white); border-bottom: 1px solid var(--t2-border); }
.t2-nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.t2-brand { display: flex; align-items: center; gap: .6rem; }
.t2-brand img { height: 34px; width: auto; }
.t2-brand-name { font-family: var(--t2-font-heading); font-weight: 800; font-size: 1.05rem; color: var(--t2-navy); }
.t2-nav-links { display: none; align-items: center; gap: 1.6rem; }
.t2-nav-link { font-size: .875rem; font-weight: 600; color: var(--t2-slate); }
.t2-nav-link:hover { color: var(--t2-navy); }
@media (min-width: 1024px) {
    .t2-nav-links { display: flex; }
}
.t2-nav-actions { display: flex; align-items: center; gap: .9rem; }
.t2-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--t2-radius-sm); color: var(--t2-navy); background: var(--t2-bg); border: 1px solid var(--t2-border); }
.t2-icon-btn:hover { border-color: var(--t2-blue); color: var(--t2-blue); }
.t2-cart-badge { position: absolute; top: -6px; right: -6px; background: var(--t2-blue); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.t2-hamburger { display: inline-flex; }
@media (min-width: 1024px) { .t2-hamburger { display: none; } }

.t2-dropdown { position: relative; }
.t2-dropdown-panel { position: absolute; top: calc(100% + .75rem); left: 0; width: 22rem; background: var(--t2-white); border: 1px solid var(--t2-border); border-radius: var(--t2-radius); box-shadow: var(--t2-shadow-lg); padding: .6rem; max-height: 26rem; overflow-y: auto; }
.t2-dropdown-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem; border-radius: var(--t2-radius-sm); }
.t2-dropdown-item:hover { background: var(--t2-bg); }
.t2-platform-badge { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; font-size: .85rem; flex-shrink: 0; }

/* Mobil çekmece menü */
.t2-drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 50; }
.t2-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 22rem; background: var(--t2-white); z-index: 51; overflow-y: auto; box-shadow: var(--t2-shadow-lg); }
.t2-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--t2-border); }
.t2-drawer-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.t2-drawer-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .5rem; font-weight: 600; font-size: .9rem; color: var(--t2-ink); border-radius: var(--t2-radius-sm); }
.t2-drawer-link:hover { background: var(--t2-bg); color: var(--t2-navy); }

/* Alt sabit mobil nav */
.t2-mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--t2-white); border-top: 1px solid var(--t2-border); display: grid; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1024px) { .t2-mobile-nav { display: none; } }
.t2-mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem 0; font-size: .65rem; font-weight: 600; color: var(--t2-slate); position: relative; }
.t2-mobile-nav a i { font-size: 1.05rem; }
.t2-mobile-nav a.active { color: var(--t2-blue); }

/* ---------- Footer ---------- */
.t2-footer { background: var(--t2-navy); color: #cbd5e1; margin-top: 3rem; }
.t2-footer .t2-container { padding-top: 3rem; padding-bottom: 1.5rem; }
.t2-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.t2-footer a { color: #cbd5e1; font-size: .85rem; }
.t2-footer a:hover { color: #fff; }
.t2-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .t2-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.t2-footer-links { display: flex; flex-direction: column; gap: .6rem; }
.t2-social-row { display: flex; gap: .6rem; margin: 1rem 0; }
.t2-social-icon { width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; color: #fff; }
.t2-social-icon:hover { background: var(--t2-blue); color: #fff; }
.t2-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; font-size: .75rem; color: #94a3b8; }
.t2-payment-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.t2-payment-badges span { border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: .2rem .65rem; }

/* ---------- Hero / trust ---------- */
.t2-hero { background: linear-gradient(180deg, var(--t2-navy) 0%, var(--t2-navy-3) 100%); color: #fff; padding: 3.5rem 0; }
.t2-hero h1 { color: #fff; font-size: 2rem; }
.t2-hero p { color: #cbd5e1; max-width: 34rem; }
.t2-trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; font-size: .8rem; color: #cbd5e1; }
.t2-trust-row i { color: var(--t2-blue); margin-right: .35rem; }
.t2-breadcrumb { font-size: .8rem; color: var(--t2-slate-light); margin-bottom: 1rem; }
.t2-breadcrumb a { color: var(--t2-slate-light); }
.t2-breadcrumb a:hover { color: var(--t2-blue); }

/* ---------- Platform / product cards ---------- */
.t2-platform-card { background: var(--t2-white); border: 1px solid var(--t2-border); border-radius: var(--t2-radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; transition: border-color .15s, box-shadow .15s; }
.t2-platform-card:hover { border-color: var(--t2-blue); box-shadow: var(--t2-shadow); }
.t2-platform-icon { width: 48px; height: 48px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.t2-product-card { background: var(--t2-white); border: 1px solid var(--t2-border); border-radius: var(--t2-radius); padding: 1.25rem; transition: border-color .15s, box-shadow .15s; height: 100%; }
.t2-product-card:hover { border-color: var(--t2-blue); box-shadow: var(--t2-shadow); }
.t2-product-card h3 { font-size: .95rem; margin-bottom: .3rem; }
.t2-tab { padding: .55rem 1.1rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; border: 1px solid var(--t2-border-2); color: var(--t2-slate); background: var(--t2-white); }
.t2-tab.active { background: var(--t2-navy); color: #fff; border-color: var(--t2-navy); }
.t2-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ---------- Paket seçim kartları (ürün sayfası) ---------- */
.t2-package { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--t2-border-2); border-radius: var(--t2-radius); padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.t2-package.selected { border-color: var(--t2-blue); background: var(--t2-blue-light); }
.t2-package-radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--t2-border-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.t2-package.selected .t2-package-radio { border-color: var(--t2-blue); background: var(--t2-blue); color: #fff; }
.t2-price { font-family: var(--t2-font-heading); font-weight: 800; color: var(--t2-navy); }
.t2-price-old { text-decoration: line-through; color: var(--t2-slate-light); font-size: .8rem; }
.t2-sticky-buybar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--t2-border); padding: .85rem 1.25rem; box-shadow: 0 -8px 20px rgba(15, 23, 42, .08); }
@media (min-width: 1024px) { .t2-sticky-buybar { position: static; box-shadow: none; border: none; padding: 0; } }

/* ---------- Sepet ---------- */
.t2-cart-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--t2-border); }
.t2-cart-row:last-child { border-bottom: none; }
.t2-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--t2-border-2); border-radius: var(--t2-radius-sm); overflow: hidden; }
.t2-qty-stepper button { width: 30px; height: 30px; background: var(--t2-bg); border: none; cursor: pointer; font-weight: 700; color: var(--t2-navy); }
.t2-qty-stepper span { width: 32px; text-align: center; font-weight: 600; font-size: .85rem; }
.t2-summary-row { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; font-size: .875rem; }
.t2-summary-total { border-top: 1px solid var(--t2-border); margin-top: .5rem; padding-top: .75rem; font-weight: 700; font-size: 1.05rem; color: var(--t2-navy); }

/* ---------- Stepper (sipariş sorgula ilerleme) ---------- */
.t2-stepper { display: flex; align-items: flex-start; }
.t2-step { flex: 1; text-align: center; position: relative; }
.t2-step-dot { width: 30px; height: 30px; border-radius: 999px; background: var(--t2-border); color: var(--t2-slate); display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; font-weight: 700; font-size: .8rem; }
.t2-step.done .t2-step-dot { background: var(--t2-success); color: #fff; }
.t2-step-label { font-size: .7rem; font-weight: 600; color: var(--t2-slate); }
.t2-step.done .t2-step-label { color: var(--t2-navy); }
.t2-step-line { position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--t2-border); z-index: -1; }
.t2-step.done .t2-step-line { background: var(--t2-success); }
.t2-step:first-child .t2-step-line { display: none; }

/* ---------- Alerts / notice ---------- */
.t2-alert { border-radius: var(--t2-radius); padding: 1rem 1.15rem; font-size: .85rem; border: 1px solid transparent; }
.t2-alert-info { background: var(--t2-info-bg); border-color: #bae6fd; color: #0369a1; }
.t2-alert-success { background: var(--t2-success-bg); border-color: #bbf7d0; color: #15803d; }
.t2-alert-warning { background: var(--t2-warning-bg); border-color: #fde68a; color: #92400e; }
.t2-alert-danger { background: var(--t2-danger-bg); border-color: #fecaca; color: #b91c1c; }

/* ---------- Prose (statik sayfa zengin metin içeriği) ---------- */
.t2-prose { color: var(--t2-ink); font-size: .95rem; }
.t2-prose h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.t2-prose h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.t2-prose p { margin-bottom: 1em; color: var(--t2-slate); }
.t2-prose ul, .t2-prose ol { margin: 0 0 1em 1.4em; list-style: disc; }
.t2-prose a { color: var(--t2-blue); text-decoration: underline; }
.t2-prose blockquote { border-left: 3px solid var(--t2-blue); padding-left: 1rem; color: var(--t2-slate); font-style: italic; }

/* ---------- Sonuç durumu kartları (ödeme başarı/hata) ---------- */
.t2-status-card { max-width: 32rem; margin: 3rem auto; text-align: center; }
.t2-status-icon { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.6rem; }
.t2-status-icon.success { background: var(--t2-success-bg); color: var(--t2-success); }
.t2-status-icon.danger { background: var(--t2-danger-bg); color: var(--t2-danger); }

/* ---------- Fake bildirim toast ---------- */
.t2-toast { position: fixed; left: 1rem; bottom: 5.5rem; z-index: 45; background: #fff; border: 1px solid var(--t2-border); border-radius: var(--t2-radius); box-shadow: var(--t2-shadow-lg); padding: .85rem 1.1rem; max-width: 20rem; display: flex; gap: .7rem; align-items: flex-start; }
@media (min-width: 1024px) { .t2-toast { bottom: 1.5rem; } }
.t2-toast i.icon { color: var(--t2-blue); margin-top: .1rem; }
.t2-toast .close { color: var(--t2-slate-light); cursor: pointer; }

/* ---------- Yıldız değerlendirme ---------- */
.t2-star-picker { display: flex; gap: .25rem; }
.t2-star-picker button { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--t2-border-2); padding: 0; }
.t2-star-picker button.active { color: #f59e0b; }
