/* Media Analyzer */

/* ── Layout ───────────────────────────────────────── */
.media-app-wrapper {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 500px;
}

.media-main-layout {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
/* 좌측 dropzone + 우측 report 1:1 균등 분배는
   core/layout.css 의 RFC-V4 P7 글로벌 규칙으로 superseded (DRY) */

/* ── Dropzone ─────────────────────────────────────── */
.pro-dropzone {
    width: 100%; height: 100%;
    border: 3px dashed #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
}

.pro-dropzone:hover  { background: #eff6ff; border-color: #3b82f6; }
.pro-dropzone.dragover { background: #dbeafe; border-color: #3b82f6; transform: scale(0.98); }

.dz-icon { font-size: 4rem; margin-bottom: 15px; filter: drop-shadow(0 10px 15px rgba(59, 130, 246, 0.2)); }
.dz-content h2 { font-size: 1.4rem; }

/* ── File Info ────────────────────────────────────── */
.dz-file-info {
    position: absolute; inset: 10px;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; gap: 15px;
    padding: 20px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 5;
}

.file-icon     { font-size: 2rem; }
.file-details  { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.file-name     { font-weight: 800; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size     { font-size: 0.8rem; color: #64748b; font-weight: 600; }

/* ── Dark Report ──────────────────────────────────── */
.report-body   { font-family: 'JetBrains Mono', 'Monaco', monospace; }

.grid-report   { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.meta-item-card { background: #0f172a; padding: 15px; border-radius: 10px; border: 1px solid #334155; }
.meta-label    { font-size: 10px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 5px; display: block; }
.meta-value    { font-size: 13px; color: #38bdf8; word-break: break-all; font-weight: 600; }

/* ── Loader ───────────────────────────────────────── */
.loading-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 10; border-radius: 20px;
}

.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: media-spin 1s linear infinite;
}

@keyframes media-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1099px) {
    .media-app-wrapper  { height: auto; }
    .media-main-layout  { flex-direction: column; overflow: visible; }
    .pro-dropzone       { min-height: 300px; }
}

@media (max-width: 767px) {
    .media-app-wrapper  { gap: 8px; }
    .grid-report        { grid-template-columns: 1fr; }
}
