/* NOTE: Demo sayfasından gelen global body ve .demo-button kuralları kaldırıldı.
   Site genel düzenini etkilememesi için sadece uyarı bileşenleri stillendiriliyor. */

/* Warning Overlay */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Warning Container */
.warning-container {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 420px;
  max-width: calc(100vw - 40px);
  transform: translateY(100vh);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.warning-container.show {
  transform: translateY(0);
}

/* Warning Header */
.warning-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.warning-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-top: 4px;
}

/* Icon Types */
.warning-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.warning-icon.success {
  background: #e8f5e8;
  color: #2e7d32;
}

.warning-icon.warning {
  background: #fff3e0;
  color: #f57c00;
}

.warning-icon.error {
  background: #ffebee;
  color: #d32f2f;
}

.warning-icon.delete {
  background: #ffebee;
  color: #d32f2f;
}

.warning-icon.question {
  background: #f3e5f5;
  color: #7b1fa2;
}

.warning-content {
  flex: 1;
}

.warning-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.3;
}

.warning-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Warning Footer */
.warning-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.warning-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 80px;
}

.warning-btn.primary {
  background: #e21e21;
  color: white;
}

.warning-btn.primary:hover {
  background: #c41e3a;
}

.warning-btn.secondary {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.warning-btn.secondary:hover {
  background: #e9e9e9;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .warning-container {
    width: 380px;
    max-width: calc(100vw - 32px);
  }
  
  .warning-overlay {
    padding: 16px;
  }
  
  .warning-header {
    padding: 20px 20px 14px;
    gap: 14px;
  }
  
  .warning-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .warning-title {
    font-size: 17px;
    line-height: 1.4;
  }
  
  .warning-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .warning-footer {
    padding: 14px 20px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .warning-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .warning-container {
    width: 320px;
    max-width: calc(100vw - 24px);
  }
  
  .warning-overlay {
    padding: 12px;
  }
  
  .warning-header {
    padding: 18px 18px 12px;
    gap: 12px;
  }
  
  .warning-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .warning-title {
    font-size: 16px;
  }
  
  .warning-description {
    font-size: 13px;
  }
  
  .warning-footer {
    padding: 12px 18px 18px;
  }
  
  .warning-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}
