/* Video Generator Page Styles */

/* Step Bar */
.step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--admin-border);
    background: var(--admin-card);
    color: var(--admin-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.step-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.step-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.step-tab.active {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
}

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

.step-tab:not(:disabled):not(.active):hover {
    background: var(--admin-bg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--admin-border);
    color: var(--admin-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-tab.active .step-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.step-divider {
    display: none;
}

/* Step Layout */
.step-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .step-layout {
        grid-template-columns: 1fr;
    }
}

/* Step Navigation Buttons */
.step-nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-continue {
    width: 100%;
}

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

/* Listing Select */
.listing-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card);
    color: var(--admin-text);
    cursor: pointer;
}

.listing-select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

/* Listing Preview */
.listing-preview,
.listing-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.preview-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.preview-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.preview-info {
    margin-bottom: 0.75rem;
}

.preview-title {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
}

.preview-price-input {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    background: transparent;
    transition: all 0.2s;
    width: 100%;
}

.preview-price-input:hover {
    background: white;
    border-color: var(--admin-border);
}

.preview-price-input:focus {
    outline: none;
    background: white;
    border-color: var(--admin-primary);
}

.preview-location {
    font-size: 0.875rem;
    color: var(--admin-text-muted);
}

.preview-audio {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--admin-border);
}

.audio-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #10B981;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.audio-badge.missing {
    background: #F59E0B;
}

/* Description Editor */
.description-editor {
    margin-top: 1rem;
}

.description-editor label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.description-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--admin-text);
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.description-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.description-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Instructions */
.instructions {
    margin: 0 0 1.5rem;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 8px;
    border-left: 3px solid var(--admin-primary);
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    line-height: 1.5;
}

/* Voice Selector */
.voice-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voice-selector label {
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    font-weight: 500;
}

.voice-select {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card);
    color: var(--admin-text);
    cursor: pointer;
}

.voice-select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

/* Audio Controls & Player */
.audio-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--admin-bg);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.audio-player audio {
    width: 100%;
    max-width: 400px;
    height: 54px;
    border-radius: 30px;
}

.audio-player audio::-webkit-media-controls-panel {
    background: var(--admin-card);
}

.audio-player audio::-webkit-media-controls-play-button {
    transform: scale(1.6);
    margin-right: 8px;
}

.audio-status {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--admin-text-muted);
}

.audio-status.error {
    color: var(--admin-danger);
}

.audio-status.success {
    color: #10B981;
}

/* Music Selector */
.music-selector {
    margin-bottom: 1rem;
}

.music-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.music-select-row {
    display: flex;
    gap: 0.5rem;
}

.music-select {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card);
    color: var(--admin-text);
    cursor: pointer;
    min-width: 0;
}

.music-select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.btn-preview {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .music-select-row {
        flex-direction: column;
    }

    .btn-preview {
        width: 100%;
    }
}

/* Volume Selector */
.volume-selector {
    margin-bottom: 1.5rem;
}

.volume-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.volume-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--admin-border);
    outline: none;
    -webkit-appearance: none;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--admin-primary);
    cursor: pointer;
}

.volume-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--admin-primary);
    cursor: pointer;
    border: none;
}

/* Video Controls & Player */
.video-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.video-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--admin-bg);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.video-player video {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    background: #000;
}

.video-player video::-webkit-media-controls-play-button {
    transform: scale(1.6);
    margin-right: 8px;
}

/* Shared Button Styles */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #059669;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-share:hover {
    background: #2563eb;
}

.btn-share:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Status Messages */
.video-status {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--admin-text-muted);
}

.video-status.error {
    color: var(--admin-danger);
}

.video-status.success {
    color: #10B981;
}

.video-status.warning {
    color: #F59E0B;
}

.sync-status {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    background: var(--admin-bg);
    border-radius: 6px;
}

.sync-status.success {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.sync-status.error {
    color: var(--admin-danger);
    background: rgba(239, 68, 68, 0.1);
}

.sync-status.warning {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}
