/* Admin Panel Styles */

.admin-section {
    padding: 12rem 0 6rem;
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: 4rem;
}

.admin-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.upload-container {
    max-width: 900px;
    margin: 0 auto;
}

.upload-section,
.form-section {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.upload-section h2,
.form-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.help-text {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-subtle);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dropzone:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
}

.dropzone.dragover {
    border-color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.dropzone svg {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.dropzone p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.file-types {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.dropzone input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-dark-3);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-preview:hover {
    background: #f44336;
    transform: scale(1.1);
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.featured-checkbox {
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.featured-checkbox span {
    font-size: 1.05rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
}

.submit-btn {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
}

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

/* Upload Progress */
.upload-progress {
    margin-top: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-dark-3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--accent-orange) 100%);
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-section {
        padding: 10rem 0 4rem;
    }

    .upload-section,
    .form-section {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

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