/* Export Page Styles */

/* Export Section */
.export-section {
    margin-bottom: 3rem;
}

.export-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Format Cards */
.format-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.format-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.format-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.format-card.premium {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.premium-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.format-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.format-card h4 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
}

.format-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.format-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.format-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Export Options */
.export-options {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.export-options h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.option-group label {
    color: var(--text-light);
    font-weight: 500;
}

.option-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 1rem;
}

.option-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Warning Box */
.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.warning-box h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Audiobook Modal Styles */
.audiobook-modal-content {
    max-width: 700px;
    width: 90%;
}

.voice-samples-section,
.audiobook-status-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.voice-samples-section h3,
.audiobook-status-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.status-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    animation: pulse 2s infinite;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Progress Container */
.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    animation: progress 60s linear;
}

@keyframes progress {
    to {
        width: 100%;
    }
}

.progress-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Audio Player */
.audio-player {
    margin-top: 1rem;
}

.audio-player audio {
    width: 100%;
}

/* Audiobook Steps */
.audiobook-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.step h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
}

.step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Messages */
#audiobook-messages {
    margin: 1rem 0;
}

#audiobook-messages .message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#audiobook-messages .message.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#audiobook-messages .message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

#audiobook-messages .message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#audiobook-messages .message.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.warning a.link {
    color: #3b82f6;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Modal Action Buttons */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-actions .button.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .format-cards {
        grid-template-columns: 1fr;
    }
    
    .audiobook-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}