/* ============================================================
   E-Ticaret Akademisi — Üye arayüzü tasarım sistemi
   Creem.io esinli: yüksek kontrast, ink/cream, krem dokular,
   çıkık (raised) butonlar. Marka yeşili vurgu olarak.
   ============================================================ */

:root {
    --ink:        #0A0A0A;
    --ink-soft:   #171717;
    --paper:      #FFFFFF;
    --cream:      #F4F1EA;
    --cream-2:    #EDE9DF;
    --green:      #10B981;
    --green-deep: #047857;
    --green-soft: #ECFDF5;
    --muted:      #525252;
    --line:       #E7E5E1;
    --radius:     14px;
    --radius-sm:  10px;
    --shadow-raised: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(10,10,10,.45);
    --shadow-raised-lg: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 34px -12px rgba(10,10,10,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
.mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Split-screen layout ---------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

/* Sol: koyu marka paneli */
.auth-brand {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 56px 56px 48px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-brand .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
}
.auth-brand .blob.b1 { width: 320px; height: 320px; background: var(--green); top: -80px; right: -60px; }
.auth-brand .blob.b2 { width: 260px; height: 260px; background: #047857; bottom: -90px; left: -70px; opacity: .35; }
.auth-brand .grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.auth-brand > * { position: relative; z-index: 1; }

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: var(--green); display: inline-block;
}

.brand-logo {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.brand-logo .dot {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--green); display: grid; place-items: center; color: #042f1e;
    box-shadow: var(--shadow-raised);
}

.auth-brand h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 22px 0 18px;
}
.auth-brand h1 .accent { color: var(--green); }
.auth-brand p.lead { color: #a3a3a3; font-size: 17px; line-height: 1.6; max-width: 420px; }

.brand-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.brand-points li { display: flex; gap: 12px; align-items: flex-start; color: #d4d4d4; font-size: 15px; }
.brand-points .tick {
    flex: none; width: 22px; height: 22px; border-radius: 7px;
    background: rgba(16,185,129,.15); color: var(--green);
    display: grid; place-items: center; font-size: 11px; margin-top: 2px;
}

.brand-foot { color: #6b6b6b; font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* Sağ: form paneli */
.auth-form-side {
    background: var(--cream);
    display: grid;
    place-items: center;
    padding: 48px 24px;
    position: relative;
}
.auth-form-side::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(16,185,129,.06), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(10,10,10,.04), transparent 60%);
    pointer-events: none;
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 38px;
    box-shadow: 0 30px 60px -30px rgba(10,10,10,.18);
}
.auth-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px;
}
.auth-card .sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

/* Form alanları */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.field .wrap { position: relative; }
.field .wrap .ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9a9a9a; font-size: 14px;
}
.input {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 14px 13px 40px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    font-family: inherit;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.input::placeholder { color: #b5b5b5; }

/* ---------- Çıkık (raised) butonlar ---------- */
.btn {
    --bg: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    background: var(--bg);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-raised);
    transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised-lg); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-raised); }
.btn.green { --bg: var(--green); color: #042f1e; }
.btn.green:hover { --bg: #0fcf95; }
.btn.ghost {
    background: transparent; color: var(--ink); border: 1.5px solid var(--line);
    box-shadow: none;
}
.btn.ghost:hover { background: #fff; border-color: var(--ink); box-shadow: 0 6px 16px -10px rgba(10,10,10,.3); transform: translateY(-1px); }

.btn-row { display: grid; gap: 12px; margin-top: 8px; }

.divider {
    display: flex; align-items: center; gap: 12px; margin: 22px 0;
    color: #9a9a9a; font-size: 12px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .1em;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.switch-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.switch-link a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }

.note { font-size: 12px; color: #8a8a8a; margin-top: 18px; line-height: 1.5; }
.note a { color: var(--green-deep); }

/* Toast / alert (sayfa içı, SweetAlert2 yerine statik fallback) */
.alert {
    border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert.err  { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert.ok   { background: var(--green-soft); border-color: #A7F3D0; color: var(--green-deep); }
.alert.info { background: #F8FAFC; border-color: var(--line); color: var(--ink-soft); }

/* Mobil marka çubuğu (küçük ekranda sol panel gizli olduğu için) */
.mobile-brand {
    display: none;
    align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
    margin-bottom: 18px;
}
.mobile-brand .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #042f1e; }
@media (max-width: 900px) { .mobile-brand { display: inline-flex; } }

/* Eğitim alanı (egitim.php) */
.member-shell { min-height: 100vh; background: var(--cream); }
.member-top {
    background: var(--ink); color: #fff; padding: 18px 28px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.member-top .brand-logo { color: #fff; }
.member-top nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.member-top nav a { color: #d4d4d4; text-decoration: none; }
.member-top nav a:hover { color: var(--green); }
.member-top .user-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.08); padding: 7px 13px; border-radius: 999px; font-size: 13px;
}
.member-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
}
.status-badge.active { background: var(--green-soft); color: var(--green-deep); }
.status-badge.inactive { background: #FEF3C7; color: #92400E; }
.status-badge .pip { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.unit-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    box-shadow: 0 18px 40px -28px rgba(10,10,10,.25); transition: transform .15s, box-shadow .15s;
}
.unit-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgba(10,10,10,.32); }
.unit-card .num {
    width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px;
}
.unit-card h3 { font-family: 'Space Grotesk', sans-serif; margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.unit-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.55; }
.unit-card .locked { color: #92400E; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }

.upsell {
    background: var(--ink); color: #fff; border-radius: 22px; padding: 44px; text-align: center;
    box-shadow: var(--shadow-raised-lg); position: relative; overflow: hidden; margin-top: 26px;
}
.upsell .blob { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--green); filter: blur(70px); opacity: .35; top: -90px; right: -60px; }
.upsell h2 { font-family: 'Space Grotesk', sans-serif; position: relative; font-size: 30px; margin: 0 0 10px; letter-spacing: -0.02em; }
.upsell p { position: relative; color: #c4c4c4; margin: 0 auto 24px; max-width: 520px; line-height: 1.6; }
.upsell .btn { max-width: 280px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
    .btn, .unit-card, .auth-card { transition: none !important; }
}
