@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid #2a2a2a;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #a0a0a0;
    font-size: 1.1em;
    font-weight: 300;
}

/* Progress bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #3a3a3a;
}

.progress-step.active .step-number {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step-label {
    font-size: 14px;
    margin-top: 5px;
    color: #666;
    font-weight: 400;
}

.progress-step.active .step-label {
    color: #6366f1;
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #2a2a2a;
    margin: 0 10px;
    align-self: center;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quote-card,
.video-card,
.music-card {
    background: #242424;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-card:hover,
.video-card:hover,
.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #444;
}

.quote-card {
    background: #242424;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e0e0e0;
    font-weight: 400;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #444;
}

.quote-card.selected {
    border: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

.video-card, .music-card {
    background: #242424;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.video-card:hover, .music-card:hover, .quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #444;
}

.video-card.selected,
.music-card.selected,
.quote-card.selected {
    border: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

.video-card h4,
.music-card h4 {
    color: #e0e0e0;
    font-weight: 500;
}

.video-preview {
    width: 100%;
    height: 200px;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.video-preview-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player {
    width: 100%;
    margin-top: 10px;
}

/* Summary */
.summary {
    background: #242424;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.summary-item {
    margin-bottom: 15px;
}

.summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #a0a0a0;
    font-weight: 500;
}

.summary-item p {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    margin: 5px 0 0 0;
    color: #e0e0e0;
}

/* Export Options */
.export-options {
    margin: 30px 0;
    text-align: center;
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

/* Generation Status */
#generation-status {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 4px solid #2a2a2a;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.status-message {
    text-align: center;
    padding: 30px;
    color: #e0e0e0;
}

#status-text {
    color: #a0a0a0;
    font-weight: 300;
}

.result-success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.result-success h3 {
    color: #10b981;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Navigation buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #333;
    border-color: #555;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 18px;
    font-weight: 300;
}

/* Step content */
.step-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .progress-container {
        flex-wrap: wrap;
    }

    .progress-line {
        display: none;
    }

    .navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Error messages */
.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 400;
}
