/* ==========================================================================
   Set Pazarı — Ana stil dosyası
   Tasarım dili: koyu üst banner, kırmızı vurgu (#C8102E), beyaz/krem
   içerik, yumuşak gölgeler, geniş tipografi.
   ========================================================================== */

:root {
    --color-bg:           #f8f4f0;
    --color-surface:      #ffffff;
    --color-surface-2:    #fbfaf8;
    --color-border:       #e6e1da;
    --color-text:         #1a1a1a;
    --color-text-muted:   #6b6b6b;
    --color-text-dim:     #9aa0a6;
    --color-primary:      #c8102e;
    --color-primary-dark: #a50d24;
    --color-primary-soft: #fff0f2;
    --color-dark:         #1a1a1a;
    --color-dark-2:       #2a2a2a;
    --color-yellow:       #f6c91f;
    --color-success:      #16a34a;
    --color-warning:      #d97706;
    --color-info:         #2563eb;
    --shadow-sm:  0 1px 2px rgba(20,20,20,.06);
    --shadow:     0 4px 14px rgba(20,20,20,.08);
    --shadow-md:  0 10px 30px rgba(20,20,20,.10);
    --shadow-lg:  0 20px 50px rgba(20,20,20,.14);
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --container: 1200px;
    --header-h: 78px;
    --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-4);
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 var(--space-4); color: var(--color-text); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-5);
}
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0 var(--space-5); }

.muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.text-sm { font-size: .9rem; }
.text-xs { font-size: .8rem; }
.text-lg { font-size: 1.15rem; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.full-width { width: 100%; }
.hide { display: none !important; }

main { flex: 1 0 auto; }

/* ==========================================================================
   Header / Üst menü
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #1d1d1d 0%, #2a2a2a 60%, #1a1a1a 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header::after {
    content: '';
    position: absolute;
    inset: 0 0 auto auto;
    width: 36%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, var(--color-primary) 30%, var(--color-primary-dark) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
    opacity: .92;
}
.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: var(--space-5);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: .2px;
}
.brand-logo {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-yellow);
    box-shadow: 0 0 0 2px var(--color-yellow) inset;
    flex-shrink: 0;
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: .65rem; opacity: .7; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}
.nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .95rem;
    padding: 6px 2px;
    position: relative;
    transition: color .15s ease;
}
.nav-link:hover { color: #fff; }
.nav-link--active { color: #fff; }
.nav-link--active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-yellow);
    border-radius: 1px;
}

.nav-cta {
    display: inline-flex;
    gap: var(--space-3);
}
.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    transition: all .15s ease;
}
.cta-pill:hover { background: rgba(255,255,255,.15); }
.cta-pill .badge-dot {
    background: var(--color-yellow);
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    padding: 0 6px;
    text-align: center;
    font-size: .75rem;
    line-height: 18px;
}

.menu-toggle {
    display: none;
    background: none; border: none;
    color: #fff; padding: 6px;
}
.menu-toggle svg { width: 26px; height: 26px; }

.account-dropdown { position: relative; }
.account-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex; align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.95);
    font-weight: 600;
    font-size: .95rem;
}
.account-dropdown summary::-webkit-details-marker { display: none; }
.account-dropdown[open] summary { color: #fff; }
.account-menu {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    min-width: 220px;
    background: #fff;
    color: var(--color-text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 100;
}
.account-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--color-text);
    font-size: .95rem;
}
.account-menu a:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.account-menu hr { border: none; border-top: 1px solid var(--color-border); margin: 6px 0; }

@media (max-width: 960px) {
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #1a1a1a;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 16px;
    }
    .main-nav.open .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        width: 100%;
    }
    .nav-cta { width: 100%; flex-direction: column; align-items: stretch; }
    .nav-cta .cta-pill { justify-content: center; }
    .site-header::after { width: 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    background: var(--color-primary);
    color: #fff;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface); border-color: var(--color-text); }
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg); }
.btn-dark {
    background: var(--color-dark);
    color: #fff;
}
.btn-dark:hover { background: var(--color-dark-2); }
.btn-success { background: var(--color-success); }
.btn-success:hover { background: #138c40; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: var(--space-4); }
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .9rem;
    color: var(--color-text);
}
.field .help { color: var(--color-text-muted); font-size: .8rem; margin-top: 4px; }
.input, .textarea, .select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.textarea { resize: vertical; min-height: 110px; }
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-group:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(200, 16, 46, .10); }
.input-group .icon {
    padding: 0 12px;
    color: var(--color-text-muted);
    display: inline-flex;
}
.input-group .input,
.input-group .select {
    border: none;
    box-shadow: none !important;
    padding-left: 6px;
}
.field.has-error .input { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: .85rem; margin-top: 6px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-5);
    flex-wrap: wrap;
}

/* ==========================================================================
   Hero (anasayfa kahraman alanı)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-color: #1a1a1a;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.20) 80%);
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.02);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    max-width: 720px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: var(--space-5);
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.hero h1 .accent { color: var(--color-yellow); }
.hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 580px; }
.hero-cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ==========================================================================
   Sections / Cards
   ========================================================================== */

section { padding: var(--space-8) 0; }
section.tight { padding: var(--space-7) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-6); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-head--left { margin: 0 0 var(--space-6); text-align: left; }

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
    border: 1px solid var(--color-border);
}
.card-soft {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 225, 218, .8);
}
.card-flat {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
}

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 800px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* About / stats */
.about-card {
    background: #fff8f5;
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--space-7);
    align-items: center;
    box-shadow: var(--shadow);
}
.about-card .image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: #f0eae3; }
.about-card .image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about-card { grid-template-columns: 1fr; padding: var(--space-5); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.stat {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-5);
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.stat .icon-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    margin: 0 auto var(--space-3);
}
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--color-text); }
.stat .label { color: var(--color-text-muted); font-size: .9rem; }

