/* Frontend Genel Stiller */
.orijinallik-sorgu-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.orijinallik-sorgu-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

/* Geliştirilmiş arka plan animasyonu */
.orijinallik-sorgu-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sorgu-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Geliştirilmiş header icon animasyonu */
.header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.header-icon svg {
  width: 45px;
  height: 45px;
  color: white;
}

.sorgu-header h3 {
  font-size: 32px;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sorgu-header p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

.sorgu-form {
  position: relative;
  z-index: 1;
}

/* Geliştirilmiş input group */
.input-group {
  display: flex;
  gap: 15px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.input-group:focus-within {
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

#kod-input {
  flex: 1;
  border: none;
  padding: 18px 25px;
  font-size: 16px;
  border-radius: 50px;
  outline: none;
  background: transparent;
  color: #333;
  font-weight: 500;
}

#kod-input:focus {
  background: rgba(102, 126, 234, 0.05);
}

#kod-input::placeholder {
  color: #999;
}

/* Geliştirilmiş buton hover efektleri */
.sorgu-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 18px 35px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.sorgu-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.sorgu-button:hover::before {
  left: 100%;
}

.sorgu-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.sorgu-button:active {
  transform: scale(0.98);
}

.sorgu-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

#sorgu-sonuc {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

#sorgu-sonuc.show {
  opacity: 1;
  transform: translateY(0);
}

/* Geliştirilmiş sonuç kutusu animasyonları */
.sonuc-box {
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.sonuc-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandWidth 0.5s ease 0.3s forwards;
}

@keyframes expandWidth {
  to {
    transform: scaleX(1);
  }
}

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

.sonuc-icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sonuc-box.success .sonuc-icon {
  color: #28a745;
}

.sonuc-box.error .sonuc-icon {
  color: #dc3545;
}

/* Geliştirilmiş sonuç kutusu animasyonları */
.sonuc-box.success {
  border-color: rgba(40, 167, 69, 0.2);
  background: linear-gradient(to bottom, #ffffff, #f0fff4);
}

.sonuc-box.error {
  border-color: rgba(220, 53, 69, 0.2);
  background: linear-gradient(to bottom, #ffffff, #fff5f5);
}

/* Geliştirilmiş sonuç kutusu animasyonları */
.sonuc-message {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  animation: fadeInUp 0.5s ease 0.2s backwards;
}

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

.sonuc-box.success .sonuc-message {
  color: #28a745;
}

.sonuc-box.error .sonuc-message {
  color: #dc3545;
}

/* Geliştirilmiş sonuç kutusu animasyonları */
.sonuc-details {
  font-size: 15px;
  color: #666;
  margin: 15px 0 0 0;
  line-height: 1.6;
  animation: fadeInUp 0.5s ease 0.3s backwards;
}

/* Yeni badge stilleri eklendi */
.sonuc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease 0.4s backwards;
}

/* Loading animasyonu */
/* Geliştirilmiş loading animasyonu */
.sorgu-button.loading {
  pointer-events: none;
  background: linear-gradient(135deg, #9b9bea 0%, #a989c2 100%);
}

.sorgu-button.loading .button-text {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.sorgu-button.loading .button-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
/* Geliştirilmiş responsive tasarım */
@media (max-width: 768px) {
  .orijinallik-sorgu-container {
    padding: 15px;
    margin: 20px auto;
  }

  .orijinallik-sorgu-box {
    padding: 40px 25px;
    border-radius: 20px;
  }

  .sorgu-header h3 {
    font-size: 26px;
  }

  .sorgu-header p {
    font-size: 14px;
  }

  .header-icon {
    width: 70px;
    height: 70px;
  }

  .header-icon svg {
    width: 38px;
    height: 38px;
  }

  .input-group {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
    gap: 10px;
  }

  #kod-input {
    border-radius: 15px;
    padding: 16px 20px;
    font-size: 15px;
    text-align: center;
  }

  .sorgu-button {
    justify-content: center;
    border-radius: 15px;
    padding: 16px 30px;
    width: 100%;
  }

  .sonuc-box {
    padding: 30px 20px;
  }

  .sonuc-icon {
    font-size: 64px;
  }

  .sonuc-message {
    font-size: 22px;
  }

  .sonuc-details {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .orijinallik-sorgu-box {
    padding: 30px 20px;
  }

  .sorgu-header h3 {
    font-size: 22px;
  }

  .header-icon {
    width: 60px;
    height: 60px;
  }

  .header-icon svg {
    width: 32px;
    height: 32px;
  }

  .sonuc-icon {
    font-size: 56px;
  }

  .sonuc-message {
    font-size: 20px;
  }
}

/* Modern tema alternatifleri */
/* Geliştirilmiş tema alternatifleri */
.theme-minimal .orijinallik-sorgu-box {
  background: white;
  border: 2px solid #e0e0e0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.theme-minimal .orijinallik-sorgu-box::before {
  display: none;
}

.theme-minimal .sorgu-header {
  color: #333;
}

.theme-minimal .header-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-minimal .sorgu-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-dark .orijinallik-sorgu-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.theme-dark .input-group {
  background: #2a2a3e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.theme-dark #kod-input {
  color: white;
}

.theme-dark #kod-input::placeholder {
  color: #888;
}

.theme-dark #kod-input:focus {
  background: rgba(102, 126, 234, 0.15);
}

.theme-dark .sonuc-box {
  background: #2a2a3e;
  color: white;
  border-color: rgba(102, 126, 234, 0.3);
}

.theme-dark .sonuc-box.success {
  background: linear-gradient(to bottom, #2a2a3e, #1a3a2e);
  border-color: rgba(40, 167, 69, 0.3);
}

.theme-dark .sonuc-box.error {
  background: linear-gradient(to bottom, #2a2a3e, #3a1a1e);
  border-color: rgba(220, 53, 69, 0.3);
}

.theme-dark .sonuc-details {
  color: #ccc;
}

.theme-dark .sonuc-badge {
  background: linear-gradient(135deg, #3a3a4e, #2a2a3e);
  color: #fff;
}
