/* =============================================================================
   styles.css - Kürsat Gürbüz — Visual Content Kundengalerie
   Ultra-reduziertes, kompromissloses Editorial- & Picdrop-Design
   (Studio Dark #161616 / Neutral Grey #2b2b2b / Gallery White #ffffff)
   Keine Box-Schatten, keine Farbverläufe, keine Emojis, 100 % Fokus auf das Bild
   ============================================================================= */

:root {
    /* Studio Dark (Standard - Farbtreu wie Lightroom / Capture One) */
    --bg-canvas: #161616;
    --bg-header: #161616;
    --bg-surface: #1e1e1e;
    --bg-surface-hover: #262626;
    --border-line: #262626;
    --border-line-hover: #3a3a3a;

    --text-main: #e5e5e5;
    --text-muted: #737373;
    --text-dimmed: #525252;

    --btn-primary-bg: #e5e5e5;
    --btn-primary-text: #161616;
    --btn-primary-hover: #ffffff;

    /* Picdrop Farblabels */
    --c-red: #ef4444;
    --c-yellow: #eab308;
    --c-green: #22c55e;
    --c-blue: #3b82f6;

    --font-studio: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Neutral Grey Switch (Lightroom Workspace Look) */
[data-theme="grey"] {
    --bg-canvas: #2b2b2b;
    --bg-header: #2b2b2b;
    --bg-surface: #363636;
    --bg-surface-hover: #404040;
    --border-line: #3d3d3d;
    --border-line-hover: #505050;

    --text-main: #f0f0f0;
    --text-muted: #8c8c8c;
    --text-dimmed: #666666;

    --btn-primary-bg: #ffffff;
    --btn-primary-text: #2b2b2b;
    --btn-primary-hover: #f0f0f0;
}

/* Gallery White (Minimalistisches Ausstellungs-Weiß) */
[data-theme="light"] {
    --bg-canvas: #ffffff;
    --bg-header: #ffffff;
    --bg-surface: #f7f7f7;
    --bg-surface-hover: #efefef;
    --border-line: #ebebeb;
    --border-line-hover: #d6d6d6;

    --text-main: #171717;
    --text-muted: #8c8c8c;
    --text-dimmed: #b3b3b3;

    --btn-primary-bg: #171717;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #000000;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-main);
    font-family: var(--font-studio);
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   1. MINIMALISTISCHER PROJEKT-HEADER (PICDROP-STYLE)
   ============================================================================= */
.studio-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-line);
}

.header-inner {
    max-width: 1840px;
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.photographer-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.header-sep {
    color: var(--border-line-hover);
    font-size: 13px;
}

.project-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.project-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.status-badge-submitted {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--c-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 8px;
}

/* Header Right Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Farbtemperatur- / Theme-Umschalter */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border: 1px solid var(--border-line);
    border-radius: 3px;
    margin-right: 4px;
}

