﻿:root {
    --admin-bg: #f7f7f5;
    --admin-card: #ffffff;
    --admin-text: #1f2937;
    --admin-text-soft: #6b7280;
    --admin-border: #e5e7eb;
    --admin-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    --admin-primary: #1f2937;
    --admin-primary-hover: #111827;
    --admin-soft: #f3f4f6;
    --admin-soft-hover: #e5e7eb;
    --admin-success-bg: #e8f7ee;
    --admin-success-text: #15803d;
    --admin-muted-bg: #f3f4f6;
    --admin-muted-text: #6b7280;
    --admin-featured-bg: #fff7e6;
    --admin-featured-text: #b45309;
    --admin-danger-bg: #fef2f2;
    --admin-danger-text: #dc2626;
    --admin-radius: 18px;
    --admin-radius-sm: 12px;
}

body {
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* Genel */
.admin-page {
    padding-top: 18px;
    padding-bottom: 28px;
}

.admin-page-header {
    margin-bottom: 18px;
}

.admin-eyebrow {
    font-size: 0.85rem;
    color: var(--admin-text-soft);
    margin-bottom: 4px;
}

.admin-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.admin-subtitle {
    color: var(--admin-text-soft);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Topbar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 245, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0 16px 0;
}

/* Kart */
.admin-card {
    background: var(--admin-card);
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    padding: 18px;
}

    .admin-card + .admin-card {
        margin-top: 14px;
    }

.admin-stat-card {
    background: var(--admin-card);
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    padding: 18px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-stat-label {
    color: var(--admin-text-soft);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1.1;
}

/* Butonlar */
.btn-admin {
    background: var(--admin-primary);
    border: none;
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

    .btn-admin:hover {
        background: var(--admin-primary-hover);
        color: #fff;
    }

.btn-admin-soft {
    background: var(--admin-soft);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

    .btn-admin-soft:hover {
        background: var(--admin-soft-hover);
        color: var(--admin-text);
    }

.btn-admin-danger {
    background: #fff;
    border: 1px solid #fecaca;
    color: var(--admin-danger-text);
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

    .btn-admin-danger:hover {
        background: var(--admin-danger-bg);
        color: var(--admin-danger-text);
    }

/* Form */
.admin-input,
.admin-select,
.admin-textarea {
    border-radius: 14px;
    border: 1px solid var(--admin-border);
    padding: 12px 14px;
    min-height: 50px;
    box-shadow: none !important;
}

.admin-textarea {
    min-height: 120px;
}

    .admin-input:focus,
    .admin-select:focus,
    .admin-textarea:focus {
        border-color: #9ca3af;
    }

/* Rozetler */
.admin-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-badge-active {
    background: var(--admin-success-bg);
    color: var(--admin-success-text);
}

.admin-badge-passive {
    background: var(--admin-muted-bg);
    color: var(--admin-muted-text);
}

.admin-badge-featured {
    background: var(--admin-featured-bg);
    color: var(--admin-featured-text);
}

/* Liste kartları */
.admin-list-card {
    background: var(--admin-card);
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.admin-list-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

.admin-list-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 18px 18px 0 0;
}
@media (max-width: 767.98px) {
    .admin-list-image,
    .admin-list-placeholder {
        height: 260px;
    }
}
.admin-list-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-list-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.admin-list-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.admin-list-info {
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.6;
}

.admin-actions-list .btn,
.admin-list-actions .btn,
.admin-list-actions a.btn {
    width: 100%;
}

.admin-list-actions {
    display: grid;
    gap: 8px;
}
.admin-list-body {
    padding: 18px;
}

.admin-list-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--admin-text);
}

.admin-list-meta {
    color: var(--admin-text-soft);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.admin-list-info {
    color: var(--admin-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-list-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

/* Bölüm başlığı */
.admin-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--admin-text);
}

/* Alert */
.admin-alert {
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
}

/* Boş durum */
.admin-empty {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    color: var(--admin-text-soft);
}

/* Mobil */
@media (max-width: 767.98px) {
    .admin-title {
        font-size: 1.35rem;
    }

    .admin-card,
    .admin-stat-card,
    .admin-list-body {
        padding: 16px;
    }

    .admin-list-image,
    .admin-list-placeholder {
        min-height: 140px;
    }
}


.drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(229,231,235,0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 16px;
    line-height: 1;
    color: #4b5563;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.45;
}

.sortable-chosen {
    transform: scale(0.99);
}

.sortable-drag .admin-list-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.order-save-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2000;
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 0.92rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.order-save-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
@media (max-width: 767px) {
    .admin-list-image {
        height: 200px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .admin-list-card {
        overflow: hidden;
    }
}
.admin-list-image {
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}
@media (max-width: 767px) {
    .drag-handle {
        top: 10px;
        right: 10px;
        left: auto;
    }
}
.admin-list-image {
    border-radius: 16px 16px 0 0;
}
@media (max-width: 767px) {
    .admin-list-image {
        height: 150px; /* 🔥 burayı istersen 130-180 arası oynayabilirsin */
        width: 100%;
        object-fit: cover;
    }
}.admin-actions-list {
    display: none;
}

.admin-actions-list.show {
    display: block;
}
@media (max-width: 767px) {
    .admin-list-image {
        height: 120px;
    }
}
.admin-gallery-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.admin-gallery-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.admin-gallery-more {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}.admin-actions-list {
    display: none;
}

.admin-actions-list.show {
    display: block;
}

.admin-gallery-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.admin-gallery-thumb-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.admin-gallery-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: block;
}

.admin-gallery-more {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.gallery-modal-body {
    background: #111827;
}

.gallery-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.gallery-prev-btn {
    left: 14px;
}

.gallery-next-btn {
    right: 14px;
}

.gallery-main-image {
    max-height: 75vh;
    object-fit: contain;
    background: #111827;
}

.gallery-bottom-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    margin: 0 4px 6px 4px;
}

.gallery-bottom-thumb.active {
    border: 2px solid #111827;
}

@media (max-width: 767px) {
    .admin-list-image {
        height: 120px;
        width: 100%;
        object-fit: cover;
        border-radius: 16px 16px 0 0;
    }

    .admin-list-card {
        overflow: hidden;
    }

    .admin-list-body {
        padding: 12px;
    }

    .drag-handle {
        top: 10px;
        right: 10px;
        left: auto;
    }

    .gallery-main-image {
        max-height: 60vh;
    }

    .gallery-bottom-thumb {
        width: 48px;
        height: 48px;
    }
}
.admin-gallery-thumb-button {
    cursor: pointer;
}
.gallery-main-image {
    touch-action: pan-y;
}
.admin-layout-body {
    background: #f5f6f8;
    color: #111827;
    min-height: 100vh;
}

.admin-shell-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-shell-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.admin-shell-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 2px;
}

.admin-shell-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.admin-shell-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-shell-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(17, 24, 39, 0.06);
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-shell-nav-link:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.admin-shell-nav-link-danger {
    background: #fff;
    border-color: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}

.admin-shell-nav-link-danger:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.admin-shell-main {
    padding: 28px 0 40px 0;
}

@media (max-width: 767.98px) {
    .admin-shell-header-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .admin-shell-title {
        font-size: 1.12rem;
    }

    .admin-shell-nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 40px 4px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .admin-shell-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-shell-nav-link {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 13px;
        font-size: 0.9rem;
    }

    .admin-shell-main {
        padding-top: 20px;
    }
}
.admin-shell-nav-wrap {
    position: relative;
    width: 100%;
}

.admin-shell-nav-link.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
@media (max-width: 767.98px) {
    .admin-shell-nav-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 42px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to right, rgba(245, 246, 248, 0), #ffffff 80%);
        border-radius: 0 0 12px 0;
    }
}