/* Etkinlik Gelişmiş Upload Widget - Mobile First CSS */

/* Base Styles - Mobile First */
.etkinlik-advanced-upload {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.upload-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-align: center;
}

.upload-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.5;
}

/* Form Styles */
.advanced-upload-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.half-width {
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Upload Area Styles */
.photo-upload-group {
    margin-bottom: 25px;
}

.upload-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #007cba;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 48px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #007cba;
}

.upload-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.upload-text p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.upload-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #007cba;
    border-radius: 6px;
    background: transparent;
    color: #007cba;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.upload-button .btn:hover {
    background: #007cba;
    color: #fff;
}

.upload-limit {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
}

/* Classic Upload Style */
.classic-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    top: 0;
    left: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px solid #007cba;
    border-radius: 8px;
    background: #007cba;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
}

.file-input-label:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Selected Files Preview */
.selected-files {
    margin-top: 20px;
}

.files-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.file-item {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.file-item:hover {
    transform: translateY(-2px);
}

.file-preview {
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: #f8f9fa;
}

.file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    padding: 8px;
    text-align: center;
}

.file-name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 10px;
    color: #6c757d;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: background 0.2s ease;
}

.remove-file:hover {
    background: #dc3545;
}

/* Progress Bar */
.upload-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.progress-text {
    font-weight: 600;
    color: #007cba;
}

/* File Info Grid */
.file-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

.info-item i {
    color: #007cba;
    width: 16px;
    text-align: center;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: #007cba;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content,
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Upload Result Messages */
.upload-result {
    margin-top: 20px;
}

.success-message {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-weight: 500;
}

.error-message {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-weight: 500;
}

/* reCAPTCHA Styling */
.recaptcha-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recaptcha-warning {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 10px 0;
}

.recaptcha-warning p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recaptcha-placeholder {
    background: #f9f9f9 !important;
    border: 2px dashed #ddd !important;
    padding: 20px !important;
    text-align: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.recaptcha-placeholder:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .etkinlik-advanced-upload {
        padding: 30px;
        max-width: 600px;
    }
    
    .form-row {
        flex-direction: row;
        gap: 20px;
    }
    
    .form-group.half-width {
        width: calc(50% - 10px);
    }
    
    .upload-area {
        padding: 40px 30px;
        min-height: 220px;
    }
    
    .upload-icon {
        font-size: 64px;
    }
    
    .upload-text h4 {
        font-size: 20px;
    }
    
    .files-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .file-item {
        border-radius: 10px;
    }
    
    .file-preview {
        height: 100px;
    }
    
    .g-recaptcha {
        transform: scale(1);
    }
    
    .recaptcha-group {
        padding: 15px 0;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .etkinlik-advanced-upload {
        max-width: 700px;
        padding: 40px;
    }
    
    .upload-title {
        font-size: 28px;
    }
    
    .upload-description {
        font-size: 18px;
    }
    
    .upload-area {
        min-height: 250px;
        padding: 50px 40px;
    }
    
    .files-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .file-preview {
        height: 120px;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.upload-area.drag-over {
    animation: pulse 0.6s ease-in-out;
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .upload-area {
        min-height: 200px;
        padding: 30px 20px;
        border-width: 3px;
    }
    
    .upload-area input[type="file"] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        cursor: pointer !important;
        z-index: 10 !important;
    }
    
    /* Mobil optimize stil için özel ayarlar */
    .etkinlik-upload-mobile_optimized .upload-area {
        min-height: 220px;
        padding: 35px 25px;
        border-style: solid;
        border-color: #007cba;
        background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    }
    
    .etkinlik-upload-mobile_optimized .upload-icon {
        font-size: 56px;
        color: #007cba;
    }
    
    .etkinlik-upload-mobile_optimized .upload-text h4 {
        font-size: 20px;
        color: #007cba;
        font-weight: 700;
    }
    
    .etkinlik-upload-mobile_optimized .upload-text p {
        font-size: 16px;
        color: #495057;
    }
    
    .submit-btn {
        min-height: 55px;
        font-size: 18px;
    }
    
    .form-group input {
        padding: 15px 16px;
        font-size: 16px;
    }
    
    .file-input-label {
        min-height: 55px;
        font-size: 16px;
    }
    
    /* Mobil reCAPTCHA ayarları */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .recaptcha-group {
        padding: 15px 0;
        overflow-x: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .etkinlik-advanced-upload {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .upload-title {
        color: #ecf0f1;
    }
    
    .upload-description {
        color: #bdc3c7;
    }
    
    .form-group input {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .upload-area {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .file-info {
        background: #34495e;
    }
    
    .file-item {
        background: #34495e;
        border-color: #4a5f7a;
    }
} 