/* ============================================================================
   SG MEDIACUBE AUDIO SLICER - HIGH CONTRAST MONOCHROME DESIGN SYSTEM
   Created for Prim Pixels | STILLGESTANDEN
   ============================================================================ */

:root {
    --bg-main: #000000;
    --bg-card: #0d0d0f;
    --bg-card-hover: #141418;
    --bg-input: #121215;
    --bg-elevated: #1a1a1f;

    --border-subtle: #3f3f46;
    --border-strong: #71717a;
    --border-bright: #ffffff;

    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;

    --accent-white: #ffffff;
    --accent-black: #000000;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;

    --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.95);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.25);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 65%),
        linear-gradient(180deg, #050505 0%, #000000 100%);
    background-attachment: fixed;
}

.app-container {
    width: 100%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    flex-wrap: wrap;
    gap: 20px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* WHITE LOGO CONTAINER FOR MAXIMUM VISIBILITY */
.brand-logo-wrapper {
    background: #ffffff;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.brand-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

/* INSTRUCTIONS SECTION */
.instructions-section {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 12px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.step-card:hover {
    border-color: var(--border-bright);
    background: #202026;
    transform: translateY(-2px);
}

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-black);
    background: var(--accent-white);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* SLICER CARD */
.slicer-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

/* DROP ZONE */
.drop-zone {
    border: 2.5px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 56px 28px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-elevated);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-white);
    background: #22222a;
    box-shadow: var(--shadow-glow);
}

.drop-icon-wrapper {
    width: 72px;
    height: 72px;
    background: #27272a;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-strong);
}

.drop-icon {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.drop-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.drop-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-white);
    color: var(--accent-black);
    border-color: var(--accent-white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: #27272a;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: #3f3f46;
    border-color: var(--text-primary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #27272a;
    border: 1.5px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.btn-icon:hover {
    background: var(--text-primary);
    color: var(--accent-black);
}

/* EDITOR PANEL */
.editor-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.loaded-file-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.file-icon-box {
    width: 48px;
    height: 48px;
    background: #27272a;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    border: 1px solid var(--border-strong);
}

.file-details {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group select {
    background: var(--bg-input);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-help {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* PREVIEW BOX */
.preview-box {
    background: #000000;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: var(--accent-white);
    color: var(--accent-black);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.preview-filenames {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom Scrollbar */
.preview-filenames::-webkit-scrollbar {
    width: 6px;
}
.preview-filenames::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.preview-filenames::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.preview-item-name {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-item-time {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.btn-sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* ACTION BAR */
.action-bar {
    display: flex;
    justify-content: flex-end;
}

/* PROGRESS BOX */
.progress-box {
    background: #000000;
    border: 2px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #27272a;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-white);
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* FOOTER */
.main-footer {
    margin-top: 10px;
}

.footer-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
}

.privacy-notice i {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2px;
}

.privacy-notice strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.copyright-disclaimer-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
}

.copyright-disclaimer-notice i {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2px;
}

.copyright-disclaimer-notice strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.legal-notice {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.copyright-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.copyright-line strong {
    color: var(--text-primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 840px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px 12px;
    }
    .slicer-card {
        padding: 20px;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .drop-zone {
        padding: 36px 16px;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
