/* Kuran Korunmuşluk Testi - Özel Stiller */

/* Mesaj ve Sonuç Alanları */
.message {
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 2px solid #c3e6cb;
  box-shadow: 0 4px 15px rgba(21, 87, 36, 0.1);
}

.message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 2px solid #f5c6cb;
  box-shadow: 0 4px 15px rgba(114, 28, 36, 0.1);
}

.dark .message.success {
  background: linear-gradient(135deg, rgba(21, 87, 36, 0.2) 0%, rgba(195, 230, 203, 0.1) 100%);
  color: #86efac;
  border-color: rgba(195, 230, 203, 0.3);
}

.dark .message.error {
  background: linear-gradient(135deg, rgba(114, 28, 36, 0.2) 0%, rgba(245, 198, 203, 0.1) 100%);
  color: #fca5a5;
  border-color: rgba(245, 198, 203, 0.3);
}

/* Sonuç Alanları */
.result, .quotient, .quotient-division {
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  word-break: break-all;
  overflow-wrap: break-word;
  transition: all 0.3s ease;
}

.dark .result, 
.dark .quotient, 
.dark .quotient-division {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  border-color: rgba(71, 85, 105, 0.5);
}

/* Sayı Editörü Özel Stilleri */
#inputNumber {
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  letter-spacing: 0.5px;
  resize: vertical;
  min-height: 300px;
}

#inputNumber:focus {
  outline: none;
  ring: 2px;
  ring-color: #6366f1;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Büyük Sayı Formatı */
.large-number {
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.4;
  font-size: 0.875rem;
}

/* Animasyonlar */
@keyframes pulse-success {
  0%, 100% { 
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
  }
  50% { 
    background-color: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
  }
}

@keyframes pulse-error {
  0%, 100% { 
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
  }
  50% { 
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
  }
}

.animate-pulse-success {
  animation: pulse-success 2s infinite;
}

.animate-pulse-error {
  animation: pulse-error 2s infinite;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  .large-number {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .message {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .result, .quotient, .quotient-division {
    padding: 1rem;
  }
  
  #inputNumber {
    min-height: 250px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .large-number {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  #inputNumber {
    min-height: 200px;
    font-size: 0.75rem;
  }
}

/* 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.4),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

.dark .loading::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Buton Hover Efektleri */
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Özel Scroll Bar */
#inputNumber::-webkit-scrollbar {
  width: 8px;
}

#inputNumber::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#inputNumber::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#inputNumber::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark #inputNumber::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark #inputNumber::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark #inputNumber::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Sonuç Kartları Hover Efekti */
.result:hover, .quotient:hover, .quotient-division:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark .result:hover, 
.dark .quotient:hover, 
.dark .quotient-division:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* İstatistik Kartları */
.stat-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Başarı Göstergeleri */
.success-indicator {
  position: relative;
}

.success-indicator::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.error-indicator {
  position: relative;
}

.error-indicator::before {
  content: '✗';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Print Stilleri */
@media print {
  .message, .result, .quotient, .quotient-division {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  button {
    display: none;
  }
  
  #inputNumber {
    border: 1px solid #ccc;
    background: white;
  }
}
