/* === Allstar Hero Slider (v2.5.0 - Final Centering Fix) === */

/* --- Base --- */
.ahs-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 90vh; color: #fff; background-color: #07101B;
  --ahs-bg-image: none; transition: min-height 0.3s ease;
}
.ahs-fullbleed {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}
.ahs-hero .ahs-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7,16,27,0.85) 0%, rgba(7,16,27,0.70) 40%, rgba(7,16,27,0.40) 70%, rgba(7,16,27,0.60) 100%),
    radial-gradient(1200px 600px at 25% 30%, rgba(249,122,31,0.15), transparent 60%),
    radial-gradient(900px 500px at 80% 25%, rgba(0,153,255,0.12), transparent 55%),
    var(--ahs-bg-image);
  background-size: cover; background-position: center; transition: background-image 0.5s ease-in-out; 
  pointer-events: none; z-index: 0;
}

/* --- Watermark --- */
.ahs-watermark-container {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; z-index: 1; pointer-events: none;
  display: flex; justify-content: center; align-items: center;
}
.ahs-watermark-item {
  position: absolute; display: flex; justify-content: center; align-items: center;
  text-align: center; width: 100vw; font-weight: 900; letter-spacing: .02em;
  font-size: 25vw; line-height: 1; color: rgba(255,255,255,0.05);
  text-transform: uppercase; white-space: nowrap;
  opacity: 0 !important; visibility: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease; will-change: transform, opacity;
}
.ahs-watermark-item.is-active {
  opacity: unset !important; visibility: visible;
  animation: ahsWatermarkIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ahs-watermark-item:not(.is-active) { opacity: 0 !important; visibility: hidden !important; }
@keyframes ahsWatermarkIn { from { transform: scale(1.1); } to { transform: scale(1); } }

/* --- Container --- */
.ahs-container {
  position: relative; z-index: 2; width: min(1200px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 64px 0 80px 0; 
}

/* --- Temel Flex Kutusu --- */
.ahs-left { 
  position: relative; display: flex; flex-direction: column; justify-content: center; 
}

/* --- Animasyonlar --- */
.ahs-slide { display: none; position: relative; }
.ahs-slide.is-active { display: block; }
.ahs-slide.is-active .ahs-kicker { animation: ahsIn 0.5s ease 0s both; }
.ahs-slide.is-active .ahs-headline { animation: ahsIn 0.5s ease 0.1s both; }
.ahs-slide.is-active .ahs-desc { animation: ahsIn 0.5s ease 0.2s both; }
.ahs-slide.is-active .ahs-promo { animation: ahsIn 0.5s ease 0.3s both; }
.ahs-slide.is-active .ahs-actions { animation: ahsIn 0.5s ease 0.4s both; }
@keyframes ahsIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Typo Defaults */
.ahs-kicker { font-weight: 700; letter-spacing: .02em; font-size: 16px; margin-bottom: 10px; }
.ahs-headline { font-size: clamp(44px, 6vw, 76px); line-height: 1.05; font-weight: 900; margin: 0 0 16px 0; }
.ahs-desc { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; margin: 0 0 10px 0; max-width: 90%; }
.ahs-promo { font-size: 16px; margin: 0 0 22px 0; max-width: 60ch; font-style: italic; }
.ahs-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.ahs-btn {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  user-select: none; text-decoration: none; transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ahs-btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
.ahs-btn svg { fill: currentColor; width: 1em; height: 1em; position: relative; top: -1px; }
.ahs-btn i { font-size: 1em; }
.ahs-accent { color: #F97A1F; }
.ahs-muted { color: rgba(255,255,255,0.72); }

/* --- Right Side --- */
.ahs-right { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.ahs-media { display: none; position: relative; }
.ahs-media.is-active { display: block; animation: ahsFadeIn 0.6s ease both; }
@keyframes ahsFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.ahs-glass {
  border: 1px solid rgba(255,255,255,0.10); background: rgba(18,28,45,0.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* --- FRAME --- */
.ahs-frame {
  width: min(521px, 85vw); aspect-ratio: 521 / 677; overflow: hidden; 
  border-radius: 20px; position: relative; line-height: 0; font-size: 0; 
}
.ahs-media.is-active .ahs-frame[data-anim="float"] { animation: ahsFloat var(--ahs-anim-duration, 6s) ease-in-out infinite; }
.ahs-media.is-active .ahs-frame[data-anim="pulse"] { animation: ahsPulse var(--ahs-anim-duration, 6s) ease-in-out infinite; }
.ahs-media.is-active .ahs-frame[data-anim="zoom"] { animation: ahsZoom var(--ahs-anim-duration, 6s) ease-in-out infinite; }
.ahs-media.is-active .ahs-frame[data-anim="rock"] { animation: ahsRock var(--ahs-anim-duration, 6s) ease-in-out infinite; }
@keyframes ahsFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes ahsPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
@keyframes ahsZoom { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes ahsRock { 0%,100%{transform:rotate(0deg)} 25%{transform:rotate(2deg)} 75%{transform:rotate(-2deg)} }
.ahs-image { width: 100%; height: 100%; min-height: 100.5%; object-fit: cover; display: block; vertical-align: bottom; transition: transform 0.7s ease; }
.ahs-hero:hover .ahs-image { transform: scale(1.05); }

.ahs-badge {
  position: absolute; right: -20px; bottom: 30px; padding: 16px 24px; border-radius: 16px;
  max-width: 280px; z-index: 2; animation: ahsUp 0.6s ease 0.3s both;
}
@keyframes ahsUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ahs-badge-name { font-weight: 900; font-size: 20px; margin-bottom: 4px; color: #fff; line-height: 1.2; }
.ahs-badge-role { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2; }


/* ================================================================= */
/* === SABİT HİZALAMA AYARLARI (Panelden Seçim Kaldırıldı) === */
/* ================================================================= */

/* --- 1. MASAÜSTÜ (1025px ve Üzeri) --- */
@media (min-width: 1025px) {
    /* Masaüstünde Her Zaman SOLA YASLA */
    .ahs-left { 
        text-align: left; 
        align-items: flex-start; 
    }
    .ahs-actions { 
        justify-content: flex-start; 
    }
    
    /* Emniyet Kilidi: Masaüstünde oklar asla gizlenmesin */
    .ahs-mobile-hide-nav { display: flex !important; }
}

/* --- 2. TABLET ve MOBİL (1024px ve Altı) --- */
@media (max-width: 1024px) {
    /* Mobilde/Tablette Her Zaman ORTAYA YASLA */
    .ahs-left { 
        text-align: center; 
        align-items: center;
        width: 100%; /* Kapsayıcının tam genişlikte olmasını sağla */
    }
    .ahs-actions { 
        justify-content: center; 
    }
    
    /* Metin kutularının kenar boşluklarını sıfırla ve ortala */
    .ahs-headline, .ahs-kicker, .ahs-desc, .ahs-promo {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    
    /* Max-width olan elemanlar için özel düzeltme */
    .ahs-desc { max-width: 90% !important; }
    
    /* Layout Düzeni (Tek Sütun) */
    .ahs-container { 
        grid-template-columns: 1fr; 
        gap: 32px; 
        padding: 40px 0 80px 0; 
    }
    .ahs-right { 
        order: -1; 
        min-height: auto; 
        margin-bottom: 10px; 
        text-align: center; 
    }
    .ahs-frame { 
        width: min(400px, 80vw); 
        margin: 0 auto; 
    }
}

/* --- 3. MOBİL ÖZEL AYARLAR (767px ve Altı) --- */
@media (max-width: 767px) {
    .ahs-frame { width: 85vw; }
    .ahs-badge { right: 50%; transform: translateX(50%); bottom: -20px; width: max-content; animation: none; }
    .ahs-headline { font-size: 28px; }
    .ahs-watermark-item { font-size: 35vw; }
    
    /* Görsel Gizleme Özelliği İçin */
    .ahs-mobile-img-hide .ahs-right { display: none !important; }

    /* Mobilde Navigasyon Oklarını Gizle */
    .ahs-mobile-hide-nav { display: none !important; }
}


/* --- Nav & Modal --- */
.ahs-nav {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3;
  pointer-events: none; display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}
.ahs-arrow {
  pointer-events: auto; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(18,28,45,0.3);
  backdrop-filter: blur(10px); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; padding: 0;
  -webkit-tap-highlight-color: transparent !important; -webkit-touch-callout: none !important;
  user-select: none !important; outline: none !important;
}
.ahs-arrow svg { pointer-events: none; fill: currentColor; width: 1em; height: 1em; }
.ahs-arrow:hover { background: rgba(249,122,31,0.9); border-color: #F97A1F; transform: scale(1.1); box-shadow: 0 0 20px rgba(249,122,31,0.4); }
.ahs-arrow:focus, .ahs-arrow:active, .ahs-arrow:focus-visible, .ahs-arrow:visited { outline: 0 !important; box-shadow: none !important; background-color: transparent; }

.ahs-dots {
  position: absolute; bottom: 30px; left: 0; width: 100%; display: flex; justify-content: center; gap: 12px; z-index: 10; pointer-events: none;
}
.ahs-dot {
  pointer-events: auto; appearance: none; -webkit-appearance: none; padding: 0;
  width: 10px; height: 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent !important; outline: none !important;
}
.ahs-dot:hover { background: rgba(255,255,255,0.6); }
.ahs-dot:focus, .ahs-dot:active { outline: none !important; box-shadow: none !important; }
.ahs-dot.is-active { width: 36px; background: #F97A1F; border-color: #F97A1F; }

.ahs-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.ahs-modal.is-open { display: block; }
.ahs-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); animation: fadeIn 0.3s ease; }
.ahs-modal-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(900px, 90vw); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
  background: #000; box-shadow: 0 25px 50px rgba(0,0,0,0.5); animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: translate(-50%, -48%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.ahs-modal-close {
  position: absolute; right: -40px; top: -40px; width: 40px; height: 40px; border: none;
  background: transparent; color: #fff; font-size: 32px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent !important; outline: none !important;
}
.ahs-modal-close:hover { opacity: 1; }
.ahs-modal-body { padding: 0; border-radius: 16px; overflow: hidden; }
.ahs-video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.ahs-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .ahs-slide.is-active *, .ahs-media.is-active, .ahs-btn-hero, .ahs-modal-panel, .ahs-watermark-item.is-active { animation: none !important; transition: none !important; }
}

/* ================================================================= */
/* === KART IZGARASI (Görsel yerine kutular) === */
/* ================================================================= */

.ahs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(521px, 85vw);
  align-content: center;
}

.ahs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 14px;
  background-color: #fff;
  border-radius: 18px;
  padding: 24px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ahs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.ahs-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #faddcd;
  flex: 0 0 auto;
}

.ahs-card-icon i { font-size: 26px; line-height: 1; color: #1f2937; }
.ahs-card-icon svg { width: 26px; height: 26px; fill: #1f2937; }

.ahs-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  letter-spacing: .01em;
}

/* --- TABLET (1024px ve altı) --- */
@media (max-width: 1024px) {
  .ahs-cards { width: min(400px, 80vw); margin: 0 auto; }
  .ahs-card { padding: 18px 12px; gap: 10px; }
  .ahs-card-icon { width: 54px; height: 54px; }
  .ahs-card-icon i { font-size: 22px; }
  .ahs-card-icon svg { width: 22px; height: 22px; }
  .ahs-card-title { font-size: 14px; }
}

/* --- MOBİL (767px ve altı) --- */
@media (max-width: 767px) {
  .ahs-cards { width: 85vw; gap: 12px; }
  .ahs-card { padding: 16px 10px; gap: 8px; border-radius: 14px; }
  .ahs-card-icon { width: 46px; height: 46px; }
  .ahs-card-icon i { font-size: 19px; }
  .ahs-card-icon svg { width: 19px; height: 19px; }
  .ahs-card-title { font-size: 13px; line-height: 1.3; }

  /* "Mobilde Görseli Gizle" ayarı açıkken sağ sütunun tamamı gizleniyordu.
     Kart kullanılan slider'da sütun açık kalsın, sadece foto ve rozet gizlensin. */
  .ahs-mobile-img-hide .ahs-hero.ahs-has-cards .ahs-right { display: flex !important; }
  .ahs-mobile-img-hide .ahs-hero.ahs-has-cards .ahs-frame,
  .ahs-mobile-img-hide .ahs-hero.ahs-has-cards .ahs-badge { display: none !important; }
}
