:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-btn-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 24px 16px;
}

/* Arka Plan Işık Efektleri */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    top: 30%;
    right: -150px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -100px;
    left: 20%;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* Ana Kart */
.main-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Yükleme Bölümü */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 60px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: var(--shadow-glow);
}

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

.upload-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    transition: transform 0.25s ease;
}

.drop-zone:hover .upload-icon-wrapper {
    transform: translateY(-4px) scale(1.06);
}

.upload-icon {
    width: 34px;
    height: 34px;
}

.drop-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.drop-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.upload-buttons {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.5);
    padding: 15px 36px;
}

.btn-primary:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -2px rgba(99, 102, 241, 0.65);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 6px 22px -2px rgba(16, 185, 129, 0.45);
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px -2px rgba(16, 185, 129, 0.6);
}

.btn-svg {
    width: 22px;
    height: 22px;
}

/* İlerleme Çubuğu */
.progress-container {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    width: 35%;
    background: var(--gradient-brand);
    border-radius: 999px;
    animation: indeterminate 1.5s infinite ease-in-out;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); width: 40%; }
    100% { transform: translateX(280%); width: 60%; }
}

.progress-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-indigo);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* İndirme Kartı (Önizlemesiz) */
.download-card {
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon-wrapper {
    width: 76px;
    height: 76px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    box-shadow: 0 0 30px -5px rgba(16, 185, 129, 0.4);
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 38px;
    height: 38px;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.result-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 420px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin-top: 10px;
}

/* Toast Bildirim */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent-indigo);
    font-size: 0.92rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.success {
    border-left-color: var(--accent-green);
}

/* Mobil Uyum */
@media (max-width: 640px) {
    .main-card {
        padding: 24px 16px;
    }
}
