/* ─────────────────────────────────────────────────────────────────────────
   upload.css — Düğün Fotoğraf Yükleme Sayfası
   Tema: Sage & Blush — botanik, zarif, düğün
   ───────────────────────────────────────────────────────────────────────── */

/* ── Değişkenler ─────────────────────────────────────────────────────────── */
:root {
    /* Renk paleti */
    --ivory:           #faf7f2;
    --ivory-50:        #f4f0e8;
    --ivory-100:       #ede5d8;
    --blush:           #c9998f;
    --blush-light:     #e2c0bb;
    --blush-dark:      #a47269;
    --blush-muted:     rgba(201,153,143,.10);
    --sage:            #7d9b8a;
    --sage-light:      #a8c0b2;
    --sage-dark:       #5e7a6a;
    --sage-muted:      rgba(125,155,138,.10);
    --champagne:       #c2a06a;
    --champagne-light: #dfc8a0;
    --champagne-muted: rgba(194,160,106,.15);
    --dark:            #221c15;
    --text-900:        #2c241a;
    --text-600:        #5a4f44;
    --text-400:        #9a8d80;
    --border:          #e4d9ce;
    --border-light:    #ede5db;
    --white:           #ffffff;

    /* Ölçüler */
    --radius:     20px;
    --radius-md:  12px;
    --radius-sm:  8px;
    --shadow-sm:  0 1px 4px rgba(34,28,21,.06), 0 2px 12px rgba(34,28,21,.04);
    --shadow:     0 4px 24px rgba(34,28,21,.08), 0 2px 8px rgba(34,28,21,.04);
    --shadow-lg:  0 12px 48px rgba(34,28,21,.12), 0 4px 16px rgba(34,28,21,.06);
    --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 16px; scroll-behavior: smooth }
body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-weight: 300;
    background: var(--ivory);
    color: var(--text-900);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ── Arka Plan ───────────────────────────────────────────────────────────── */
.bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Yumuşak tekstür katmanı */
.bg-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 15% 10%, rgba(201,153,143,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 85% 85%, rgba(125,155,138,.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(194,160,106,.06) 0%, transparent 60%);
}

/* Botanik süslemeler */
.bg-botanical {
    position: absolute;
    opacity: .55;
}
.bg-botanical--tl {
    top: -40px;
    left: -40px;
    width: 320px;
    transform: rotate(-15deg);
    color: var(--sage-light);
}
.bg-botanical--tr {
    top: -20px;
    right: -60px;
    width: 280px;
    transform: rotate(20deg) scaleX(-1);
    color: var(--champagne-light);
    opacity: .4;
}
.bg-botanical--bl {
    bottom: -50px;
    left: -30px;
    width: 260px;
    transform: rotate(10deg);
    color: var(--blush-light);
    opacity: .35;
}
.bg-botanical--br {
    bottom: -30px;
    right: -40px;
    width: 300px;
    transform: rotate(-20deg) scaleX(-1);
    color: var(--sage-light);
    opacity: .4;
}
.bg-botanical svg { width: 100%; height: auto; display: block }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

/* ── Başlık ──────────────────────────────────────────────────────────────── */
.site-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--champagne-light) 100%);
    border-radius: 50%;
    margin-bottom: 1.1rem;
    color: var(--blush-dark);
    box-shadow: 0 4px 20px var(--blush-muted);
}
.header-emblem svg { display: block; width: 28px; height: 28px }

.couple-names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    font-weight: 300;
    color: var(--text-900);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.wedding-date {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--blush);
    margin-top: 0.4rem;
    letter-spacing: 0.06em;
}

.header-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem auto;
    max-width: 260px;
}
.header-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne-light), transparent);
}
.header-divider-ornament {
    color: var(--champagne);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-divider-ornament svg { display: block; width: 20px; height: 20px }

.tagline {
    font-size: 0.95rem;
    color: var(--text-600);
    line-height: 1.75;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Upload Kartı ────────────────────────────────────────────────────────── */
.upload-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* Kart üst dekoratif çizgi */
.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blush-light), var(--champagne), var(--sage-light));
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Form Başlığı ────────────────────────────────────────────────────────── */
.card-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-400);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.card-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* ── Misafir Bilgileri ───────────────────────────────────────────────────── */
.guest-info { margin-bottom: 1.75rem }

.form-group { margin-bottom: 1rem }
.form-group:last-child { margin-bottom: 0 }

label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .73rem;
    font-weight: 500;
    color: var(--text-600);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}
label svg { display: block; color: var(--blush); flex-shrink: 0 }

input[type="text"],
textarea {
    width: 100%;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 300;
    color: var(--text-900);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    resize: none;
}
input[type="text"]:focus,
textarea:focus {
    border-color: var(--blush-light);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--blush-muted);
}
input::placeholder, textarea::placeholder { color: var(--text-400) }

/* ── Drop Zone ───────────────────────────────────────────────────────────── */
.drop-zone {
    border: 1.5px dashed var(--champagne-light);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    position: relative;
    background: var(--ivory);
    margin-bottom: 1rem;
}
.drop-zone:hover {
    border-color: var(--blush-light);
    background: var(--blush-muted);
}
.drop-zone.drag-over {
    border-color: var(--blush);
    background: var(--blush-muted);
    transform: scale(1.01);
    border-style: solid;
}
.drop-zone:focus-visible {
    outline: 2px solid var(--blush-light);
    outline-offset: 3px;
}

.drop-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto .9rem;
    background: linear-gradient(135deg, var(--blush-muted), var(--sage-muted));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blush);
    transition: transform var(--transition);
}
.drop-zone:hover .drop-icon-wrap { transform: translateY(-2px) scale(1.05) }
.drop-icon-wrap svg { display: block; width: 32px; height: 32px }

