/* 
 * ☕ KAHVE FALI AI TASARIMI ☕
 * Modern, Responsive ve Kullanıcı Dostu
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Kahve Renk Paleti */
    --coffee-dark: #5D4037;
    --coffee-medium: #795548;
    --coffee-light: #A1887F;
    --coffee-cream: #FFF8E1;
    --coffee-milk: #FFECB3;
    --coffee-gold: #D4A017;
    
    /* Modern Renkler */
    --primary: #8B4513;
    --primary-light: #A0522D;
    --secondary: #D2691E;
    --accent: #FF9800;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FFC107;
    
    /* Nötr Renkler */
    --dark: #1A0F0A;
    --darker: #2C1C10;
    --light: #FFF8DC;
    --lighter: #FFFEF9;
    --gray: #757575;
    --light-gray: #E0E0E0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-gold: linear-gradient(135deg, var(--coffee-gold) 0%, #FFD700 100%);
    --gradient-cream: linear-gradient(135deg, var(--coffee-cream) 0%, #FFFEF9 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1A0F0A 0%, #2C1C10 50%, #3E2723 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
#coffee-fali-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Wrapper */
.coffee-fali-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.coffee-fali-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(210, 105, 30, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Sections */
.coffee-section {
    display: none;
    padding: var(--space-3xl);
    min-height: 70vh;
}

.coffee-section.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--coffee-light);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-3xl) 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    background: rgba(139, 69, 19, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: block;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--coffee-cream);
    margin-bottom: var(--space-md);
}

.feature-card p {
    color: var(--coffee-light);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Buttons */
.start-btn, .next-btn, .analyze-btn, .back-btn,
.new-reading-btn, .download-btn, .share-btn, .retry-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    padding: 16px 32px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.start-btn, .next-btn, .analyze-btn {
    background: var(--gradient-primary);
    color: white;
}

.start-btn:hover, .next-btn:hover, .analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4);
}

