/* ============================================
   POPUP MODAL STİLLERİ - HUKUK BÜROSU
   Ana CSS ile Uyumlu Tasarım
   ============================================ */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 42, 74, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7c 100%);
  color: #ffffff;
  padding: 45px 40px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
}

.modal-icon {
  font-size: 56px;
  margin-bottom: 18px;
  display: block;
  position: relative;
  z-index: 2;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin: 0;
  font-weight: 700;
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg) scale(1.1);
}

/* Modal Body */
.modal-body {
  padding: 50px 45px;
  position: relative;
}

.modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1a2a4a;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 20px;
}

.modal-body strong {
  color: #1a2a4a;
  font-weight: 600;
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-left: 5px solid #c9a84c;
  padding: 25px 30px;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(201, 168, 76, 0.15);
  position: relative;
  overflow: hidden;
}

.warning-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.warning-box p {
  margin: 0;
  color: #856404;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f9 100%);
  border-left: 5px solid #2d4a7c;
  padding: 25px 30px;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(45, 74, 124, 0.15);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 74, 124, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.info-box p {
  margin: 0;
  color: #1a2a4a;
  position: relative;
  z-index: 1;
}

.info-box a {
  color: #2d4a7c;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-box a:hover {
  color: #c9a84c;
}

/* Liste Stilleri */
.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.modal-body ul li {
  padding: 14px 0 14px 40px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.modal-body ul li:last-child {
  border-bottom: none;
}

.modal-body ul li:hover {
  padding-left: 48px;
  color: #1a2a4a;
}

.modal-body ul li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 14px;
  color: #c9a84c;
  font-size: 16px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-body ul li:hover:before {
  background: #c9a84c;
  color: #1a2a4a;
  transform: rotate(360deg);
}

/* Modal Footer */
.modal-footer {
  padding: 25px 45px 45px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, #f8f9fa);
}

/* Checkbox */
.modal-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-checkbox:hover {
  color: #1a2a4a;
}

.modal-checkbox input {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #c9a84c;
}

/* Modal Button */
.modal-button {
  background: linear-gradient(135deg, #c9a84c 0%, #e0c56e 100%);
  color: #1a2a4a;
  border: none;
  padding: 18px 45px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 5px 20px rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-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;
}

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

.modal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, #e0c56e 0%, #c9a84c 100%);
}

.modal-button:active {
  transform: translateY(-1px);
}

.modal-button i {
  margin-right: 8px;
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a88a3a;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .modal-content { width: 95%; max-height: 95vh; }
  .modal-header { padding: 35px 30px; }
  .modal-header h2 { font-size: 26px; }
  .modal-icon { font-size: 48px; }
  .modal-body { padding: 40px 30px; }
  .modal-body h3 { font-size: 20px; }
  .modal-body p { font-size: 15px; }
  .modal-footer { padding: 20px 30px 35px; }
  .warning-box, .info-box { padding: 20px 25px; }
}

@media (max-width: 576px) {
  .modal-content { width: 96%; margin: 20px; border-radius: 12px; }
  .modal-header { padding: 30px 25px; border-radius: 12px 12px 0 0; }
  .modal-header h2 { font-size: 22px; }
  .modal-icon { font-size: 42px; margin-bottom: 15px; }
  .modal-close { width: 38px; height: 38px; top: 15px; right: 15px; font-size: 18px; }
  .modal-body { padding: 30px 25px; }
  .modal-body h3 { font-size: 18px; margin-bottom: 15px; }
  .modal-body p { font-size: 14px; }
  .modal-body ul li { font-size: 14px; padding: 12px 0 12px 38px; }
  .modal-body ul li:before { width: 26px; height: 26px; font-size: 14px; }
  .warning-box, .info-box { padding: 18px 20px; margin: 20px 0; }
  .warning-box p, .info-box p { font-size: 14px; }
  .modal-footer { padding: 18px 25px 30px; }
  .modal-checkbox { font-size: 13px; }
  .modal-checkbox input { width: 18px; height: 18px; }
  .modal-button { padding: 16px 35px; font-size: 14px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-content, .modal-close, .modal-button, .modal-body ul li, .modal-button::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.modal-close:focus-visible,
.modal-button:focus-visible,
.modal-checkbox input:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 3px;
}