/* ==========================================================================
   GAYE ASANSÖR - COMPONENTS & UI ELEMENTS (2026 Edition)
   ========================================================================== */

/* Hero Banner Component */
.hero-slider {
  position: relative;
  background: #0f172a;
  color: var(--text-white);
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  padding: 4rem 0 8rem 0;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  filter: contrast(1.05) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.35) 50%, rgba(15, 23, 42, 0.55) 100%);
  z-index: 1;
}

.hero-slider .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(183, 8, 20, 0.2);
  border: 1px solid rgba(183, 8, 20, 0.5);
  color: #ff6b76;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title span {
  color: #ff4d5a;
  background: linear-gradient(135deg, #ff4d5a 0%, #ff858d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}

.card-feature {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

/* Standardized feature card SVG icons */
.feature-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Inline site-wide SVG icons (phone, email, pin, send, etc.) */
.site-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
  display: inline-block;
}

/* Larger icon context (buttons) */
.btn .site-icon {
  width: 18px;
  height: 18px;
}


.card-feature h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-feature .btn-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-feature .btn-link:hover {
  gap: 0.6rem;
}

/* Product & Elevator Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  height: 240px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  max-height: 90%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* Forms Styling */
.form-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: var(--primary);
  margin-left: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: #f8fafc;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(183, 8, 20, 0.1);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.75rem;
  }
}

/* Reference Table & Filter */
.search-box-wrapper {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.custom-table th {
  background: var(--secondary);
  color: #ffffff;
  padding: 1rem 1.25rem;
  font-weight: 700;

}

.custom-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.custom-table tbody tr:hover {
  background: var(--primary-light);
}

.city-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* Modal Lightbox & Gallery Slider */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 92%;
  max-height: 92vh;
  position: relative;
  padding: 2.25rem 3.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-alt);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Lightbox Navigation Buttons */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-nav:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 1rem;
}

.modal-next {
  right: 1rem;
}

.modal-header-info {
  text-align: center;
  margin-bottom: 1.25rem;
  width: 100%;
}

.modal-header-info h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.modal-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: hidden;
}

.modal-body img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .modal-box {
    padding: 2rem 1.25rem;
  }
  .modal-prev {
    left: 0.5rem;
  }
  .modal-next {
    right: 0.5rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  animation: slideIn 0.3s forwards;
}

.toast.toast-success {
  border-left-color: var(--accent-green);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* PageSpeed Mobile Optimization: Disable heavy video download on mobile screens (< 768px) */
@media (max-width: 768px) {
  .hero-bg-video {
    display: none !important;
  }
  .hero-slider {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.78)), url('../images/yeni-asansor.png') center/cover no-repeat !important;
    min-height: 440px !important;
    padding: 3rem 0 4rem 0 !important;
    margin-bottom: 2rem !important;
  }
}