.start-btn:active, .next-btn:active, .analyze-btn:active {
    transform: translateY(0);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.new-reading-btn {
    background: var(--primary);
    color: white;
}

.download-btn {
    background: var(--success);
    color: white;
}

.share-btn {
    background: #2196F3;
    color: white;
}

.retry-btn {
    background: var(--gradient-primary);
    color: white;
    margin-top: var(--space-xl);
}

/* Button Groups */
.start-button-container, .form-actions, .upload-actions, .results-actions {
    text-align: center;
    margin-top: var(--space-2xl);
}

.form-actions, .upload-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.form-actions button, .upload-actions button {
    min-width: 180px;
}

.results-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions button {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Forms */
#coffee-user-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--coffee-cream);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Upload Section */
.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

@media (max-width: 992px) {
    .upload-container {
        grid-template-columns: 1fr;
    }
}

.upload-instructions {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.upload-instructions h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.upload-instructions h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.upload-instructions ul {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.upload-instructions li {
    padding: var(--space-sm) 0;
    color: var(--coffee-light);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-instructions li:last-child {
    border-bottom: none;
}

.upload-instructions li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

.example-images {
    margin-top: var(--space-xl);
}

.example-images h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.example-images h4::before {
    content: '📷';
    font-size: 1.1rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.example-card {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(210, 105, 30, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.example-card:hover {
    border-color: var(--secondary);
    background: rgba(139, 69, 19, 0.2);
}

.example-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.example-card p {
    font-size: 0.9rem;
    color: var(--coffee-light);
    font-weight: 500;
}

/* Upload Zone */
.upload-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--secondary);
    background: rgba(139, 69, 19, 0.1);
}

.upload-zone.dz-drag-hover {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--secondary);
    opacity: 0.8;
}

.upload-zone h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-sm);
}

.upload-zone p {
    color: var(--coffee-light);
    margin: var(--space-sm) 0;
}

.browse-btn {
    background: rgba(139, 69, 19, 0.3);
    color: var(--coffee-cream);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-full);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin: var(--space-lg) 0;
}

.browse-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.upload-note {
    font-size: 0.9rem;
    color: var(--coffee-light);
    opacity: 0.7;
    margin-top: var(--space-lg);
}

/* Preview Container */
.preview-container {
    background: rgba(26, 15, 10, 0.9);
    border: 1px solid rgba(210, 105, 30, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    animation: fadeIn 0.5s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
}

.preview-header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--coffee-cream);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.preview-header h4::before {
    content: '📷';
    font-size: 1.1rem;
}

.remove-image-btn {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.remove-image-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: scale(1.1);
}

.preview-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 2px solid rgba(210, 105, 30, 0.2);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.preview-image:hover img {
    transform: scale(1.02);
}

.preview-info {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.preview-info p {
    color: var(--coffee-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.preview-info p::before {
    content: '📄';
    font-size: 0.9rem;
}

/* Analyzing Section */
.analyzing-content {
    text-align: center;
    padding: var(--space-3xl);
}

.analyzing-spinner {
    margin: 0 auto var(--space-2xl);
    position: relative;
    width: 120px;
    height: 120px;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(210, 105, 30, 0.2);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

.spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

#analyzing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

#analyzing-title::before {
    content: '🤖';
    font-size: 2rem;
}

.analyzing-steps {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.step {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    background: rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    transition: var(--transition-normal);
    opacity: 0.5;
}

.step.active {
    opacity: 1;
    border-left-color: var(--secondary);
    background: rgba(210, 105, 30, 0.1);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 10px rgba(210, 105, 30, 0.2); }
    to { box-shadow: 0 0 20px rgba(210, 105, 30, 0.4); }
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: var(--space-lg);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--coffee-cream);
    font-size: 1.1rem;
    font-weight: 500;
}

.analyzing-info {
    max-width: 600px;
    margin: 0 auto;
}

.analyzing-info p {
    color: var(--coffee-light);
    margin: var(--space-sm) 0;
    line-height: 1.6;
}

/* Results Section */
.results-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(210, 105, 30, 0.3);
}

.results-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-md);
}

.results-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.results-summary {
    margin-bottom: var(--space-xl);
}

.results-summary h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.results-summary h2::before {
    content: '☕';
    font-size: 1.8rem;
}

.user-question {
    background: rgba(210, 105, 30, 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
    margin: var(--space-lg) 0;
}

.user-question strong {
    color: var(--coffee-cream);
    font-weight: 600;
}

.reading-date {
    color: var(--coffee-light);
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

.reading-text {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--coffee-cream);
    background: rgba(139, 69, 19, 0.05);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(210, 105, 30, 0.1);
    margin: var(--space-xl) 0;
}

.reading-text h3,
.reading-text h4 {
    color: var(--secondary);
    margin: var(--space-lg) 0 var(--space-md);
    font-family: 'Poppins', sans-serif;
}

.reading-text p {
    margin-bottom: var(--space-md);
}

.detected-symbols {
    margin: var(--space-2xl) 0;
}

.detected-symbols h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.detected-symbols h3::before {
    content: '🔍';
    font-size: 1.3rem;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.symbol-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: var(--transition-normal);
}

.symbol-card:hover {
    border-color: var(--secondary);
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-4px);
}

.symbol-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
}