.theme-btn {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.theme-btn[data-theme="dark"] { background: #161616; border-color: #333; }
.theme-btn[data-theme="grey"] { background: #404040; border-color: #555; }
.theme-btn[data-theme="light"] { background: #ffffff; border-color: #ccc; }

.theme-btn.active {
    box-shadow: 0 0 0 1px #fff;
}
[data-theme="light"] .theme-btn.active {
    box-shadow: 0 0 0 1px #000;
}

.btn-ghost-sm {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-ghost-sm:hover {
    color: var(--text-main);
    border-color: var(--border-line);
}

.btn-subtle-sm {
    background: transparent;
    border: 1px solid var(--border-line);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 0 12px;
    height: 30px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-subtle-sm:hover {
    border-color: var(--border-line-hover);
    background: var(--bg-surface);
}

.btn-submit-header {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    padding: 0 14px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s ease;
}

.btn-submit-header:hover {
    opacity: 0.9;
}

/* =============================================================================
   2. SCHLANKE WERKZEUG- & FILTERLEISTE (SUB-TOOLBAR, 40px)
   ============================================================================= */
.studio-subtoolbar {
    border-top: 1px solid var(--border-line);
    background: var(--bg-header);
    height: 40px;
    display: flex;
    align-items: center;
}

.subtoolbar-inner {
    max-width: 1840px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
}

.subtoolbar-left,
.subtoolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-sep {
    width: 1px;
    height: 16px;
    background: var(--border-line);
}

/* Sektionen Tabs (Reine Textlinks ohne Boxen) */
.section-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 4px 6px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.sec-link:hover {
    color: var(--text-main);
}

.sec-link.active {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

/* Picdrop Filter Buttons (Herz, Stern, Kommentar) */
.picdrop-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.filter-link:hover {
    color: var(--text-main);
}

.filter-link.active {
    color: var(--text-main);
    background: var(--bg-surface);
    border-color: var(--border-line);
}

.filter-count {
    font-size: 11px;
    color: var(--text-dimmed);
    font-variant-numeric: tabular-nums;
}

.filter-link.active .filter-count {
    color: var(--text-muted);
}

.filter-link.active .svg-icon-heart {
    fill: var(--c-red);
    color: var(--c-red);
}

.filter-link.active .svg-icon-star {
    fill: var(--c-yellow);
    color: var(--c-yellow);
}

.filter-link.active .svg-icon-comment {
    color: var(--c-blue);
}

/* Picdrop Farbpunkte (10px schlichte Farbfilter) */
.color-filter-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease;
    position: relative;
}

.c-dot:hover {
    transform: scale(1.3);
}

.c-dot.active {
    transform: scale(1.4);
    box-shadow: 0 0 0 1.5px var(--bg-canvas), 0 0 0 3px currentColor;
}

.dot-red { background: var(--c-red); color: var(--c-red); }
.dot-yellow { background: var(--c-yellow); color: var(--c-yellow); }
.dot-green { background: var(--c-green); color: var(--c-green); }
.dot-blue { background: var(--c-blue); color: var(--c-blue); }

.c-dot-reset {
    background: none;
    border: none;
    color: var(--text-dimmed);
    font-size: 13px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.c-dot-reset:hover {
    color: var(--text-main);
}

/* Subtoolbar Rechts: Suche, Sortierung, Raster */
.compact-search {
    position: relative;
    display: flex;
    align-items: center;
}

.compact-search svg {
    position: absolute;
    left: 7px;
    color: var(--text-dimmed);
    pointer-events: none;
}

.compact-search input {
    height: 26px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: 3px;
    padding: 0 20px 0 24px;
    font-size: 11.5px;
    font-family: inherit;
    color: var(--text-main);
    width: 110px;
    transition: width 0.15s ease, border-color 0.15s ease;
}

.compact-search input:focus {
    outline: none;
    width: 160px;
    border-color: var(--border-line-hover);
    background: var(--bg-surface);
}

.search-clear-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-dimmed);
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.sort-select-box select {
    height: 26px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: 3px;
    padding: 0 8px;
    font-size: 11.5px;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
}

.sort-select-box select:focus {
    outline: none;
    color: var(--text-main);
    border-color: var(--border-line-hover);
}

/* Ansichts-Umschalter (Original vs. Kachel) */
.view-mode-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-line);
    border-radius: 3px;
    overflow: hidden;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-dimmed);
    font-size: 11.5px;
    font-family: inherit;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.view-btn:hover {
    color: var(--text-muted);
}

.view-btn.active {
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 500;
}

/* Raster Größen-Stepper (S / M / L) */
.grid-size-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-line);
    border-radius: 3px;
    overflow: hidden;
}

.size-btn {
    background: transparent;
    border: none;
    color: var(--text-dimmed);
    font-size: 11px;
    font-family: inherit;
    padding: 3px 7px;
    cursor: pointer;
}

.size-btn:hover {
    color: var(--text-muted);
}

.size-btn.active {
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
}

/* Culling Bar */
.culling-bar {
    background: #1f1b13;
    border-bottom: 1px solid #3d3118;
    color: #fef3c7;
    padding: 6px 24px;
    font-size: 12px;
}

.culling-bar-content {
    max-width: 1840px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.culling-title {
    font-weight: 600;
}

.culling-dismiss {
    background: none;
    border: none;
    color: #fef3c7;
    font-size: 16px;
    cursor: pointer;
    margin-left: auto;
}

/* =============================================================================
   3. DAS ECHTE PICDROP-GRID (FOTOS IM MITTELPUNKT, METADATEN DARUNTER)
   ============================================================================= */
.gallery-viewport {
    max-width: 1840px;
    margin: 0 auto;
    padding: 28px 24px 100px 24px;
}

/* 1. Masonry / Contain Grid (Original Seitenverhältnis, niemals beschnitten) */
.picdrop-grid.grid-masonry {
    column-gap: 28px;
}

.picdrop-grid.grid-masonry.grid-sm { column-count: 5; }
.picdrop-grid.grid-masonry.grid-md { column-count: 4; }
.picdrop-grid.grid-masonry.grid-lg { column-count: 3; }

@media (max-width: 1400px) {
    .picdrop-grid.grid-masonry.grid-sm { column-count: 4; }
    .picdrop-grid.grid-masonry.grid-md { column-count: 3; }
    .picdrop-grid.grid-masonry.grid-lg { column-count: 2; }
}
@media (max-width: 900px) {
    .picdrop-grid.grid-masonry.grid-sm { column-count: 3; }
    .picdrop-grid.grid-masonry.grid-md { column-count: 2; }
    .picdrop-grid.grid-masonry.grid-lg { column-count: 1; }
}
@media (max-width: 540px) {
    .picdrop-grid.grid-masonry { column-count: 1 !important; }
}

.picdrop-grid.grid-masonry .picdrop-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

/* 2. Square Grid (Kachel-Ansicht) */
.picdrop-grid.grid-square {
    display: grid;
    gap: 24px;
}

.picdrop-grid.grid-square.grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.picdrop-grid.grid-square.grid-md { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.picdrop-grid.grid-square.grid-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.picdrop-grid.grid-square .item-image-wrapper {
    aspect-ratio: 1 / 1;
}

.picdrop-grid.grid-square .item-image {
    height: 100%;
}

/* Picdrop Foto-Element: Kein Kasten, kein Rahmen, kein Schatten! */
.picdrop-item {
    position: relative;
    cursor: pointer;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 1px;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 1px;
    transition: opacity 0.15s ease;
}

/* Bei aktiver Farbmarkierung: hauchdünne dezente 1px Kontur */
.picdrop-item.color-red .item-image-wrapper { box-shadow: 0 0 0 1px var(--c-red); }
.picdrop-item.color-yellow .item-image-wrapper { box-shadow: 0 0 0 1px var(--c-yellow); }
.picdrop-item.color-green .item-image-wrapper { box-shadow: 0 0 0 1px var(--c-green); }
.picdrop-item.color-blue .item-image-wrapper { box-shadow: 0 0 0 1px var(--c-blue); }

/* =============================================================================
   PICDROP METADATEN-ZEILE (UNTER DEM BILD!)
   ============================================================================= */
.item-meta-row {
    padding: 7px 2px 2px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.item-filename {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Die Werkzeuge rechts neben dem Dateinamen */
.item-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.25;
    transition: opacity 0.12s ease;
}

/* Wenn das Bild gehovert wird: Werkzeuge voll sichtbar */
.picdrop-item:hover .item-tools {
    opacity: 1;
}

/* Wenn ein Bild markiert ist: Werkzeuge bleiben dauerhaft sichtbar */
.picdrop-item.has-flag .item-tools {
    opacity: 1;
}

.tool-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.1s ease, transform 0.1s ease;
}

.tool-action:hover {
    color: var(--text-main);
    transform: scale(1.15);
}

/* Farbmarkierung Dot unter Bild */
.tool-color-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--text-muted);
    cursor: pointer;
}

.tool-color-dot.active.dot-red { background: var(--c-red); border-color: var(--c-red); }
.tool-color-dot.active.dot-yellow { background: var(--c-yellow); border-color: var(--c-yellow); }
.tool-color-dot.active.dot-green { background: var(--c-green); border-color: var(--c-green); }
.tool-color-dot.active.dot-blue { background: var(--c-blue); border-color: var(--c-blue); }

/* Herz Icon unter Bild */
.tool-fav.active {
    color: var(--c-red);
}

.tool-fav.active svg {
    fill: var(--c-red);
    stroke: var(--c-red);
}

/* Sterne unter Bild */
.tool-stars-indicator {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-yellow);
    display: none;
}

.tool-stars-indicator.active {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Kommentar Icon unter Bild */
.tool-comment.active {
    color: var(--c-blue);
}

/* =============================================================================
   4. DEZENTE FLOATING ACTION BAR
   ============================================================================= */
.picdrop-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 90;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.picdrop-floating-bar.hidden-fab {
    transform: translateX(-50%) translateY(60px);
    opacity: 0;
    pointer-events: none;
}

.floating-bar-inner {
    background: var(--bg-surface);
    border: 1px solid var(--border-line-hover);
    border-radius: 4px;
    padding: 6px 8px 6px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.floating-stats {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.floating-stats strong {
    color: var(--text-main);
}

.fab-sep {
    color: var(--border-line);
}

.floating-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================================================
   5. DIE ECHTE PICDROP-LIGHTBOX (MIT SEITLICHER KOMMENTAR-LEISTE)
   ============================================================================= */
.picdrop-lightbox {
    position: fixed;
    inset: 0;
    background: #111111;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.picdrop-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* 44px Kopfzeile */
.lightbox-header {
    height: 44px;
    padding: 0 20px;
    background: #161616;
    border-bottom: 1px solid #222222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.lb-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #e5e5e5;
}

.lb-index {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.lb-hsep {
    color: #333333;
}

.lb-filename {
    font-weight: 500;
}

.lb-subfolder-tag {
    font-size: 11px;
    color: var(--text-dimmed);
    margin-left: 4px;
}

.lb-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-tool-sep {
    width: 1px;
    height: 16px;
    background: #2a2a2a;
}

/* Lightbox Sterne (1..5) */
.lb-stars-group {
    display: flex;
    align-items: center;
    gap: 1px;
}

.lb-star-btn {
    background: none;
    border: none;
    color: #444444;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.1s ease;
}

.lb-star-btn svg {
    stroke: currentColor;
    fill: none;
}

.lb-star-btn:hover,
.lb-star-btn.active {
    color: var(--c-yellow);
}

.lb-star-btn.active svg {
    fill: var(--c-yellow);
}

/* Lightbox Farbpunkte */
.lb-color-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-color-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.lb-color-btn:hover {
    transform: scale(1.3);
}

.lb-color-btn.active {
    transform: scale(1.35);
    box-shadow: 0 0 0 1.5px #161616, 0 0 0 3px currentColor;
}

.lb-color-reset {
    background: none;
    border: none;
    color: #555555;
    font-size: 13px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.lb-color-reset:hover {
    color: #e5e5e5;
}

.lb-action-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #cccccc;
    font-size: 11.5px;
    font-family: inherit;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
}

.lb-action-btn:hover {
    border-color: #444;
    color: #fff;
    background: #222;
}

.lb-fav-btn.active {
    border-color: var(--c-red);
    color: var(--c-red);
}

.lb-fav-btn.active .svg-heart {
    fill: var(--c-red);
    stroke: var(--c-red);
}

.lb-close-btn {
    background: none;
    border: none;
    color: #777777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.1s ease;
}

.lb-close-btn:hover {
    color: #ffffff;
}

/* Lightbox Body (Foto + rechte Kommentar-Leiste) */
.lightbox-body {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.lightbox-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    user-select: none;
}

.lightbox-viewport {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-img {
    max-width: 90vw;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 0;
    transition: opacity 0.15s ease;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    background: rgba(22, 22, 22, 0.4);
    border: 1px solid #262626;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.12s ease;
    z-index: 10;
}

.lb-arrow:hover {
    background: rgba(22, 22, 22, 0.9);
    color: #ffffff;
    border-color: #444444;
}

.lb-arrow-prev { left: 16px; }
.lb-arrow-next { right: 16px; }

/* Subtile Tastatur-Hilfsleiste ganz unten */
.lightbox-keys-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #555555;
    pointer-events: none;
}

kbd {
    background: #1c1c1c;
    border: 1px solid #2c2c2c;
    border-radius: 2px;
    padding: 1px 4px;
    font-size: 10px;
    color: #999999;
}

/* Picdrop Kommentar-Seitenleiste (280px) */
.lightbox-sidebar {
    width: 280px;
    background: #161616;
    border-left: 1px solid #242424;
    display: flex;
    flex-direction: column;
    z-index: 20;
    animation: slideSidebar 0.18s ease-out;
}

@keyframes slideSidebar {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.sidebar-header {
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid #222222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cccccc;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-close-btn:hover {
    color: #fff;
}

.sidebar-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-info {
    font-size: 11.5px;
    color: #666666;
    line-height: 1.4;
}

.sidebar-empty-state {
    font-size: 12px;
    color: #555555;
    font-style: italic;
    padding: 8px 0;
}

.sidebar-saved-comment {
    background: #1e1e1e;
    border: 1px solid #2b2b2b;
    border-left: 3px solid var(--c-blue);
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 12.5px;
    color: #ffffff;
    line-height: 1.45;
}

.sidebar-form label {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #888888;
    margin-bottom: 6px;
}

.sidebar-form textarea {
    width: 100%;
    background: #111111;
    border: 1px solid #2b2b2b;
    border-radius: 3px;
    color: #e5e5e5;
    padding: 8px 10px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
}

.sidebar-form textarea:focus {
    outline: none;
    border-color: #555555;
}

.sidebar-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* =============================================================================
   6. REDUZIERTE STUDIO MODALS (DOWNLOAD, KOMMENTAR, SUBMIT)
   ============================================================================= */
.studio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.studio-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.studio-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-line-hover);
    border-radius: 4px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.studio-modal.modal-compact {
    max-width: 380px;
}

.modal-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-subheading {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-x {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.modal-x:hover {
    color: var(--text-main);
}

.modal-content {
    padding: 18px;
}

.modal-actions {
    padding: 12px 18px;
    border-top: 1px solid var(--border-line);
    background: var(--bg-canvas);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Formularelemente in Modals */
.form-row {
    margin-bottom: 14px;
}

.form-caption {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-row input[type="text"],
.form-row textarea {
    width: 100%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    border-radius: 3px;
    color: var(--text-main);
    padding: 7px 10px;
    font-size: 12.5px;
    font-family: inherit;
}

.form-row input[type="text"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--border-line-hover);
}

/* Radio-Gruppen im Download Modal */
.flat-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flat-radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11.5px;
    cursor: pointer;
}

.flat-radio:has(input:checked) {
    border-color: var(--text-main);
    color: var(--text-main);
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    border-radius: 3px;
    cursor: pointer;
}

.quality-item:has(input:checked) {
    border-color: var(--text-main);
}

.quality-item input[type="radio"] {
    margin-top: 2px;
}

.quality-text {
    flex: 1;
}

.q-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.q-tag {
    font-size: 10px;
    color: var(--text-muted);
    border: 1px solid var(--border-line);
    padding: 0 4px;
    border-radius: 2px;
}

.q-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ZIP Progress */
.zip-progress-box {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid var(--border-line);
    border-radius: 3px;
}

.zip-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.zip-track {
    width: 100%;
    height: 4px;
    background: var(--border-line);
    border-radius: 2px;
    overflow: hidden;
}

.zip-bar {
    height: 100%;
    background: var(--text-main);
    transition: width 0.15s ease;
}

/* Submit Modal Summary Strip */
.submit-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-line);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.submit-summary-strip strong {
    color: var(--text-main);
}

.sub-sep {
    color: var(--border-line);
}

/* =============================================================================
   7. MINIMALISTISCHES PIN OVERLAY (STUDIO LOOK)
   ========================================================================= */
.pin-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-canvas);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pin-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pin-panel {
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.pin-photographer {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.pin-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}

.pin-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pin-field {
    width: 44px;
    height: 52px;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 3px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    font-family: inherit;
}

.pin-field:focus {
    outline: none;
    border-color: var(--text-main);
}

.pin-error-text {
    font-size: 11px;
    color: var(--c-red);
    height: 16px;
    margin-bottom: 10px;
    opacity: 0;
}

.pin-error-text.show {
    opacity: 1;
}

.btn-primary-studio {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 3px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    padding: 0 16px;
    height: 32px;
    cursor: pointer;
    transition: opacity 0.12s ease;
}

.btn-primary-studio:hover {
    opacity: 0.9;
}

.btn-block {
    width: 100%;
}

.pin-footer-info {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-line);
    font-size: 11px;
    color: var(--text-dimmed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--text-main);
}

/* Leer-Zustand */
.empty-notice {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-notice p {
    font-size: 13px;
    margin-bottom: 12px;
}

/* Toast */
.studio-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.studio-toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-line-hover);
    border-radius: 3px;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text-main);
    pointer-events: auto;
    animation: toastFade 0.2s ease;
}

@keyframes toastFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   8. ULTRA-DEZENTER STUDIO-FOOTER MIT LOGIN-LINK
   ============================================================================= */
.picdrop-footer {
    padding: 56px 24px 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--text-dimmed);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 60px;
}

.footer-copy {
    color: var(--text-dimmed);
    letter-spacing: 0.02em;
}

.footer-sep {
    color: var(--border-line);
}

.footer-admin-link {
    color: var(--text-dimmed);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-admin-link:hover {
    color: var(--text-muted);
    text-decoration: underline;
}

.tool-delete {
    color: var(--text-dimmed);
    transition: color 0.12s ease;
}

.tool-delete:hover {
    color: #ef4444 !important;
}

.lb-btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.lb-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    border-color: #ef4444;
}

.hidden {
    display: none !important;
}
