﻿/* ===========================
   Parker Istanbul – Global Styles
   =========================== */

:root {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #6b7280;
    --acc: #f59e0b; /* amber-500 */
    --acc-ink: #ffffff;
    --border: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ===== Base ===== */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%
}

body {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 60px
}

@media (max-width:900px) {
    .container {
        padding: 24px 20px
    }
}

h1 {
    font-size: 38px;
    line-height: 1.1;
    margin: 0;
    color: #111827
}

h2 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #111827
}

h3 {
    font-size: 20px;
    margin: 0 0 8px
}

p {
    margin: 0 0 10px
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 14px 0
}

/* ===== Cards, Buttons, Tables ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--acc);
    color: var(--acc-ink);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #f59e0b;
    box-shadow: 0 1px 6px rgba(245,158,11,.35);
    cursor: pointer;
    transition: filter .15s ease-in-out;
}

    .btn:hover {
        filter: brightness(.96)
    }

    .btn.alt {
        background: #fff;
        border: 1px solid var(--acc);
        color: #b45309;
        box-shadow: none
    }

.btn-sm {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700
}

/* PDF indir butonu */
.btn-outline-secondary {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    background: #fff;
    color: #374151;
    border: 1px solid var(--border);
    box-shadow: none;
}

    .btn-outline-secondary:hover {
        background: #f9fafb
    }

/* Basit tablo */
.table {
    width: 100%;
    border-collapse: collapse
}

    .table th, .table td {
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid var(--border)
    }

    .table th {
        color: #111827
    }

/* ===== Header / Navigation ===== */
.header {
    background: #fff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
    color: inherit;
}

    .brand .logo {
        height: 28px;
        width: auto;
        display: block;
    }

.nav .links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    border: 1px solid transparent;
    transition: .15s;
}

    .nav a:hover {
        background: #fff7ed;
        border-color: #fde68a;
    }

    .nav a.cta {
        background: #e0f2fe;
        color: #0369a1;
        border: 1px solid #bae6fd;
    }

        .nav a.cta:hover {
            background: #bae6fd;
        }

/* ---- Hamburger + Dropdown ---- */

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
}

/* Masaüstünde dropdown hiç görünmesin */
.dropdown {
    display: none;
    z-index: 50;
}

@media (max-width: 900px) {
    .nav .links {
        display: none; /* mobilde üst bar kaybolsun */
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    /* Mobilde dropdown yapısı */
    .dropdown {
        display: flex; /* her zaman DOM'da, ama kapalı duracak */
        position: absolute;
        left: 16px;
        right: 16px;
        top: 100%;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        z-index: 20;
        /* kapalı hali */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .2s ease, opacity .2s ease;
    }

    /* nav.open olunca menüyü aç */
    .nav.open .dropdown {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .dropdown a {
        display: block;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }

        .dropdown a.active {
            background: var(--acc);
            color: #fff;
            border-color: transparent;
        }

        .dropdown a.cta {
            background: #e0f2fe;
            color: #0369a1;
            border-color: #bae6fd;
        }
}


/* ===== Hero / Grid ===== */
.hero {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 60px auto;
}

    .hero img, .hero video {
        width: 100%;
        height: auto;
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        margin: 30px auto
    }
}

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr))
}

/* ===== CTA segment (kapsül) – BUTON ŞİŞMESİ FIX ===== */
.cta-seg {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    margin-top: 14px;
    justify-content: center;
}

    .cta-seg .seg-item {
        display: inline-block;
        padding: 10px 22px;
        color: #374151;
        text-decoration: none;
        font-weight: 600;
        border-right: 1px solid var(--border);
        white-space: nowrap;
        transition: all .15s ease-in-out;
    }

        .cta-seg .seg-item:last-child {
            border-right: none
        }

        .cta-seg .seg-item:hover {
            background: #fff7ed;
            color: #b45309
        }

        .cta-seg .seg-item.active {
            background: var(--acc);
            color: #fff;
            border-right: 1px solid var(--acc)
        }

        .cta-seg .seg-item:focus-visible {
            outline: 2px solid #fde68a;
            outline-offset: 2px
        }

        .cta-seg .seg-item.active:hover {
            color: #fff
        }
/* aktifken hover rengi sabit kalsın */

@media (max-width:900px) {
    .cta-seg {
        flex-wrap: wrap;
        justify-content: center
    }
}

/* ===== Generic form polish ===== */
.form-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px
}

.form-control, .form-select, textarea {
    width: 100%;
    display: block;
    padding: 10px 12px;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
    font-size: 16px; /* 🔸 iOS zoom fix */
}

/* Her ihtimale karşı class kullanılmayan input'lar için de */
input,
select,
textarea {
    font-size: 16px;
}

    .form-control:focus, .form-select:focus, textarea:focus {
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245,158,11,.15)
    }

textarea {
    resize: vertical
}

.text-danger {
    color: #b91c1c
}

.validation-summary-errors {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Basit grid yardımcıları */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px
}

    .row.g-3 {
        gap: 12px
    }

    .row > [class^="col-"] {
        padding-left: 12px;
        padding-right: 12px
    }

.col-md-3 {
    flex: 0 0 auto;
    width: 25%
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.333%
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%
}

.col-md-8 {
    flex: 0 0 auto;
    width: 66.666%
}

