/* UPLOAD PAGE MODERN - STYLE TIKTOK/INSTAGRAM */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --danger: #ef4444;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border: #333333;
}

.upload-page-modern {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-primary);
    padding-bottom: 80px;
}

/* HEADER */
.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 10;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-back:active {
    transform: scale(0.95);
}

.upload-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* CONTAINER */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* DROP ZONE */
.drop-zone {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.drop-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.drop-placeholder h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.drop-placeholder p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.btn-select-file {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-select-file:active {
    transform: scale(0.98);
}

.file-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* VIDEO PREVIEW */
.video-preview {
    width: 100%;
    position: relative;
}

.video-preview video {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
}

.btn-change-video {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* FORM FIELDS */
.upload-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    position: relative;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-field label i {
    color: var(--primary);
}

.form-field input[type="text"],
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CATEGORY PILLS */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-pill {
    position: relative;
    cursor: pointer;
}

.category-pill input {
    position: absolute;
    opacity: 0;
}

.category-pill span {
    display: block;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.category-pill input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* UPLOAD BUTTON */
.btn-upload {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 8px;
}

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

.btn-upload:not(:disabled):active {
    transform: scale(0.98);
}

/* PROGRESS */
.upload-progress {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .drop-zone {
        padding: 30px 15px;
        min-height: 250px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .drop-placeholder h3 {
        font-size: 1.1rem;
    }
}