/* MicCheck Card Editor Styles - Matching Display Card Aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #111827; /* gray-900 */
    color: #f3f4f6; /* gray-100 */
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    background-color: #1f2937; /* gray-800 */
    border-bottom: 1px solid #374151; /* gray-700 */
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.header p {
    color: #9ca3af; /* gray-400 */
    font-size: 0.875rem;
}

/* Main Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

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

/* Card Preview Section */
.preview-section {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid #374151;
}

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

.preview-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.slot-toggle {
    display: flex;
    gap: 0.5rem;
}

.slot-toggle button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background-color: #374151;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-toggle button.active {
    background-color: #3b82f6; /* blue-500 */
    border-color: #3b82f6;
    color: #ffffff;
}

.slot-toggle button:hover:not(.active) {
    background-color: #4b5563;
}

/* Card Preview Container */
.card-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background-color: #111827;
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
}

.card-preview {
    position: relative;
    background-color: #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border: 2px solid #374151;
    transition: width 0.3s ease, height 0.3s ease;
}

.card-preview.slot-6 {
    width: 308px;
    height: 960px;
}

.card-preview.slot-8 {
    width: 229px;
    height: 960px;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: move;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    transition: transform 0.1s ease-out;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

/* Badges */
.mic-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mic-type-badge.wireless {
    background-color: #10b981; /* green-500 */
    color: #ffffff;
}

.mic-type-badge.wired {
    background-color: #f59e0b; /* amber-500 */
    color: #ffffff;
}

.mic-id-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background-color: rgba(31, 41, 55, 0.9); /* gray-800 with opacity */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Vertical Singer Name */
.singer-name-vertical {
    position: absolute;
    left: 16px;
    bottom: 0;
    height: 60%;
    display: flex;
    align-items: flex-end;
    z-index: 10;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-size: clamp(1.5rem, 8vh, 4rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1.2;
    padding-bottom: 1rem;
}

/* Controls Section */
.controls-section {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db; /* gray-300 */
}

.control-group input[type="text"],
.control-group select {
    width: 100%;
    padding: 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background-color: #111827;
    color: #f3f4f6;
    font-size: 0.875rem;
}

.control-group input[type="text"]:focus,
.control-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* File Upload */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #374151;
    border-radius: 0.5rem;
    background-color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

.file-upload-text strong {
    color: #3b82f6;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zoom-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zoom-slider input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #374151;
    outline: none;
}

.zoom-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

.zoom-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}

.zoom-value {
    min-width: 60px;
    text-align: right;
    font-size: 0.875rem;
    color: #9ca3af;
}

.zoom-buttons {
    display: flex;
    gap: 0.5rem;
}

.zoom-buttons button {
    flex: 1;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background-color: #374151;
    color: #f3f4f6;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-buttons button:hover {
    background-color: #4b5563;
}

/* Export Buttons */
.export-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.export-button.primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.export-button.primary:hover {
    background-color: #2563eb;
}

.export-button.secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.export-button.secondary:hover {
    background-color: #4b5563;
}

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

/* Divider */
.divider {
    height: 1px;
    background-color: #374151;
    margin: 0.5rem 0;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.alert.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #fcd34d;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #374151;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
