/* House Cover Labs Specific Styles */

:root {
    --panel-bg: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent: #d25e5e;
    /* Reddish accent for House */
    --accent-hover: #ff7b7b;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --danger: #FF3366;
}

/* Base override to allow full height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* App Header specific */
.app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(210, 94, 94, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(210, 94, 94, 0.3);
}

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

/* Main Layout */
.app-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.panel-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -1rem 0 0 0;
    line-height: 1.4;
}

/* Left Panel */
.controls-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select,
input[type="text"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(210, 94, 94, 0.2);
}

optgroup {
    background: #222;
    color: var(--accent);
    font-weight: 700;
}

optgroup option {
    background: #111;
    color: #fff;
}

.prompt-result-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed var(--panel-border);
}

.prompt-result-container label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

textarea {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    line-height: 1.5;
    width: 100%;
}

textarea:focus {
    outline: none;
}

/* Right Panel */
.canvas-panel {
    justify-content: flex-start;
}

.upload-area {
    border: 2px dashed var(--panel-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(210, 94, 94, 0.05);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.upload-label i {
    font-size: 2.5rem;
    color: var(--accent);
}

.text-tools {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--panel-border);
}

.form-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-inline input[type="text"] {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 700;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid white;
    border-radius: 8px;
}

.style-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--panel-border);
    padding-top: 1rem;
}

/* 1:1 format for Album covers */
.cover-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 4px;
    /* Covers shouldn't have huge border radius like thumbnails */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    display: none;
    /* hidden until image uploaded */
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

/* Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-micro {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, background 0.2s;
}

.btn-micro:hover {
    transform: scale(1.05);
}

.btn-micro.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.export-controls {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.export-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}