.drop-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-900);
    margin-bottom: .3rem;
}
.drop-sub { font-size: .85rem; color: var(--text-400); margin-bottom: .65rem }
.drop-limits {
    font-size: .72rem;
    color: var(--text-400);
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.drop-limit-tag {
    background: var(--ivory-50);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .68rem;
    color: var(--text-600);
    white-space: nowrap;
}

.hidden-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ── Aksiyon Butonları ───────────────────────────────────────────────────── */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .625rem;
    margin-bottom: 1.25rem;
}

/* ── Butonlar ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition),
                box-shadow var(--transition), border-color var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    line-height: 1.4;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; display: block }
.btn:active { transform: scale(.97) }

.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-600);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    border-color: var(--blush-light);
    color: var(--blush-dark);
    background: var(--blush-muted);
}

.btn-sage {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-600);
    box-shadow: var(--shadow-sm);
}
.btn-sage:hover {
    border-color: var(--sage-light);
    color: var(--sage-dark);
    background: var(--sage-muted);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-dark) 100%);
    color: var(--white);
    font-size: .95rem;
    font-weight: 400;
    padding: 1rem 1.5rem;
    box-shadow: 0 6px 24px rgba(201,153,143,.35);
    margin-top: 1.25rem;
    border-radius: 50px;
    letter-spacing: .04em;
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 28px rgba(201,153,143,.45);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    background: linear-gradient(135deg, #d4cdc8 0%, #c4bdb8 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
}

.btn-text { flex: 1; text-align: center }
.btn-icon { display: flex; align-items: center }
.btn-icon svg { width: 18px; height: 18px }

/* ── Önizleme ────────────────────────────────────────────────────────────── */
.preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .6rem;
    margin-bottom: .75rem;
}

.preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ivory-50);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.preview-item .video-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    color: var(--text-400);
    font-size: .62rem;
    text-align: center;
    padding: .5rem;
    background: linear-gradient(160deg, var(--ivory-50), var(--ivory-100));
}
.preview-item .video-placeholder svg { width: 26px; height: 26px; color: var(--sage-light) }

.preview-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(34,28,21,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}
.preview-remove:hover { background: rgba(164,114,105,.85) }
.preview-remove svg { width: 11px; height: 11px; display: block }

.preview-item.oversize {
    outline: 2px solid #e07b3a;
    outline-offset: -2px;
}
.preview-item.oversize::after {
    content: '!';
    position: absolute;
    bottom: 4px; left: 4px;
    width: 18px; height: 18px;
    background: #e07b3a;
    color: #fff;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Dosya Özeti ─────────────────────────────────────────────────────────── */
.file-summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--text-400);
    margin-bottom: .5rem;
    padding: .4rem .6rem;
    background: var(--ivory-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.sep { color: var(--border) }

/* ── Alertlar ────────────────────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .83rem;
    margin-bottom: .75rem;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.alert svg { display: block; flex-shrink: 0; width: 16px; height: 16px; margin-top: .1rem }

.alert-warn {
    background: #fffbf0;
    border: 1px solid #f0d898;
    color: #7a5c00;
}
.alert-warn svg { color: #c9a000 }

.alert-error {
    background: #fff5f5;
    border: 1px solid #f0c0b8;
    color: #8a2a20;
}
.alert-error svg { color: #c44030 }

.alert-success {
    background: #f4faf7;
    border: 1px solid #a0d4b8;
    color: #1a5e40;
}
.alert-success svg { color: #2e9960 }

/* ── İlerleme Çubuğu ─────────────────────────────────────────────────────── */
.upload-progress { margin: 1rem 0 .5rem }

.progress-bar {
    height: 5px;
    background: var(--ivory-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blush-light), var(--blush), var(--champagne));
    border-radius: 999px;
    transition: width .3s ease;
}
.progress-text {
    font-size: .8rem;
    color: var(--text-400);
    text-align: center;
}

/* ── Sonuç Mesajı ────────────────────────────────────────────────────────── */
.result-message {
    margin-top: 1rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: .93rem;
    line-height: 1.65;
}
.result-message.success {
    background: linear-gradient(135deg, #fdf8ff 0%, #fff6f5 100%);
    border: 1px solid var(--blush-light);
    color: var(--blush-dark);
}
.result-message.error {
    background: #fff5f5;
    border: 1px solid #f0c0b8;
    color: #8a2a20;
}
.result-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-icon--success {
    background: linear-gradient(135deg, var(--blush-light), var(--champagne-light));
    color: var(--blush-dark);
}
.result-icon--error {
    background: #fde8e6;
    color: #c44030;
}
.result-icon svg { display: block; width: 24px; height: 24px }

.result-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.btn-again {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .85rem;
    padding: .55rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--blush-light);
    border-radius: 50px;
    font-size: .83rem;
    color: var(--blush-dark);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn-again:hover { background: var(--blush-muted) }
.btn-again svg { display: block; width: 14px; height: 14px }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    margin-top: 2.75rem;
    font-size: .78rem;
    color: var(--text-400);
    line-height: 1.9;
}
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .6rem;
    color: var(--champagne-light);
}
.footer-divider svg { display: block; width: 16px; height: 16px }

/* ── Yardımcılar ─────────────────────────────────────────────────────────── */
[hidden] { display: none !important }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
    .page-wrapper { padding: 1.75rem 1rem 3rem }
    .upload-card  { padding: 1.75rem 1.25rem }
    .couple-names { font-size: 2rem }
    .action-buttons { grid-template-columns: 1fr 1fr }
}
@media (min-width: 600px) {
    .bg-botanical { opacity: .7 }
    .preview-area { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) }
}
