/* ============================================================
   PROFIL DASHBOARD — Ortak Layout (profile-layout.css)
   Tüm /profile/* sayfaları bu dosyayı kullanır.
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f7f7f8;
    color: #0a0a0a;
    min-height: 100vh;
}

/* ── Navbar container ── */
#navbar-container { display: none; }
@media (min-width: 769px) { #navbar-container { display: block; } }

/* ============================================================
   DESKTOP LAYOUT — 2 Sütun (Sidebar + Content)
   ============================================================ */
.profile-layout {
    display: block;
}

@media (min-width: 769px) {
    .profile-layout {
        max-width: 1200px;
        margin: 48px auto;
        padding: 0 32px;
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* ── Sidebar ── */
.profile-sidebar {
    display: none;
}

@media (min-width: 769px) {
    .profile-sidebar {
        display: block;
        position: sticky;
        top: 88px; /* navbar yüksekliği + boşluk */
    }
}

/* Kullanıcı kartı (sidebar üstü) */
.psb-user-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebebeb;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.psb-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary, #ff6b00);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.psb-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
}

.psb-user-email {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Nav grupları */
.psb-nav {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    margin-bottom: 12px;
}

.psb-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px 6px;
}

.psb-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.psb-nav-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.15s;
}

.psb-nav-item:hover {
    background: #fafafa;
    color: #0a0a0a;
}

.psb-nav-item:hover i {
    color: #666;
}

.psb-nav-item.active {
    background: #fff8f4;
    color: var(--color-primary, #ff6b00);
    border-left-color: var(--color-primary, #ff6b00);
    font-weight: 600;
}

.psb-nav-item.active i {
    color: var(--color-primary, #ff6b00);
}

.psb-nav-item.logout {
    color: #e53935;
    margin-top: 4px;
    border-top: 1px solid #f5f5f5;
}

.psb-nav-item.logout i {
    color: #e53935;
}

/* ── İçerik Alanı ── */
.profile-content {
    min-width: 0;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .profile-content {
        padding-bottom: 48px;
    }
}

/* İçerik başlığı */
.pc-header {
    margin-bottom: 28px;
    display: none;
}

@media (min-width: 769px) {
    .pc-header {
        display: block;
    }
}

.pc-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.4px;
    margin-bottom: 5px;
}

.pc-header p {
    font-size: 14px;
    color: #aaa;
}

/* Premium kart */
.pc-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 16px;
}

.pc-card-label {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 24px 0;
}

/* ============================================================
   MOBİL LAYOUT
   ============================================================ */

/* Mobil üst bar */
.mob-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 52px 20px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (min-width: 769px) {
    .mob-topbar { display: none; }
}

.mob-topbar-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.mob-topbar-title {
    font-size: 17px;
    font-weight: 700;
    color: #0a0a0a;
}

/* Mobil alt nav */
.mob-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 200;
    padding: 8px 0 12px;
}

@media (min-width: 769px) {
    .mob-bottom-nav { display: none; }
}

.mob-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #888;
    font-size: 10px;
    font-weight: 500;
}

.mob-bottom-nav a i { font-size: 20px; }

.mob-bottom-nav a.active {
    color: var(--color-primary, #ff6b00);
    font-weight: 600;
}

/* ============================================================
   ORTAK BİLEŞENLER
   ============================================================ */

/* Info satırı (kişisel bilgiler vb.) */
.pf-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
    gap: 16px;
}

.pf-info-row:last-child { border-bottom: none; }

.pf-info-body { flex: 1; }

.pf-info-label {
    font-size: 13px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 3px;
}

.pf-info-value {
    font-size: 13px;
    color: #aaa;
}

.pf-info-action {
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: underline;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.pf-info-action:hover { color: var(--color-primary, #ff6b00); }

/* Toggle satırı */
.pf-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
    gap: 20px;
}

.pf-toggle-row:last-child { border-bottom: none; }

.pf-toggle-text { flex: 1; }

.pf-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 2px;
}

.pf-toggle-desc {
    font-size: 12px;
    color: #aaa;
}

/* iOS toggle */
.pf-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.pf-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.pf-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ddd;
    border-radius: 28px;
    transition: background 0.25s;
}

.pf-toggle-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    transition: transform 0.25s;
}

.pf-toggle input:checked + .pf-toggle-slider { background: #222; }
.pf-toggle input:checked + .pf-toggle-slider::before { transform: translateX(22px); }

/* Sheet (modal) */
.pf-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
}

.pf-sheet-overlay.open { display: block; }

.pf-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 301;
    padding: 0 20px 48px;
    transition: bottom 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.pf-sheet.open { bottom: 0; }

@media (min-width: 769px) {
    .pf-sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: -100%;
        transform: translateX(-50%);
        width: 480px;
        border-radius: 20px;
        transition: top 0.3s ease;
    }
    .pf-sheet.open {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
}

.pf-sheet-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    margin: 12px auto 20px;
}

@media (min-width: 769px) { .pf-sheet-handle { display: none; } }

.pf-sheet-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 6px;
    padding-top: 8px;
}

@media (min-width: 769px) { .pf-sheet-title { padding-top: 24px; } }

.pf-sheet-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pf-sheet-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: #0a0a0a;
    outline: none;
    margin-bottom: 16px;
    background: #fff;
    font-family: inherit;
}

.pf-sheet-input:focus { border-color: #0a0a0a; }

.pf-sheet-save {
    width: 100%;
    background: var(--color-primary, #ff6b00);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.pf-sheet-cancel {
    width: 100%;
    background: none;
    color: #0a0a0a;
    border: 1.5px solid #e0e0e0;
    border-radius: 32px;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

/* Info kartları (3'lü grid) */
.pc-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .pc-info-cards { grid-template-columns: 1fr; }
}

.pc-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ebebeb;
    padding: 20px;
}

.pc-info-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--color-primary, #ff6b00);
    margin-bottom: 12px;
}

.pc-info-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 6px;
}

.pc-info-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

/* Boş durum */
.pc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
}

.pc-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ccc;
    margin-bottom: 16px;
}

.pc-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.pc-empty-desc {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}