/* Step cards (anasayfa "Karavan Seç / Ekipman İncele" vb.) */
.step-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .step-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .step-cards { grid-template-columns: 1fr; } }
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform .15s ease, box-shadow .15s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card .icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    margin: 0 auto var(--space-3);
    display: inline-flex; align-items: center; justify-content: center;
}
.step-card h4 { margin-bottom: 6px; }

/* Category cards (Ekipmanlar listesi) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card .image {
    aspect-ratio: 4/3;
    background-size: cover; background-position: center;
    background-color: #2a2a2a;
}
.cat-card .body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.cat-card h4 { margin-bottom: 6px; }
.cat-card p { color: var(--color-text-muted); font-size: .92rem; flex: 1; }
.cat-card .btn { margin-top: var(--space-3); }

/* "Nasıl çalışır" 5 adım */
.howsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
@media (max-width: 1100px) { .howsteps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .howsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .howsteps { grid-template-columns: 1fr; } }
.howstep {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-5) var(--space-4) var(--space-4);
    text-align: center;
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.howstep .step-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.howstep .step-icon { color: var(--color-primary); margin: var(--space-3) 0 var(--space-2); display: flex; justify-content: center; }
.howstep h4 { font-size: 1rem; margin-bottom: 6px; }
.howstep h4.accent { color: var(--color-primary); }
.howstep p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

