/* Atölye paneli — koyu ray, krem çalışma alanı */
:root {
    --navy: #132536;
    --navy-2: #1c3348;
    --accent: #b33a2b;
    --cream: #f4f0ea;
    --ink: #243040;
    --font: "Manrope", system-ui, sans-serif;
}
body.admin {
    background: var(--cream);
    font-family: var(--font);
    color: var(--ink);
}
.admin-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.admin-side {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
        var(--navy);
    color: rgba(255,255,255,.82);
    padding: 22px 16px 28px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-block img { height: 36px; width: auto; }
.brand-block strong { display: block; color: #fff; font-size: 14px; letter-spacing: .02em; }
.brand-block span { font-size: 12px; opacity: .65; }
.nav-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
    margin: 14px 8px 6px;
}
.admin-side a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease;
}
.admin-side a i { font-size: 16px; width: 18px; text-align: center; opacity: .85; }
.admin-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side a.is-on {
    background: #fff;
    color: var(--navy);
}
.admin-side a.is-on i { opacity: 1; }
.side-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.admin-side a.is-out { color: rgba(255,200,190,.85); }
.admin-main { padding: 28px 36px 72px; }
.admin-main h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.admin-card {
    background: #fff;
    border: 0;
    padding: 22px 24px;
    box-shadow: 0 12px 28px rgba(19, 37, 54, .07);
    border-radius: 12px;
}
.admin-card h2 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream);
    display: inline-block;
}
.table thead { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.table { background: #fff; box-shadow: 0 8px 20px rgba(19, 37, 54, .05); border-radius: 12px; overflow: hidden; }
.btn-ink {
    background: var(--navy);
    color: #fff;
    border: 0;
    padding: 10px 18px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(19, 37, 54, .16);
    transition: transform .2s ease, background .2s ease;
}
.btn-ink:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(1200px 400px at 20% 0%, rgba(255,255,255,.08), transparent),
        var(--navy);
}
.login-card {
    width: min(420px, 92vw);
    background: #fff;
    padding: 36px;
    box-shadow: 0 24px 48px rgba(8, 22, 40, .28);
    border-radius: 16px;
}
.login-card h1 { font-size: 28px; font-weight: 800; }
.media-lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.media-lib-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(19, 37, 54, .07);
    position: relative;
    border: 2px solid transparent;
}
.media-lib-card.is-pick { cursor: pointer; }
.media-lib-card.is-pick:hover,
.media-lib-card.is-on { border-color: var(--navy); }
.media-lib-thumb {
    height: 120px;
    background: #ece7e0;
    display: grid;
    place-items: center;
}
.media-lib-thumb img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}
.media-lib-video {
    background: #132536;
    color: #fff;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}
.media-lib-video i { font-size: 28px; }
.media-lib-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    background: rgba(20, 30, 40, .75);
    color: #fff;
    font-size: 10px;
    letter-spacing: .04em;
    padding: 2px 6px;
    border-radius: 999px;
    z-index: 2;
}
.media-lib-meta {
    padding: 8px 10px 10px;
    font-size: 12px;
    line-height: 1.3;
}
.media-lib-meta strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-lib-meta span { color: #6b7785; }
.media-lib-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 30, 40, .72);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
}
.media-field-box {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    align-items: start;
}
.media-field-preview {
    min-height: 96px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(19, 37, 54, .06);
    display: grid;
    place-items: center;
    padding: 8px;
}
.media-field-preview img { max-width: 100%; max-height: 110px; object-fit: contain; }
.media-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 4px 6px 0 0;
    box-shadow: 0 4px 12px rgba(19, 37, 54, .08);
    font-size: 12px;
}
.media-chip img { width: 40px; height: 32px; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side {
        position: relative;
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .brand-block, .nav-label, .side-foot { grid-column: 1 / -1; }
    .admin-side { overflow: visible; }
    .media-field-box { grid-template-columns: 1fr; }
}
