@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(315deg, #fdfaf6, #f8e9d7, #fdfaf6, #e8f3f8);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #333;
    margin: 0;
}

header .date {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 30px;
}

.upload-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 0;
}

.upload-wrapper p {
    line-height: 1.6;
    margin-bottom: 30px;
}

/* İpucu Kartı */
.tip-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-left: 4px solid #ffa500;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.tip-content strong {
    color: #ff8c00;
    font-weight: 500;
}

/* Mobil için ipucu kartı optimizasyonu */
@media (max-width: 600px) {
    .tip-card {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .tip-icon {
        font-size: 1.3rem;
    }
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#photo-input {
    display: none;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px dashed #dcdcdc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.file-input-label.drag-over {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.file-input-label .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #aaa;
    transition: transform 0.3s ease;
}

.file-input-label:hover .icon {
    transform: scale(1.1);
}

.file-input-label .text {
    font-weight: 400;
    color: #666;
}

#file-preview {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.preview-image-container {
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInPreview 0.5s ease forwards;
}

@keyframes fadeInPreview {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-image {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Video önizleme stilleri */
.preview-image-container video {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.remove-file-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #333;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background-color: #dc3545;
    transform: scale(1.1);
}

/* Dosya boyutu etiketi */
.file-size-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.file-size-label.large-file {
    background: rgba(255, 140, 0, 0.85);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#processing-status {
    font-size: 0.95rem;
    color: #555;
    margin-top: 15px;
    height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

#processing-status.visible {
    height: auto;
    opacity: 1;
}


.upload-btn {
    background-color: #333;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.upload-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upload-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-btn .btn-text {
    transition: opacity 0.2s ease;
}

.upload-btn.loading .btn-text {
    opacity: 0;
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-top: -10px;
    margin-left: -10px;
}

.upload-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


#upload-status {
    margin-top: 20px;
    font-weight: 400;
    transition: all 0.5s ease;
    padding: 15px;
    border-radius: 8px;
    display: none; /* Hide by default, will be shown with JS */
    opacity: 0;
    white-space: pre-line; /* Satır başlarını koru */
    text-align: left;
    line-height: 1.6;
    font-size: 0.95rem;
}

#upload-status.visible {
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


#upload-status.success {
    background-color: #eaf6ec;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

#upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    max-height: 400px;
    overflow-y: auto;
}

#upload-status.loading {
    /* Loading text is handled by the button, so this can be removed or repurposed */
    display: none;
}

.progress-container {
    height: 10px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 25px;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease;
}

.progress-container.visible {
    opacity: 1;
    max-height: 10px; /* Animate height */
    margin-top: 25px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #333;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
}

footer p {
    color: rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }
    .container {
        border-radius: 0;
        min-height: 100vh;
        padding: 30px 20px;
        background: rgba(255, 255, 255, 0.8);
    }
    header h1 {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
#name-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
}

#name-modal-overlay.modal-visible {
    opacity: 1;
    visibility: visible;
}

#name-modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

#name-modal-overlay.modal-visible #name-modal-content {
    transform: scale(1);
}


#name-modal-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-top: 0;
    color: #333;
}

#name-modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

#name-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

#name-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

#modal-submit-btn {
    background-color: #333;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#modal-submit-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
} 