/* Equipment list */
.eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 800px) { .eq-grid { grid-template-columns: 1fr; } }
.eq-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.eq-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.eq-card .image {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    position: relative;
}
.eq-card .image .badge-tl {
    position: absolute; top: 12px; left: 12px;
}
.eq-card .body { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eq-card h4 { margin: 0; font-size: 1.15rem; }
.eq-card .meta { color: var(--color-text-muted); font-size: .88rem; }
.eq-card .feats { margin: 4px 0 8px; padding-left: 18px; color: #555; font-size: .9rem; }
.eq-card .feats li { margin-bottom: 2px; }
.eq-card .actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 12px; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-5);
}
.tab {
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    transition: all .15s ease;
    background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.subtabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    margin-bottom: var(--space-5);
}
.subtab {
    padding: 12px 18px;
    color: var(--color-text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.subtab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.subtab:hover { color: var(--color-text); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: #eef0f3; color: #444;
    line-height: 1;
}
.badge-info     { background: #e0f2fe; color: #0369a1; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-success-soft { background: #dcfce7; color: #166534; }
.badge-success  { background: #16a34a; color: #fff; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-muted    { background: #e5e7eb; color: #4b5563; }

/* Alert */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    background: #f8f4ec;
    color: #6b5520;
    border: 1px solid #f3e6c7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--space-4);
}
.alert .icon { color: #b58a1f; flex-shrink: 0; margin-top: 2px; }
.alert--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert--success .icon { color: #16a34a; }
.alert--info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.alert--info .icon { color: #2563eb; }
.alert--danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--danger .icon { color: #dc2626; }
.alert--note {
    background: #fff8f3;
    color: #8a4a14;
    border-color: #fadbb8;
    border-left: 4px solid var(--color-primary);
}

/* Flash stack */
.flash-stack { margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .92rem;
    border: 1px solid;
}
.flash--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash--info    { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.flash--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* Page hero (üst banner — Üye Girişi, Profil vb.) */
.page-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background-color: #1f1f1f;
    padding: 64px 0 56px;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 100%);
}
.page-hero .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 0; opacity: .9;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    margin-bottom: var(--space-2);
}
.page-hero p { color: rgba(255,255,255,.9); margin: 0 auto; max-width: 720px; }

/* Empty state */
.empty {
    text-align: center;
    padding: var(--space-7) var(--space-4);
    color: var(--color-text-muted);
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}
.empty .icon { color: var(--color-primary); margin-bottom: var(--space-3); }

/* Tables */
table.simple {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
table.simple th, table.simple td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: .95rem;
}
table.simple th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
table.simple tr:last-child td { border-bottom: none; }
table.simple tbody tr:hover { background: #fcfcfc; }

/* Avatar circle */
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 700;
    color: #fff;
    background: #6b7280;
    flex-shrink: 0;
}
.avatar.bg-blue { background: #3b82f6; }
.avatar.bg-green { background: #10b981; }
.avatar.bg-purple { background: #8b5cf6; }
.avatar.bg-orange { background: #f97316; }
.avatar.bg-red { background: var(--color-primary); }

/* Footer */
.site-footer {
    background: #141414;
    color: #d6d6d6;
    padding: 0;
    margin-top: var(--space-7);
}
.footer-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
}
.footer-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,20,20,.6) 0%, rgba(20,20,20,.95) 100%);
}
.footer-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
    opacity: .9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: var(--space-6);
    padding: var(--space-7) 0 var(--space-6);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1.15rem; margin-bottom: var(--space-3); }
.footer-grid a { color: #ccc; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-quick { list-style: none; padding: 0; margin: 0; }
.footer-quick li { padding: 6px 0; border-bottom: 1px solid #222; }
.footer-quick li::before { content: '›'; color: var(--color-primary); margin-right: 8px; font-weight: 700; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space-3); }
.footer-contact-item .icon {
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-contact-item small { display: block; color: #888; }
.footer-bottom {
    border-top: 1px solid #222;
    padding: var(--space-3) 0;
    text-align: center;
    color: #888;
    font-size: .85rem;
}

/* Cart sticky button */
.cart-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 80;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.cart-fab .count { background: var(--color-yellow); color: #1a1a1a; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }

/* References / partners */
.partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    align-items: center;
    margin-top: var(--space-4);
}
.partner-tile {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-4);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 700;
}

/* Auth tabs container */
.auth-card {
    max-width: 520px;
    margin: -50px auto 0;
    position: relative; z-index: 5;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* Cart layout (Talep Listem) */
.cart-layout {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: var(--space-5);
    align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
}
.cart-item .img {
    width: 96px; height: 72px;
    background-size: cover; background-position: center;
    background-color: #2a2a2a;
    border-radius: 8px;
}
.cart-item h4 { margin: 0 0 4px; font-size: 1rem; }
.cart-item .meta { color: var(--color-text-muted); font-size: .85rem; line-height: 1.4; }
.cart-item .meta span { display: block; }
.cart-item button.remove {
    background: var(--color-primary); color: #fff; border: none;
    padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
    font-size: .85rem;
}
.cart-item button.remove:hover { background: var(--color-primary-dark); }

/* Talep listem (üye taleplerim) — kart liste */
.req-list { display: flex; flex-direction: column; gap: var(--space-3); }
.req-row {
    display: grid;
    grid-template-columns: 96px 1.4fr auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
}
.req-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.req-row .img {
    width: 96px; height: 72px;
    background-size: cover; background-position: center;
    background-color: #2a2a2a;
    border-radius: 8px;
}
.req-row .info h4 { margin: 0 0 6px; font-size: 1.05rem; }
.req-row .info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .88rem; color: var(--color-text-muted); }
.req-row .info dt { font-weight: 600; }
.req-row .arrow { color: var(--color-text-muted); }
@media (max-width: 700px) {
    .req-row { grid-template-columns: 80px 1fr; }
    .req-row .arrow { display: none; }
    .req-row .badge { grid-column: 1 / -1; justify-self: flex-start; }
}

/* Detail layout (talep detay / ekipman detay) */
.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-6);
    align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.detail-row {
    display: grid;
    grid-template-columns: 36px 140px 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    font-size: .95rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .icon { color: var(--color-primary); }
.detail-row .label { color: var(--color-text-muted); }

/* Equipment detail gallery */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}
.gallery .main-img {
    aspect-ratio: 4/3;
    background: #2a2a2a;
    background-size: cover; background-position: center;
    border-radius: var(--radius);
}
.gallery .thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}
.gallery .thumbs .thumb {
    aspect-ratio: 4/3;
    background: #2a2a2a;
    background-size: cover; background-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s ease;
}
.gallery .thumbs .thumb:hover, .gallery .thumbs .thumb.active { border-color: var(--color-primary); }

.feature-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.feature-list li {
    padding: 8px 0;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px dashed var(--color-border);
    color: #333;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '';
    width: 18px; height: 18px;
    background: var(--color-success);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
}

/* Modal-light (basit toast/onay yerine) */
.dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; padding: 16px;
}
.dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 420px; width: 100%;
    padding: var(--space-5);
    box-shadow: var(--shadow-lg);
}

/* Skip link (a11y) */
.skip-link {
    position: absolute; left: -9999px; top: -9999px;
    padding: 10px 18px; background: var(--color-yellow); color: #1a1a1a;
    border-radius: 8px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Spinner */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp 0.8s linear infinite;
    display: inline-block;
}
@keyframes sp { to { transform: rotate(360deg); } }
