/* SANAL İNŞAAT VE YAPI FUARI 2026 - ÖZEL CSS STİLLERİ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  overflow-x: hidden;
}

/* Preloader Fade Out Effect */
.loader-fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect Ratio fallback */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* Side Skyscraper positioning adjustments for desktop (160x600px) */
.skyscraper-left,
.skyscraper-right {
  display: none;
  width: 160px;
  height: 600px;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .skyscraper-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 96px;
    left: 12px;
    z-index: 30;
  }
  .skyscraper-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 96px;
    right: 12px;
    z-index: 30;
  }

  /* Prevent main content from overlapping side ads on screens < 1640px */
  main .max-w-7xl {
    max-width: min(1280px, calc(100vw - 364px));
  }
}

@media (min-width: 1640px) {
  .skyscraper-left {
    left: calc(50% - 640px - 176px);
  }
  .skyscraper-right {
    right: calc(50% - 640px - 176px);
  }
}

/* Modal Backdrop Animations */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-content {
  animation: zoomIn 0.2s ease-out;
}
