/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobil için touch optimizasyonu */
button, input, .file-upload-area, .mobile-camera-btn {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Upload Section */
.upload-section {
    margin-bottom: 3rem;
}

.upload-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upload-header {
    margin-bottom: 2rem;
}

.upload-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: #666;
    font-size: 1rem;
}

.mobile-instructions {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #667eea;
}

.mobile-instructions i {
    font-size: 1.1rem;
}

/* File Upload Area */
.file-upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-icon i {
    font-size: 3rem;
    color: #667eea;
}

.file-upload-area p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-text {
    display: block;
}

.mobile-upload-text {
    display: none;
}

.mobile-camera-btn {
    display: none;
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.mobile-camera-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.mobile-camera-btn i {
    font-size: 1.2rem;
}

.file-info {
    color: #666;
    font-size: 0.9rem;
}

#photoInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview Area */
.preview-area {
    margin-bottom: 2rem;
    position: relative;
}

#imagePreview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-height: 48px; /* Mobil için minimum dokunma alanı */
}

.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 1.1rem;
}

/* Countdown Styles */
.countdown {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.countdown-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.countdown-text i {
    font-size: 1.5rem;
    color: #667eea;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.countdown-timer {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

#countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.loading-animation .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading içindeki countdown için özel stiller */
.loading .countdown {
    background: transparent;
    box-shadow: none;
    padding: 1rem;
}

.loading .countdown-text {
    color: #666;
    font-size: 1rem;
}

.loading .countdown-timer {
    color: #999;
    font-size: 0.9rem;
}

.loading #countdown-number {
    color: #667eea;
    font-size: 1.5rem;
}

/* Result Section */
.result-section {
    margin-bottom: 3rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.result-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.result-date {
    color: #666;
    font-size: 1rem;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.photo-result img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    width: fit-content;
}

.main-message, .additional-message {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.main-message h3, .additional-message h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.main-message p, .additional-message p {
    color: #666;
    line-height: 1.6;
}

/* Personalization Info */
.personalization-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.personalization-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.personalization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.personalization-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.personalization-item i {
    color: #28a745;
    font-size: 1.1rem;
    width: 20px;
}

.personalization-item span {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.new-fal-btn, .share-btn, .download-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px; /* Mobil için minimum dokunma alanı */
}

.new-fal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.share-btn {
    background: #28a745;
    color: white;
}

.download-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.new-fal-btn:hover, .share-btn:hover, .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
    text-align: center;
    margin-bottom: 3rem;
}

.features-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .upload-card, .result-card {
        padding: 2rem 1.5rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .personalization-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-area {
        padding: 2rem 1rem;
    }
    
    /* Mobil için özel stiller */
    .mobile-instructions {
        display: flex;
    }
    
    .upload-text {
        display: none;
    }
    
    .mobile-upload-text {
        display: block;
    }
    
    .mobile-camera-btn {
        display: flex;
    }
    
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: inline;
    }
    
    /* Mobil için buton boyutları */
    .submit-btn, .new-fal-btn, .share-btn, .download-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        min-height: 56px;
    }
    
    /* Mobil için toast pozisyonu */
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .upload-header h2 {
        font-size: 1.5rem;
    }
    
    .result-header h2 {
        font-size: 1.5rem;
    }
    
    .features-section h2 {
        font-size: 1.5rem;
    }
    
    .upload-card, .result-card {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-area {
        padding: 1.5rem 0.5rem;
    }
    
    .submit-btn, .new-fal-btn, .share-btn, .download-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Tablet için özel stiller */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .upload-card, .result-card {
        padding: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape mobil için özel stiller */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 1rem 0;
    }
    
    .main {
        padding: 1.5rem 0;
    }
    
    .upload-card, .result-card {
        padding: 1.5rem;
    }
} 