/* Audio Cut-Up Generator Styles */

@import url('/style.css');

body {
    background: #000;
    color: #ddd;
    font-family: 'Special Elite', Georgia, serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff6600;
}

header h1 {
    color: #ff6600;
    font-family: 'VeryVeryPunk', Georgia, serif;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0 0 20px 0;
    font-style: italic;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff;
}

.audiocut-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    background: #111;
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #ff6600;
    background: #1a1a1a;
}

.upload-area.dragover {
    border-color: #ff6600;
    background: #1a1a1a;
    transform: scale(1.02);
}

.upload-content .upload-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.upload-content h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.upload-content p {
    color: #999;
    margin: 0;
}

.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: #ff6600;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #ff6600;
    font-weight: bold;
    margin: 0;
}

/* File Info */
.file-info {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.file-info h4 {
    color: #ff6600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.audio-details span {
    background: #000;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #ddd;
}

.preview-btn {
    background: #333;
    border: 1px solid #555;
    color: #ddd;
    font-family: 'Special Elite', Georgia, serif;
    font-size: 0.9em;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: #000;
}

.preview-btn.playing {
    background: #0f0;
    border-color: #0f0;
    color: #000;
}

/* Secondary Upload */
.secondary-upload {
    margin-top: 20px;
    padding: 20px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 5px;
}

.secondary-upload h4 {
    color: #ff6600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-area.secondary {
    padding: 20px;
    font-size: 0.9em;
}

/* Preset Buttons - Reuse from text cut-up */
.presets {
    margin-bottom: 30px;
}

.presets h2 {
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    background: #333;
    border: 2px solid #555;
    color: #ddd;
    padding: 12px 20px;
    font-family: 'Special Elite', Georgia, serif;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.preset-btn:hover {
    background: #ff6600;
    border-color: #ff6600;
    color: #000;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: #ff6600;
    border-color: #ff6600;
    color: #000;
}

/* Controls - Reuse from text cut-up */
.controls {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.controls h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

select {
    width: 100%;
    background: #000;
    border: 1px solid #555;
    color: #ddd;
    font-family: 'Special Elite', Georgia, serif;
    font-size: 14px;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #ff6600;
}

input[type="range"] {
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: 2px solid #000;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: 2px solid #000;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    color: #ddd;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1em;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #ff6600;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin-bottom: 30px;
}

.generate-btn {
    background: #ff6600;
    border: 3px solid #ff6600;
    color: #000;
    font-family: 'Special Elite', Georgia, serif;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 40px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.generate-btn:hover {
    background: #000;
    color: #ff6600;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.processing-info {
    margin-top: 20px;
    color: #999;
    font-size: 0.9em;
}

.processing-steps {
    margin-top: 10px;
    font-size: 0.8em;
    color: #666;
}

/* Output Section */
.output-section {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.output-header h2 {
    color: #fff;
    margin: 0;
}

.output-controls {
    display: flex;
    gap: 10px;
}

.download-btn {
    background: #0f0;
    border: 1px solid #0f0;
    color: #000;
    font-family: 'Special Elite', Georgia, serif;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #000;
    color: #0f0;
}

.result-info {
    margin-bottom: 20px;
}

.result-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.result-details span {
    background: #000;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #ddd;
}

/* Waveform */
.waveform-container {
    background: #000;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 10px;
    text-align: center;
}

#waveform-display {
    width: 100%;
    height: 100px;
    background: #000;
    border-radius: 3px;
    margin-bottom: 5px;
}

#spectrogram-display {
    width: 100%;
    height: 100px;
    background: #000;
    border-radius: 3px;
}

.waveform-info {
    margin-top: 10px;
    font-size: 0.8em;
    color: #666;
}

/* Info Section */
.info {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.info h3 {
    color: #ff6600;
    margin-top: 0;
    margin-bottom: 15px;
}

.info p {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.format-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.format-info h4 {
    color: #ff6600;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.format-info ul {
    margin: 0;
    padding-left: 20px;
    color: #ccc;
}

.format-info li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .generate-btn {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .output-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .output-controls {
        justify-content: center;
    }
    
    .audio-details, .result-details {
        flex-direction: column;
        gap: 10px;
    }
}