/*
 * Yükleme Sayfası Stilleri
 */

.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.upload-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Spinner Animasyonu - İç İçe Geçmiş Yüzükler */
.wedding-spinner {
    position: absolute;
    inset: 0;
    background: rgba(253, 248, 244, 0.9);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.wedding-spinner.active {
    opacity: 1;
    visibility: visible;
}

.rings-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-md);
}

.ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    top: 20px;
}

.ring-1 {
    left: 10px;
    border-color: var(--color-secondary);
    animation: pulse-ring 2s infinite ease-in-out;
}

.ring-2 {
    right: 10px;
    border-color: var(--color-primary);
    animation: pulse-ring 2s infinite ease-in-out 1s;
}

/* Yüzüklerin kesişim noktasını şık göstermek için */
.ring-1::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: var(--color-secondary);
    z-index: 2;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(212, 165, 116, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 165, 116, 0); }
}

.spinner-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    font-weight: 500;
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Drag & Drop Alanı */
.upload-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    background: var(--color-background);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    margin-bottom: var(--space-xl);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-lighter);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.upload-zone:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.upload-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.supported-formats {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.format-badge {
    background: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-tertiary);
    border: 1px solid var(--color-border-light);
}

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

.preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    aspect-ratio: 1;
    animation: scaleIn 0.3s ease-out;
}

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

.preview-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    color: var(--color-text-secondary);
}

.preview-video-icon svg {
    margin-bottom: var(--space-xs);
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-error);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.preview-remove:hover {
    background: var(--color-error);
    color: #fff;
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bars */
.progress-container {
    margin-top: var(--space-md);
    display: none;
}

.progress-item {
    margin-bottom: var(--space-sm);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    margin-bottom: 4px;
    color: var(--color-text-secondary);
}

/* Success State */
.success-state {
    text-align: center;
    padding: var(--space-2xl) 0;
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    animation: scaleIn 0.5s var(--transition-spring);
}

.success-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}
