/* ==========================================================================
   SınavaHazırlık.tr - Gelişmiş Alt Bilgi Alanı (Footer) Stilleri (Section 15)
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #09231c 0%, #051813 100%);
  color: #e2e8f0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Arka plan dekoratif hafif ışık huzmeleri */
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 450px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 189, 25, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   1. Pre-Footer / Newsletter & Call to Action Bar
   -------------------------------------------------------------------------- */
.footer-newsletter-bar {
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.newsletter-copy {
  max-width: 580px;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(245, 189, 25, 0.12);
  border: 1px solid rgba(245, 189, 25, 0.3);
  border-radius: 999px;
  color: #f5bd19;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.newsletter-title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.newsletter-subtitle {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.newsletter-form-wrap {
  flex-shrink: 0;
  width: 100%;
  max-width: 460px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 14px;
}

.newsletter-input::placeholder {
  color: #64748b;
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.newsletter-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   2. Main 5-Column Grid
   -------------------------------------------------------------------------- */
.footer-main-grid {
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.05fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Column 1: Brand Info */
.footer-brand-col {
  padding-right: 16px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
  transition: opacity 0.2s;
}

.footer-logo-link:hover {
  opacity: 0.9;
}

.footer-logo-img {
  width: 210px;
  height: auto;
  display: block;
  filter: brightness(1.05) contrast(1.05);
}

.footer-brand-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 22px;
}

/* Trust Badges */
.footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.trust-badge-item svg {
  width: 15px;
  height: 15px;
  color: #10b981;
  flex-shrink: 0;
}

/* Social Media Icons */
.footer-social-section {
  margin-top: auto;
}

.footer-social-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 12px;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social-icon:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.footer-social-icon.youtube:hover {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3);
}

.footer-social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 6px 14px rgba(220, 39, 67, 0.3);
}

.footer-social-icon.telegram:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3);
}

/* Columns 2-5: Nav Columns */
.footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #10b981;
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-nav-link svg {
  width: 13px;
  height: 13px;
  color: #10b981;
  opacity: 0.8;
  flex-shrink: 0;
}

.footer-nav-link .nav-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-link .nav-tag.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.footer-nav-link .nav-tag.badge-free {
  background: rgba(245, 189, 25, 0.15);
  color: #f5bd19;
  border: 1px solid rgba(245, 189, 25, 0.3);
}

/* --------------------------------------------------------------------------
   3. Bottom Bar / Sub-Footer & Copyright
   -------------------------------------------------------------------------- */
.footer-bottom-bar {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  color: #94a3b8;
  font-weight: 500;
}

.footer-motto {
  color: #64748b;
  font-size: 11px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.footer-back-to-top:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-2px);
}

.footer-back-to-top svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   4. Institutional & Legal Dialog Modal Stilleri
   -------------------------------------------------------------------------- */
.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.footer-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.footer-modal-header {
  padding: 24px 28px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-copy {
  flex: 1;
}

.footer-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(15, 118, 107, 0.08);
  border: 1px solid rgba(15, 118, 107, 0.2);
  border-radius: 999px;
  color: #0f766b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-modal-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.footer-modal-date {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.footer-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.footer-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.footer-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
}

.footer-modal-body h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 10px;
}

.footer-modal-body h3:first-child {
  margin-top: 0;
}

.footer-modal-body p {
  margin: 0 0 14px;
}

.footer-modal-body ul, .footer-modal-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.footer-modal-body li {
  margin-bottom: 8px;
}

.footer-modal-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-footer-btn-close {
  padding: 9px 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-footer-btn-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-footer-btn-primary {
  padding: 9px 20px;
  background: #0f766b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-footer-btn-primary:hover {
  background: #0d6259;
}

/* Contact Modal Form Stilleri */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.contact-form-full {
  grid-column: 1 / -1;
}

.contact-field-wrap label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.contact-input, .contact-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-input:focus, .contact-textarea:focus {
  border-color: #0f766b;
  box-shadow: 0 0 0 3px rgba(15, 118, 107, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-card {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
}

.contact-info-card .icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.contact-info-card b {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}

.contact-info-card span {
  font-size: 12px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   5. Responsive Medya Sorguları
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .footer-main-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 700px;
  }
}

@media (max-width: 860px) {
  .footer-newsletter-card {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
  }
  .newsletter-form-wrap {
    max-width: 100%;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .contact-info-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom-right {
    width: 100%;
    justify-content: space-between;
  }
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
  }
  .newsletter-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .newsletter-btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
  }
}