@media (max-width:900px) {
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        width: 100%
    }
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted);
    font-size: 14px;
    text-align: left;
    padding: 14px 60px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.03);
}

@media (max-width:900px) {
    footer {
        padding: 14px 20px;
        box-shadow: none
    }
}

/* =====================================================
   SUBSCRIPTION PAGE – scoped (Index.cshtml)
   ===================================================== */
.subscription-page .container {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 20px
}

.subscription-page h1 {
    margin-bottom: 8px
}

.subscription-page .card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
    background: #fff
}

.subscription-page .address-box {
    min-height: 110px
}

/* sözleşme okuyucu */
.subscription-page .contract-reader {
    width: 100%;
    max-width: 100%;
    height: 560px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
    line-height: 1.55;
}

    .subscription-page .contract-reader h3 {
        margin: 0 0 8px;
        font-weight: 800;
        text-align: center
    }

    .subscription-page .contract-reader h4 {
        margin: 16px 0 8px;
        font-weight: 700
    }

    .subscription-page .contract-reader p {
        margin: 0 0 10px
    }

    .subscription-page .contract-reader ul {
        margin: 0 0 10px 18px
    }

@media (max-width:576px) {
    .subscription-page .contract-reader {
        height: 460px
    }
}

/* imza alanı */
.sig-box {
    display: inline-block;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 6px;
    background: #fff
}

.subscription-page .sig-canvas {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    display: block;
    width: 520px;
    height: 160px;
}

/* kart padding (mobil) */
@media (max-width:768px) {
    .subscription-page .card.p-3 {
        padding: 16px !important
    }
}

/* iOS Safari input-zoom fix – sadece abonelik sayfasında */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .subscription-page input,
        .subscription-page select,
        .subscription-page textarea {
            font-size: 16px !important;
        }
    }
}

/* kapı/blur */
.blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    opacity: .6
}

/* ipuçları */
.hint-danger {
    color: #dc2626;
    font-weight: 700
}

.hint-ok {
    color: #16a34a;
    font-weight: 700
}

/* IBAN alanı */
.bank-box {
    line-height: 1.5;
    margin-bottom: 10px
}

.iban-copy {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px dashed #9ca3af;
    border-radius: 6px;
    cursor: pointer;
}

    .iban-copy:hover {
        background: #fff7ed
    }

.copy-info {
    margin-left: 8px;
    font-size: .875rem;
    color: #16a34a
}

.pay-warn {
    color: #dc2626;
    margin-top: 6px
}

/* === Subscription – sayfa içi stillerden taşınanlar === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 14px;
}

    .form-grid .span-2 {
        grid-column: span 2
    }

@media (max-width:900px) {
    .form-grid {
        grid-template-columns: 1fr
    }

        .form-grid .span-2 {
            grid-column: span 1
        }
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

@media (max-width:900px) {
    .uploads-grid {
        grid-template-columns: 1fr
    }
}

.upload-tile {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    background: #fff;
    cursor: pointer;
}

    .upload-tile .u-title {
        font-weight: 700
    }

    .upload-tile .u-hint {
        font-size: .85rem;
        color: #6b7280
    }

.upload-input {
    display: none
}

.u-prev {
    display: none;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}

/* === Upload Card (kamera+dosya) === */
.u-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

@media (max-width:900px) {
    .u-grid {
        grid-template-columns: 1fr
    }
}

.u-card {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.u-head {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px
}

    .u-head .u-badge {
        font-size: .75rem;
        color: #6b7280;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        padding: 2px 8px
    }

.u-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    color: #9ca3af;
    font-size: .9rem;
}

.u-preview {
    display: none;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb
}

.u-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.btn-soft {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
}

    .btn-soft:hover {
        background: #f9fafb
    }

    .btn-soft.primary {
        border-color: #fde68a;
        background: #fff7ed
    }

.u-filename {
    font-size: .8rem;
    color: #6b7280
}

.u-input {
    display: none
}

/* ==== Ücretler – Tab butonları ==== */

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .03);
}

    /* Hover efekti */
    .tab-btn:hover {
        background: #fff7ed;
        border-color: #fde68a;
    }

    /* Seçili tab (active) – Parker turuncusu */
    .tab-btn.active {
        background: var(--acc); /* #f59e0b */
        color: #ffffff;
        border-color: #f59e0b;
    }

.subscription-price-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    font-weight: 700;
    font-size: 1rem;
    color: #b91c1c;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

/* 3 kolonluk satır */
.price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

    /* Masaüstünde 3’ü de yan yana */
    .price-row .pr-col {
        flex: 0 0 calc(33.333% - 11px);
    }

/* Mobilde alt alta insin */
@media (max-width: 768px) {
    .price-row .pr-col {
        flex: 0 0 100%;
    }
}

/* ===== Abonelik Büyük Spinner ===== */

.abonelik-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.abonelik-spinner-big {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid #ffe8bd;
    border-top-color: var(--acc); /* Parker turuncusu */
    animation: abonelik-big-spin 0.8s linear infinite;
}

@keyframes abonelik-big-spin {
    to {
        transform: rotate(360deg);
    }
}

.abonelik-loading-text {
    font-size: 15px;
    font-weight: 600;
    color: #b45309;
    opacity: 0.8;
}