.symbol-index {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: var(--space-md);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.symbol-name {
    color: var(--coffee-cream);
    font-weight: 600;
    font-size: 1.1rem;
}

.symbol-confidence {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

.symbol-details p {
    color: var(--coffee-light);
    margin: var(--space-sm) 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.analysis-summary {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(210, 105, 30, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.analysis-summary h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.analysis-item {
    background: rgba(26, 15, 10, 0.8);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(210, 105, 30, 0.1);
}

.analysis-label {
    display: block;
    color: var(--coffee-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.analysis-value {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.analysis-value.yüksek {
    color: var(--success);
}

.analysis-value.orta {
    color: var(--warning);
}

.analysis-value.düşük {
    color: var(--error);
}

.reading-tips {
    background: rgba(255, 248, 225, 0.05);
    border: 1px solid rgba(210, 105, 30, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.reading-tips h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--coffee-cream);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.reading-tips h3::before {
    content: '💡';
    font-size: 1.2rem;
}

.reading-tips p {
    color: var(--coffee-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.reading-tips p:last-child {
    margin-bottom: 0;
}

/* Error Section */
.error-content {
    text-align: center;
    padding: var(--space-3xl);
}

.error-icon {
    font-size: 5rem;
    color: var(--error);
    margin-bottom: var(--space-xl);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

#error-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--error);
    margin-bottom: var(--space-lg);
}

#error-message {
    color: var(--coffee-cream);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* Text Reveal Animation */
.text-reveal {
    animation: textReveal 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* Selection */
::selection {
    background: rgba(210, 105, 30, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(210, 105, 30, 0.3);
    color: white;
}

/* Focus Outline */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .coffee-section {
        padding: var(--space-2xl);
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .form-actions, .upload-actions {
        flex-direction: column;
    }
    
    .form-actions button, .upload-actions button {
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #coffee-fali-container {
        padding: var(--space-lg);
    }
    
    .coffee-section {
        padding: var(--space-xl);
        min-height: auto;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: var(--space-xl);
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .upload-zone {
        padding: var(--space-xl);
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .analyzing-steps .step-text {
        font-size: 0.9rem;
    }
    
    .results-header h1 {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.text-center {
    text-align: center;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

/* Dropzone Customization */
.dz-preview {
    display: none !important;
}

.dz-error-message {
    color: var(--error) !important;
    font-weight: 500 !important;
    margin-top: var(--space-sm) !important;
}

.dz-success-mark,
.dz-error-mark {
    display: none !important;
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Print Styles */
@media print {
    .coffee-fali-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .start-btn, .analyze-btn, .back-btn, .next-btn,
    .new-reading-btn, .download-btn, .share-btn {
        display: none;
    }
    
    .reading-text {
        background: white;
        border: 1px solid #ddd;
        color: #333;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #121212;
        --darker: #1E1E1E;
        --light: #E0E0E0;
        --lighter: #F5F5F5;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* MOBİL UYUMLULUK İYİLEŞTİRMELERİ - YENİ */

/* Mobil cihazlar için temel ayarlar */
@media (max-width: 768px) {
    #coffee-fali-container {
        padding: var(--space-sm);
    }
    
    .coffee-fali-wrapper {
        border-radius: var(--radius-lg);
        margin: var(--space-sm);
    }
    
    .coffee-section {
        padding: var(--space-lg) var(--space-md);
        min-height: auto;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .section-header .subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Features Grid mobil */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-xl) 0;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-md);
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Butonlar mobil */
    .start-btn, .next-btn, .analyze-btn, .back-btn,
    .new-reading-btn, .download-btn, .share-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        margin: var(--space-xs) 0;
    }
    
    /* Form mobil */
    #coffee-user-form {
        padding: 0;
    }
    
    .form-group {
        margin-bottom: var(--space-lg);
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* iOS için önemli */
        -webkit-appearance: none;
    }
    
    /* Date input iOS uyumluluğu */
    input[type="date"] {
        min-height: 44px; /* iOS için minimum tıklama alanı */
    }
    
    /* Upload container mobil */
    .upload-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .upload-instructions {
        padding: var(--space-lg);
        max-height: none;
        overflow: visible;
    }
    
    .upload-instructions ul {
        margin-bottom: var(--space-lg);
        padding-left: var(--space-md);
    }
    
    .upload-instructions li {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: var(--space-xs) 0;
        display: flex;
        align-items: flex-start;
        margin-bottom: var(--space-xs);
    }
    
    .upload-instructions li::before {
        margin-right: var(--space-sm);
        margin-top: 2px;
    }
    
    .example-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .example-card {
        padding: var(--space-md);
    }
    
    .example-icon {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }
    
    .example-card p {
        font-size: 0.8rem;
    }
    
    /* Upload zone mobil */
    .upload-zone {
        padding: var(--space-xl) var(--space-lg);
        min-height: 180px;
    }
    
    .upload-icon {
        font-size: 3rem;
        margin-bottom: var(--space-md);
    }
    
    .upload-zone h3 {
        font-size: 1.2rem;
        margin-bottom: var(--space-xs);
    }
    
    .upload-zone p {
        font-size: 0.9rem;
        margin: var(--space-xs) 0;
    }
    
    .browse-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        margin: var(--space-md) 0;
        min-height: 44px; /* iOS tıklama alanı */
    }
    
    /* Preview container mobil */
    .preview-container {
        padding: var(--space-lg);
        margin-top: var(--space-lg);
    }
    
    .preview-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .preview-image-wrapper {
        height: 100px;
    }
    
    .preview-info {
        padding: 8px;
    }
    
    .preview-info p {
        font-size: 0.75rem;
    }
    
    /* Analyzing section mobil */
    .analyzing-content {
        padding: var(--space-xl);
    }
    
    .analyzing-spinner {
        width: 100px;
        height: 100px;
    }
    
    #analyzing-title {
        font-size: 1.5rem;
    }
    
    .analyzing-steps {
        margin: var(--space-xl) 0;
    }
    
    .step {
        padding: var(--space-md);
        margin: var(--space-xs) 0;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: var(--space-md);
    }
    
    .step-text {
        font-size: 0.95rem;
    }
    
    /* Results section mobil */
    .results-header h1 {
        font-size: 1.8rem;
    }
    
    .results-content {
        padding: var(--space-lg);
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .results-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .results-actions button {
        width: 100%;
        max-width: 100%;
    }
}

/* Çok küçük ekranlar (iPhone SE vb.) */
@media (max-width: 375px) {
    .coffee-section {
        padding: var(--space-md);
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .upload-container {
        gap: var(--space-md);
    }
    
    .upload-instructions {
        padding: var(--space-md);
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-images-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-image-wrapper {
        height: 120px;
    }
}

/* Tablet görünümü (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .coffee-section {
        padding: var(--space-xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iOS Safari için özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group textarea,
    .browse-btn {
        font-size: 16px !important; /* iOS zoom'u önler */
    }
    
    .upload-zone {
        cursor: pointer;
    }
    
    input[type="date"] {
        appearance: none;
    }
}

/* Android Chrome için düzeltmeler */
@supports not (-webkit-touch-callout: none) {
    .upload-zone {
        touch-action: manipulation;
    }
}

/* Yatay mod (landscape) için */
@media (max-height: 600px) and (orientation: landscape) {
    .coffee-section {
        min-height: auto;
        padding: var(--space-md);
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        margin: var(--space-lg) 0;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
}

/* Yüksek çözünürlüklü ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .start-btn, .next-btn, .analyze-btn {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Mobil için özel upload talimatları */
.mobile-upload-hint {
    display: none;
    background: rgba(139, 69, 19, 0.2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    text-align: center;
    border-left: 4px solid var(--secondary);
}

@media (max-width: 768px) {
    .mobile-upload-hint {
        display: block;
    }
    
    .upload-instructions ul {
        font-size: 0.9rem;
    }
    
    .upload-instructions h3 {
        font-size: 1.1rem;
    }
}

/* Touch uyumluluğu için */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .preview-image-item:hover {
        transform: none;
    }
    
    .symbol-card:hover {
        transform: none;
    }
    
    /* Touch için daha büyük tıklama alanları */
    .remove-image-btn,
    .remove-all-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .back-btn, .next-btn, .analyze-btn {
        min-height: 50px;
    }
}

/* Koyu tema mobil */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .coffee-fali-wrapper {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .feature-card,
    .upload-instructions,
    .upload-zone {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Okunabilirlik için */
@media (max-width: 768px) {
    .reading-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: var(--space-md);
    }
    
    .reading-text h3 {
        font-size: 1.2rem;
        margin: var(--space-lg) 0 var(--space-md);
    }
}

/* Scroll düzeltmesi */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    .coffee-fali-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

/* Fotoğraf yükleme mesajı */
.photo-upload-message {
    background: rgba(139, 69, 19, 0.1);
    border: 2px dashed var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    margin: var(--space-lg) 0;
    display: none;
}

@media (max-width: 768px) {
    .photo-upload-message {
        display: block;
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* CSS dosyasının en sonuna ekleyin */

/* Mobil Upload Hint */
.mobile-upload-hint {
    display: none;
}

@media (max-width: 768px) {
    .mobile-upload-hint {
        display: block;
        background: rgba(139, 69, 19, 0.1);
        border: 1px solid rgba(210, 105, 30, 0.3);
        border-radius: var(--radius-md);
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
        border-left: 4px solid var(--secondary);
    }
    
    .mobile-upload-hint h4 {
        color: var(--coffee-cream);
        margin-bottom: var(--space-md);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .mobile-upload-hint h4::before {
        content: '📱';
        font-size: 1.1rem;
    }
    
    .mobile-upload-hint p {
        color: var(--coffee-light);
        line-height: 1.6;
        margin: var(--space-xs) 0;
        font-size: 0.9rem;
    }
    
    /* iOS için input düzeltmesi */
    body.is-ios .form-group input,
    body.is-ios .form-group textarea {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    /* Touch uyumlu butonlar */
    .browse-btn,
    .remove-image-btn,
    .remove-all-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .browse-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Dropzone'u mobilde gizle */
@media (max-width: 768px) {
    .dz-hidden {
        display: none !important;
    }
    
    .dropzone {
        min-height: 150px !important;
    }
}