/* ============================================================
   subscription-style.css
   Abonelik akışındaki tüm sayfalarda (plans, quiz, payment, admin)
   ortak kullanılan tasarım dili. Markanıza göre değiştirmek için
   sadece :root içindeki değişkenleri güncellemeniz yeterli.

   Tasarım fikri: Bir öğrencinin ders kitabını "vurgulayıcı kalemle"
   işaretlemesinden ilham alındı — önerilen plan ve aktif adımlar
   gerçek bir vurgulayıcı izi gibi sarı bir şeritle işaretlenir.
   ============================================================ */

:root {
    --ink-900: #1a2238;
    --ink-600: #4a5578;
    --ink-400: #8089a3;
    --paper:   #f7f7f5;
    --surface: #ffffff;
    --border:  #e4e2dc;
    --highlight: #ffc857;   /* vurgulayıcı sarı — imza renk */
    --teal:    #2ec4b6;     /* ikincil aksan / başarı */
    --coral:   #ef6f5b;     /* uyarı / dikkat */
    --radius:  14px;
    --shadow:  0 8px 24px rgba(26, 34, 56, 0.08);
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

.sub-wrap {
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--paper);
    line-height: 1.5;
}

.sub-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px;
}

.sub-eyebrow {
    font-family: var(--font-display);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.sub-h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--ink-900);
}

.sub-lead {
    font-size: 17px;
    color: var(--ink-600);
    max-width: 560px;
    margin: 0 0 32px;
}

/* ---- highlight squiggle: sayfanın imza öğesi ---- */
.sub-highlight {
    position: relative;
    white-space: nowrap;
}
.sub-highlight::after {
    content: '';
    position: absolute;
    left: -2px; right: -2px; bottom: 2px;
    height: 0.5em;
    background: var(--highlight);
    opacity: 0.55;
    z-index: -1;
    border-radius: 3px;
    transform: rotate(-0.6deg);
}

/* ---- Buttons ---- */
.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sub-btn:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}
.sub-btn-primary {
    background: var(--ink-900);
    color: #fff;
    box-shadow: var(--shadow);
}
.sub-btn-primary:hover { transform: translateY(-1px); background: #232c4a; }

.sub-btn-ghost {
    background: transparent;
    color: var(--ink-400);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sub-btn-ghost:hover { color: var(--ink-600); }

.sub-btn-secondary {
    background: var(--surface);
    color: var(--ink-900);
    border: 1.5px solid var(--border);
}
.sub-btn-secondary:hover { border-color: var(--ink-400); }

.sub-btn-block { width: 100%; }
.sub-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Cards / Plans grid ---- */
.sub-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.sub-plan-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sub-plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.sub-plan-card.is-recommended {
    border-color: var(--ink-900);
    border-width: 2px;
    box-shadow: 0 12px 32px rgba(26, 34, 56, 0.14);
    transform: translateY(-8px);
}

.sub-plan-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--highlight);
    color: var(--ink-900);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.sub-plan-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 4px;
}
.sub-plan-tagline {
    font-size: 13.5px;
    color: var(--ink-400);
    margin-bottom: 16px;
}
.sub-plan-price {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 2px;
}
.sub-plan-period {
    font-size: 13px;
    color: var(--ink-400);
    margin-bottom: 18px;
}
.sub-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}
.sub-plan-features li {
    font-size: 14px;
    color: var(--ink-600);
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
}
.sub-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

/* ---- Intro screen (plans.php) ---- */
.sub-intro {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto 0;
}
.sub-intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

/* ---- Quiz ---- */
.sub-quiz-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 620px;
    margin: 0 auto;
}
.sub-progress-track {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}
.sub-progress-dot {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--border);
    transition: background .2s ease;
}
.sub-progress-dot.is-done { background: var(--teal); }
.sub-progress-dot.is-current { background: var(--highlight); }

.sub-quiz-question {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.sub-quiz-help {
    color: var(--ink-400);
    font-size: 14px;
    margin-bottom: 24px;
}
.sub-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.sub-quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .15s ease, background .15s ease;
}
.sub-quiz-option:hover { border-color: var(--ink-400); }
.sub-quiz-option.is-selected {
    border-color: var(--ink-900);
    background: #fdf8ec;
}
.sub-quiz-option input { accent-color: var(--ink-900); }

.sub-quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Payment ---- */
.sub-pay-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 760px) {
    .sub-pay-grid { grid-template-columns: 1fr; }
}
.sub-pay-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.sub-pay-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid var(--border);
}
.sub-pay-tab {
    padding: 12px 4px;
    margin-right: 20px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink-400);
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none; border-left: none; border-right: none;
}
.sub-pay-tab.is-active {
    color: var(--ink-900);
    border-bottom-color: var(--highlight);
}
.sub-pay-panel { display: none; }
.sub-pay-panel.is-active { display: block; }

.sub-field {
    margin-bottom: 16px;
}
.sub-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-600);
    margin-bottom: 6px;
}
.sub-field input, .sub-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: var(--font-body);
    box-sizing: border-box;
}
.sub-field input:focus, .sub-field select:focus {
    outline: none;
    border-color: var(--ink-900);
}
.sub-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sub-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    color: var(--ink-600);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.sub-summary-row.total {
    font-weight: 700;
    color: var(--ink-900);
    font-size: 17px;
    border-bottom: none;
}

.sub-iban-box {
    background: var(--paper);
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 18px;
}
.sub-iban-box div { margin-bottom: 6px; }
.sub-ref-code {
    display: inline-block;
    background: var(--highlight);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sub-alert {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.sub-alert-info { background: #eef6ff; color: #1b4f8a; }
.sub-alert-success { background: #eafaf3; color: #156a4f; }
.sub-alert-warning { background: #fff7e6; color: #8a5a1b; }
.sub-alert-error { background: #fdecec; color: #a3281e; }

/* ---- Admin tables ---- */
.sub-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sub-admin-table th, .sub-admin-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.sub-admin-table th {
    background: var(--ink-900);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sub-admin-table tr:last-child td { border-bottom: none; }
.sub-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.sub-pill-pending { background: #fff7e6; color: #8a5a1b; }
.sub-pill-completed { background: #eafaf3; color: #156a4f; }
.sub-pill-cancelled { background: #fdecec; color: #a3281e; }

.sub-admin-form {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
