/* ====================================
   ZIKA - UPLOAD PAGE STYLES
   IMPORTANT: Chargé en dernier pour surcharger les styles globaux
   Version 3 - Fix pour PC
   ==================================== */

/* Force l'application des styles sur toute la page upload */
#main-content .upload-page-container * {
    box-sizing: border-box;
}

/* S'assurer que le main-content a le bon padding pour la page upload */
#main-content .upload-page-container {
    /* Le padding est géré par le container lui-même */
}

/* Page Container - Styles avec haute spécificité pour PC */
body #main-content .upload-page-container,
#main-content .upload-page-container,
.upload-page-container {
    max-width: 900px !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
}

.upload-page-header {
    margin-bottom: 2rem !important;
    width: 100% !important;
}

.upload-page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 0.5rem 0 !important;
    background: linear-gradient(135deg, #00ff00, #00cc00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: block !important;
}

.upload-page-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    display: block !important;
}

/* Competition Banner */
body #main-content .competition-banner,
#main-content .competition-banner,
.upload-page-container .competition-banner,
.competition-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(102, 126, 234, 0.15)) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.competition-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #667eea);
}

.competition-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.competition-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.competition-banner-content {
    flex: 1;
}

.competition-banner-title {
    color: #FFD700;
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.competition-banner-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.competition-banner-prizes {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.competition-banner-prizes-label {
    color: #FFD700;
    font-weight: 700;
    font-size: 1rem;
}

.competition-banner-prizes-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

/* Upload Form - Styles spécifiques avec !important pour surcharger */
body #main-content .upload-form,
#main-content .upload-form,
.upload-page-container .upload-form,
.upload-form {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.upload-form .form-group {
    margin-bottom: 2rem !important;
    width: 100%;
    box-sizing: border-box;
}

.upload-form .form-label {
    display: block !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    font-size: 1rem !important;
}

.upload-form .form-input {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.upload-form .form-input:focus {
    outline: none !important;
    border-color: #00ff00 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(0, 255, 0, 0.1) !important;
}

.upload-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    min-height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.file-upload-area:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transform: translateY(-2px);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.upload-placeholder svg {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.file-upload-area:hover .upload-placeholder svg {
    color: #00ff00;
}

.upload-placeholder p {
    margin: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.upload-placeholder span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Upload Preview */
.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.upload-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.audio-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.audio-file-info svg {
    color: #00ff00;
    flex-shrink: 0;
}

.audio-file-info div {
    text-align: left;
    flex: 1;
}

.audio-file-info p {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.audio-file-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: #ff0033;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 0, 51, 0.4);
    z-index: 10;
}

.remove-file:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.6);
}

/* Upload Status */
.upload-status-container {
    background: rgba(0, 255, 0, 0.05) !important;
    border: 1px solid rgba(0, 255, 0, 0.2) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.upload-status-title {
    color: #00ff00;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.upload-status-item {
    margin-bottom: 1.5rem;
}

.upload-status-item:last-child {
    margin-bottom: 0;
}

.upload-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.upload-status-label {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.upload-status-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.upload-progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.upload-status-hint {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* Form Actions */
.upload-form .form-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.upload-form .btn-primary,
.upload-form .btn-secondary {
    padding: 1rem 2.5rem !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.upload-form .btn-primary {
    background: linear-gradient(135deg, #00ff00, #00cc00) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3) !important;
}

.upload-form .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4) !important;
}

.upload-form .btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.upload-form .btn-secondary {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.upload-form .btn-secondary:hover {
    border-color: #00ff00 !important;
    color: #00ff00 !important;
    background: rgba(0, 255, 0, 0.05) !important;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.upload-progress-label {
    color: #00ff00;
    font-weight: 600;
}

.upload-progress-percent {
    color: #00ff00;
    font-weight: 700;
    font-size: 1.1rem;
}

.upload-progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00dd00);
    transition: width 0.3s ease;
}

/* Form Error */
.form-error {
    color: #ff0033;
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 0, 51, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 51, 0.3);
}

/* Audio File Input */
.upload-form .audio-file-input,
.audio-file-input {
    width: 100% !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.upload-form .audio-file-input:hover,
.audio-file-input:hover {
    border-color: #00ff00 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.upload-form .audio-file-input:focus,
.audio-file-input:focus {
    outline: none !important;
    border-color: #00ff00 !important;
    box-shadow: 0 0 0 4px rgba(0, 255, 0, 0.1) !important;
}

/* Desktop Styles - Assurer que les styles sont bien appliqués sur PC */
@media (min-width: 769px) {
    /* Page Container Desktop */
    body #main-content .upload-page-container,
    #main-content .upload-page-container,
    .upload-page-container {
        max-width: 900px !important;
        margin: 2rem auto !important;
        padding: 0 2rem !important;
        width: 100% !important;
    }
    
    /* Form Desktop */
    body #main-content .upload-form,
    #main-content .upload-form,
    .upload-page-container .upload-form,
    .upload-form {
        padding: 2.5rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 24px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        width: 100% !important;
    }
    
    /* Banner Desktop */
    body #main-content .competition-banner,
    #main-content .competition-banner,
    .upload-page-container .competition-banner,
    .competition-banner {
        padding: 2rem !important;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(102, 126, 234, 0.15)) !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
        border-radius: 20px !important;
    }
    
    .competition-banner-header {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    
    .competition-banner-icon {
        font-size: 3rem !important;
    }
    
    .file-upload-area {
        min-height: 180px !important;
        padding: 2.5rem !important;
    }
    
    .upload-placeholder svg {
        width: 48px !important;
        height: 48px !important;
    }
    
    /* Form Groups Desktop */
    .upload-form .form-group {
        margin-bottom: 2rem !important;
    }
    
    .upload-form .form-input {
        width: 100% !important;
        padding: 1rem 1.25rem !important;
    }
    
    /* Status Container Desktop */
    .upload-status-container {
        padding: 2rem !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .upload-page-container {
        padding: 0 0.5rem;
    }

    .upload-page-title {
        font-size: 2rem;
    }

    .upload-form {
        padding: 1.5rem;
    }

    .competition-banner {
        padding: 1.5rem;
    }

    .competition-banner-header {
        flex-direction: column;
        gap: 1rem;
    }

    .competition-banner-icon {
        font-size: 2.5rem;
    }

    .competition-banner-title {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

