/* Video Generator Page Styles */

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

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

.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 {
    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-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.preview-price-row label {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    font-weight: 500;
}

.preview-price-input {
    flex: 1;
    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;
}

.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;
}

.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;
}

.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 {
    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 {
    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;
}

.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;
}

.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);
}
