* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fff8fa;
    --bg-secondary: #fff0f5;
    --accent: #e891a8;
    --accent-light: #f5c6d6;
    --accent-dark: #d4738f;
    --text-primary: #4a3f44;
    --text-secondary: #8a7a82;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(232, 145, 168, 0.15);
    --radius: 50px;
    --radius-sm: 24px;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
    --logo-size: 72px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Header — sayfa ile aynı pembe, kesintisiz */
.header {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--logo-size, 72px) * 0.12 + 10px) 20px;
    background: transparent;
    box-shadow: none;
    z-index: 10;
}

.logo-link {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.logo-link:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.logo-wrap {
    --logo-size: 72px;
    width: var(--logo-size);
    height: var(--logo-size);
    min-width: var(--logo-size);
    min-height: var(--logo-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-light);
    box-shadow: 0 2px 14px rgba(232, 145, 168, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.logo-wrap .logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.logo-wrap .logo-text {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: calc(var(--logo-size) * 0.17);
    font-weight: 700;
    color: var(--accent-dark);
    padding: 10%;
    line-height: 1.15;
    border-radius: 50%;
    background: var(--bg-primary);
}

/* Main */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 0;
    overflow: hidden;
    gap: 16px;
}

/* Upload Zone */
.upload-zone {
    flex-shrink: 0;
    position: relative;
    border: 2px dashed var(--accent-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--bg-secondary);
    transform: scale(1.01);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 10;
    touch-action: manipulation;
}

.upload-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.upload-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.upload-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    animation: bounce 2s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-light);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring.delay {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-limits {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0.9;
}

/* File List */
.file-list-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.file-list {
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-list:empty::after {
    content: 'Henüz dosya seçilmedi';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.file-preview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.file-preview.video-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.file-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.file-remove:hover {
    background: var(--accent);
    color: var(--white);
}

/* Footer */
.footer {
    flex-shrink: 0;
    padding: 16px 20px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(232, 145, 168, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    padding: 14px 32px;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-upload {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(232, 145, 168, 0.4);
}

.btn-upload:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 145, 168, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--accent-light);
}

.btn-full {
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 63, 68, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    pointer-events: auto;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--accent-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.modal input[type="text"]:focus {
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

/* Scrollbar */
.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: transparent;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 480px) {
    .upload-zone {
        padding: 20px 16px;
    }

    .upload-animation {
        width: 60px;
        height: 60px;
    }

    .upload-icon svg {
        width: 30px;
        height: 30px;
    }

    .upload-text {
        font-size: 1rem;
    }
}
