/**
 * Etkinlik Photo Upload Pro Widget - Modern Tasarımlar
 */

.etkinlik-photo-upload-pro {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.upload-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
}

.upload-form {
    position: relative;
}

/* Upload Zone Base */
.upload-zone {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 40px 20px;
    margin-bottom: 25px;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.upload-zone.drag-over {
    border-color: #667eea;
    background: #e6edff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.upload-zone.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.upload-icon {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    text-align: center;
}

.upload-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.upload-zone input[type="file"] {
    display: none;
}

/* Progress Bar */
.upload-progress {
    display: none;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.upload-progress.active {
    display: block;
}

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

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 13px;
    color: #4a5568;
    text-align: center;
}

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

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #e53e3e;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-field label .required {
    color: #e53e3e;
    margin-left: 3px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === STYLE 1: Instagram Story === */
.style-instagram-story .upload-zone {
    border-radius: 20px;
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d62976 100%);
    border: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.style-instagram-story .upload-zone::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 17px;
    z-index: 1;
}

.style-instagram-story .upload-zone > * {
    position: relative;
    z-index: 2;
}

.style-instagram-story .upload-icon {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d62976 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.style-instagram-story .preview-item {
    border-radius: 16px;
    border: 3px solid;
    border-image: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d62976 100%) 1;
}

/* === STYLE 2: Pinterest Grid === */
.style-pinterest-grid .upload-zone {
    background: #e60023;
    border: none;
    color: #ffffff;
    border-radius: 24px;
}

.style-pinterest-grid .upload-icon {
    color: #ffffff;
}

.style-pinterest-grid .upload-text h3,
.style-pinterest-grid .upload-text p {
    color: #ffffff;
}

.style-pinterest-grid .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 10px;
}

.style-pinterest-grid .preview-item {
    border-radius: 16px;
    grid-row-end: span 20;
}

.style-pinterest-grid .preview-item:nth-child(3n+1) {
    grid-row-end: span 25;
}

.style-pinterest-grid .preview-item:nth-child(3n+2) {
    grid-row-end: span 18;
}

/* === STYLE 3: Polaroid Stack === */
.style-polaroid-stack .upload-zone {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.style-polaroid-stack .preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.style-polaroid-stack .preview-item {
    width: 200px;
    height: auto;
    aspect-ratio: auto;
    background: #ffffff;
    padding: 12px;
    padding-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transform: rotate(-3deg);
    transition: all 0.3s ease;
}

.style-polaroid-stack .preview-item:nth-child(even) {
    transform: rotate(3deg);
}

.style-polaroid-stack .preview-item:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

/* === STYLE 4: Modern Card === */
.style-modern-card .upload-zone {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.style-modern-card .upload-zone:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.style-modern-card .upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.style-modern-card .preview-item {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.style-modern-card .preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === STYLE 5: Minimal Box === */
.style-minimal-box .upload-zone {
    background: transparent;
    border: 3px solid #2d3748;
    border-radius: 0;
    min-height: 250px;
}

.style-minimal-box .upload-zone:hover {
    background: #f7fafc;
    border-color: #1a202c;
}

.style-minimal-box .upload-icon {
    color: #2d3748;
    font-size: 48px;
}

.style-minimal-box .upload-text h3 {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.style-minimal-box .preview-item {
    border-radius: 0;
    border: 2px solid #2d3748;
}

/* === STYLE 6: Gradient Wave === */
.style-gradient-wave .upload-zone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.style-gradient-wave .upload-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}

.style-gradient-wave .upload-icon {
    color: #ffffff;
}

.style-gradient-wave .upload-text h3,
.style-gradient-wave .upload-text p {
    color: #ffffff;
}

.style-gradient-wave .preview-item {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* === STYLE 7: Neumorphic === */
.style-neumorphic {
    background: #e0e5ec;
    padding: 30px;
    border-radius: 20px;
}

.style-neumorphic .upload-zone {
    background: #e0e5ec;
    border: none;
    box-shadow:
        9px 9px 16px rgba(163, 177, 198, 0.6),
        -9px -9px 16px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.style-neumorphic .upload-zone:hover {
    box-shadow:
        inset 6px 6px 12px rgba(163, 177, 198, 0.4),
        inset -6px -6px 12px rgba(255, 255, 255, 0.4);
}

.style-neumorphic .form-field input,
.style-neumorphic .form-field textarea {
    background: #e0e5ec;
    border: none;
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.4);
}

.style-neumorphic .submit-button {
    background: #e0e5ec;
    color: #667eea;
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.5);
}

.style-neumorphic .submit-button:hover {
    box-shadow:
        inset 4px 4px 8px rgba(163, 177, 198, 0.4),
        inset -4px -4px 8px rgba(255, 255, 255, 0.4);
}

.style-neumorphic .preview-item {
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.6),
        -6px -6px 12px rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

/* Field Styles */

/* Floating Labels */
.field-style-floating .form-field {
    position: relative;
}

.field-style-floating .form-field label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 15px;
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #ffffff;
    padding: 0 4px;
}

.field-style-floating .form-field input:focus ~ label,
.field-style-floating .form-field input:not(:placeholder-shown) ~ label,
.field-style-floating .form-field textarea:focus ~ label,
.field-style-floating .form-field textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #667eea;
}

/* Material Design */
.field-style-material .form-field input,
.field-style-material .form-field textarea {
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
}

.field-style-material .form-field input:focus,
.field-style-material .form-field textarea:focus {
    border-bottom-color: #667eea;
    box-shadow: none;
}

.field-style-material .form-field label {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Minimal Style */
.field-style-minimal .form-field input,
.field-style-minimal .form-field textarea {
    border: 1px solid #cbd5e0;
    background: #f7fafc;
    padding: 10px 14px;
}

.field-style-minimal .form-field input:focus,
.field-style-minimal .form-field textarea:focus {
    background: #ffffff;
    border-color: #a0aec0;
    box-shadow: none;
}

/* Camera Button */
.camera-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 15px;
    background: #48bb78;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-button:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.camera-button i {
    font-size: 18px;
}

/* Messages */
.upload-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.upload-message.success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
    display: block;
}

.upload-message.error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .upload-zone {
        min-height: 250px;
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-text h3 {
        font-size: 18px;
    }

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

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

    .style-polaroid-stack .preview-item {
        width: 150px;
    }

    .form-fields {
        gap: 15px;
    }

    .submit-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-item {
    animation: fadeInUp 0.4s ease forwards;
}

.preview-item:nth-child(1) { animation-delay: 0.05s; }
.preview-item:nth-child(2) { animation-delay: 0.1s; }
.preview-item:nth-child(3) { animation-delay: 0.15s; }
.preview-item:nth-child(4) { animation-delay: 0.2s; }
.preview-item:nth-child(5) { animation-delay: 0.25s; }
.preview-item:nth-child(6) { animation-delay: 0.3s; }

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-button.loading .loading-spinner {
    display: inline-block;
}
