/* 19 Hesap Makinesi Özel CSS - Hover Efektleri Kaldırıldı */

/* Input field özelleştirmeleri */
#numberInput {
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#numberInput:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Dark mode için input field */
.dark #numberInput {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark #numberInput:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Buton animasyonları - sadece hesap makinesi butonları */
#calculateBtn, #clearBtn {
    transition: transform 0.2s ease;
}

#calculateBtn:hover, #clearBtn:hover {
    transform: scale(1.05);
}

#calculateBtn:active, #clearBtn:active {
    transform: scale(0.95);
}

/* Disabled buton stili */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Sonuç kartı animasyonları */
#resultCard {
    animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Başarılı sonuç için özel animasyon */
#successResult.animate-bounce {
    animation: customBounce 1s ease-in-out;
}

@keyframes customBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hata sonucu için özel animasyon */
#errorResult.animate-pulse {
    animation: customPulse 1s ease-in-out;
}

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

/* Input warning animasyonu */
#inputWarning.animate-pulse {
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        background-color: rgba(254, 243, 199, 0.5);
    }
    50% {
        background-color: rgba(254, 243, 199, 1);
    }
}

/* Dark mode için warning */
.dark #inputWarning.animate-pulse {
    animation: warningPulseDark 1s ease-in-out infinite;
}

@keyframes warningPulseDark {
    0%, 100% {
        background-color: rgba(180, 83, 9, 0.3);
    }
    50% {
        background-color: rgba(180, 83, 9, 0.5);
    }
}

/* Rate limit warning özel stili */
#rateLimitWarning {
    animation: slideInFromTop 0.3s ease-out;
}

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

/* Countdown sayısı için özel stil */
#rateLimitCountdown {
    font-weight: bold;
    color: #d97706;
    font-size: 1.1em;
}

.dark #rateLimitCountdown {
    color: #f59e0b;
}

/* SADECE örnek kartları için hover efekti - çok spesifik selector */
.info-section .bg-gray-50.cursor-pointer:hover {
    background-color: #f3f4f6;
    /* Transform ve box-shadow kaldırıldı */
}

.dark .info-section .bg-gray-50.cursor-pointer:hover {
    background-color: #374151;
}

/* Font family için font yükleme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Ana container için */
.main-content-container {
    font-family: 'Inter', sans-serif;
}

/* Mono font için */
.font-mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

/* Responsive iyileştirmeler */
@media (max-width: 640px) {
    .main-content-container {
        padding: 1rem;
    }
    
    #numberInput {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .flex-col.sm\:flex-row {
        gap: 0.75rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Ekstra small screens için */
@media (max-width: 480px) {
    .grid-cols-1.md\:grid-cols-3 {
        gap: 1rem;
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        gap: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    .p-6 {
        padding: 1.25rem;
    }
}

/* Print stili (sayfa yazdırma için) */
@media print {
    .main-content-container {
        max-width: none;
        padding: 0;
    }
    
    .shadow-md, .shadow-lg {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .bg-gradient-to-r {
        background: #f9fafb !important;
    }
    
    button {
        border: 1px solid #d1d5db;
    }
}

/* Focus trap için accessibility */
button:focus,
input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode desteği */
@media (prefers-contrast: high) {
    .bg-blue-50 {
        background-color: #ffffff;
        border: 2px solid #1d4ed8;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .dark .text-gray-400 {
        color: #ffffff;
    }
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .transform {
        transform: none !important;
    }
}
