/* AudioFlow Visualizer Generator Styles */

/* Color Variables */
:root {
    --primary: #7c3aed;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark-primary: #0f0f0f;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #9ca3af;
    --border-color: rgba(124, 58, 237, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

/* Container Styles */
.editor-container {
    padding-top: 100px;
    padding-bottom: 50px;
}

.editor-header {
            background: var(--gradient-main);
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
.section-divider {
            text-align: center;
            position: relative;
            margin: 40px 0 30px;
        }

        .section-title {
            background: var(--gradient-main);
            color: white;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.2rem;
            font-weight: 600;
            display: inline-block;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
            position: relative;
        }

        .section-title::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -200px;
            right: 100%;
            height: 2px;
            background: linear-gradient(to right, transparent, var(--primary));
            transform: translateY(-50%);
        }

        .section-title::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -200px;
            left: 100%;
            height: 2px;
            background: linear-gradient(to left, transparent, var(--primary));
            transform: translateY(-50%);
        }

/* Visualizer Specific Styles */

/* Preview Canvas Container */
.preview-container {
    position: relative;
    background: var(--dark-tertiary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.preview-container canvas {
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.preview-container canvas:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.2);
}

.preview-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Audio Player Styles */
.audio-player-container {
    background: var(--dark-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.audio-player-container audio {
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
}

.audio-info {
    background: rgba(124, 58, 237, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-item .value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Color Input Styles */
.color-input {
    width: 100%;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.color-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Color Presets */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preset-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.preset-btn:hover:before {
    left: 100%;
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.preset-btn.active {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Range Sliders */
.form-range {
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--dark-tertiary);
    outline: none;
    margin: 10px 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.range-value {
    display: inline-block;
    margin-left: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Custom Resolution Inputs */
.custom-resolution {
    background: rgba(124, 58, 237, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-top: 10px;
}

/* Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.effect-item {
    background: rgba(124, 58, 237, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.effect-item:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
}

.effect-item .form-check-input:checked ~ .form-check-label {
    color: var(--primary);
    font-weight: 600;
}

.effect-item .form-range:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Container */
.progress-container {
    background: var(--dark-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

.progress {
    height: 12px;
    background: var(--dark-secondary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.render-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(124, 58, 237, 0.05);
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    text-align: center;
}

.gallery-item {
    background: var(--dark-tertiary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.gallery-item video {
    width: 100%;
    border-radius: 8px;
    background: black;
}

.gallery-item-info {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.gallery-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.gallery-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.gallery-item-actions .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Use Cases Styles */
.use-cases {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.use-case-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateX(5px);
}

.use-case-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.use-case-item h6 {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 600;
}

.use-case-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Feature Cards */
.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    text-align: center;
    margin-bottom: 20px;
}

.feature-icon i {
    padding: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Custom Duration Inputs */
.custom-duration {
    background: rgba(6, 182, 212, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .effects-grid {
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-item {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-item i {
        margin-bottom: 10px;
    }
    
    .render-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-controls {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .editor-panel {
        padding: 15px;
    }
    
    .preview-container {
        padding: 15px;
    }
    
    .audio-info {
        padding: 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Drag and Drop States */
.file-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
}

.file-drop-zone.dragover i {
    color: var(--primary);
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    to { transform: translateY(-10px); }
}

/* Canvas Styles */
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Visualization Preview Overlay */
.preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator.recording {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-indicator.ready {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-indicator.processing {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Pulse Effect */
.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .editor-container {
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .editor-container {
        padding-top: 80px;
        margin: 0 10px;
    }
    
    
    .editor-panel {
        padding: 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .editor-container {
        margin: 0 5px;
    }
    
    .editor-header {
        padding: 15px;
    }
    
    .editor-panel {
        padding: 15px;
    }
}

@media (min-width: 1400px) {
    .editor-container {
        margin: 0 auto;
        max-width: 1400px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin: 0 12px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
