/* ── Playground hero wrapper ──────────────────────────────── */
.playground-hero {
    background: url(../img/hose.jpg) no-repeat top center;
    background-size: cover;
    padding: 50px 0 40px;
    color: #f8f8f8;
}

.playground-hero h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 6px;
}

.playground-subtitle {
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    margin-bottom: 24px;
    font-size: 14px;
}

/* ── Dropzone area ────────────────────────────────────────── */
#playground-dropzone {
    border: 2px dashed #aaa;
    border-radius: 6px;
    background: rgba(255,255,255,0.92);
    min-height: 120px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

#playground-dropzone:hover,
#playground-dropzone.dz-drag-hover {
    border-color: #337ab7;
    background: rgba(255,255,255,0.98);
}

#playground-dropzone .dz-message {
    color: #888;
    font-size: 15px;
    margin: 10px 0;
}

#playground-dropzone .dz-preview {
    margin: 8px;
    display: inline-block;
    vertical-align: top;
}

#playground-dropzone .dz-preview .dz-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    width: 72px;
    height: 72px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#playground-dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#playground-dropzone .dz-preview .dz-remove {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    text-decoration: none;
    margin-top: 2px;
    cursor: pointer;
}

#playground-dropzone .dz-preview .dz-remove:hover {
    color: #c00;
}

/* Spinner overlay shown while a file is being processed */
.dz-processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
}

/* Error overlay on failed thumbnails */
.dz-error-overlay {
    position: absolute;
    inset: 0;
    background: rgba(192, 0, 0, 0.75);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    text-align: center;
    padding: 4px;
    z-index: 10;
}

/* ── Quota bar ────────────────────────────────────────────── */
#quota-display {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 8px;
    min-height: 18px;
}

#quota-display.quota-low {
    color: #ffcccc;
}

/* ── Result columns ───────────────────────────────────────── */
.result-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.result-col {
    background: rgba(255,255,255,0.92);
    border-radius: 6px;
    padding: 12px;
    min-height: 100px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.result-col-header {
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
    text-shadow: none;
}

.result-col-header .badge {
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    line-height: 1.4;
    margin-left: 6px;
    font-weight: normal;
}

.result-col-neutral .result-col-header { color: #3a8a3a; }
.result-col-neutral .badge { background: #dff0d8; color: #3a8a3a; }

.result-col-nsfw .result-col-header { color: #c07700; }
.result-col-nsfw .badge { background: #fcf8e3; color: #c07700; }

.result-col-porn .result-col-header { color: #c00; }
.result-col-porn .badge { background: #f2dede; color: #c00; }

.result-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.result-thumb {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: opacity 0.15s, box-shadow 0.15s;
}

.result-thumb:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.result-empty {
    color: #aaa;
    font-size: 11px;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    text-shadow: none;
}

/* ── Lightbox ─────────────────────────────────────────────── */
#img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#img-lightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

#img-lightbox .lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

/* Responsive: stack columns on small screens */
@media (max-width: 600px) {
    .result-columns {
        grid-template-columns: 1fr;
    }
}
