@charset "utf-8";
/* CSS Document */

.storyroom-banner {
	background: url('../images/bg-banner-kategori.webp'); /* Koyu overlay */
    background-position: center;
	background-repeat: no-repeat;
	width: 100vw;
	height: 257px;
	overflow: hidden;
}
.h1-wrapper {
	color: #fff;
	text-align: center;
	padding-top: 120px;
}


h1 {
	color: #fff;
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 1em #3F4552;
	font-weight: 800 !important; 
	font-family: 'Poppins', sans-serif;
}

.intro-box {
  /* background-color: #F6F6F8;
  border-left: 6px solid #3F4552;*/
  padding: 1rem;

  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1;
  color: #333;
	text-align: center;
}

.intro-box h2 {
  margin-top: 0;
	margin-bottom: 15px;
  font-size: 1.6rem;
  color: #3F4552;
}

.intro-box .kirmizi {
  color: #dc3545;
	clear: both;

		
}
.intro-box  ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
	margin-bottom: 25px;
  padding-bottom: 25px;
}
.intro-box li {float: left; margin-right: 30px;}


    .storyroom-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem 5px 1rem;
    }
    .visual-stage {
      position: relative;
      width: 100%;
      aspect-ratio: 2 / 1;
      overflow: hidden;
		border-bottom: 1px solid rgba(220,53,69); /* #dc3545  */
		border-top: 1px solid rgba(220,53,69,0.4);
    }
    .visual-stage img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
		
    }
    .visual-stage img.visible {
      opacity: 1;
    }
    .alan-buttons { 
      margin: 1rem 0;
    }
    .alan-buttons button {
      margin: 0.3rem;
      padding: 0.3rem 0.8rem;
      border: none;
      background-color: #3F4552;
      color: white;
      border-radius: 4px;
      cursor: pointer;
		opacity: 1;
      transition: opacity 0.3s;
		font-size: 0.85em;
    }

	.alan-buttons button:hover {
		background-color: #af8e26;
	}
	 .alan-buttons button:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }



    .cta {
      text-align: center;
      margin-top: 1rem;
    }
    .cta a {
      color: #af8e26;
      text-decoration: underline;
    }
.alan-buttons .tour-end-button {
  background-color: #dc3545; 
}
.alan-buttons .tour-end-button:hover {
  background-color: #e74c3c;
}

/*  -----  HOTSPOTS    ----------------     */
.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #dc3545;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;

	text-align: center;
	font-size: 0.9em;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.6), 0 0 1em red;
	margin-top: -0.08em;
	font-weight: bold;
}

.hotspot.disabled {
  background-color: #DC3545 ;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hotspot.active-step {
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 10px #af8e26;
}


/* ----- Tur Kontrol Butonu ----- */
.tour-control-button {
  position: absolute; 
  bottom: 20px;      
  right: 20px;       
  z-index: 10;        
  
  padding: 0.5rem 1.2rem;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  background-color: #dc3545; 
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}

.tour-control-button:hover {
  background-color: #c82333;
  transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

/**  TAB BUTON   **/
.tab-buttons {
  display: flex;
  gap: 5px;
  /*border-bottom: 1px solid #ddd;*/
  margin-bottom: 20px;
  flex-wrap: wrap;
	
}

.tab-btn {
   background-color:#F8f8f8;
	border-radius: 3px;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: 0.3s;
  font-size: 0.78em;
	border-bottom: 2px solid #666;
}

.tab-btn.active {  
	background-color:#fff;
  color: #000;
  border-bottom: 2px solid #dc3545;
	border-radius: 0px;
}

.tab-buttons-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/*   TAB BÖLMELER   */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}
.tab-pane h3 {
  color:#dc3545  ;

	}
/* Tab panelini başlangıçta gizle */
#tab-panel {
    display: none;
}

#tab-panel.show {
    display: block;
}

/* Tab butonlarını tek tek gizle */
.tab-btn {
    display: none !important; /* Başlangıçta görünmez yap */
}

/* 'revealed' sınıfı gelen buton görünür olsun */
.tab-btn.revealed {
    display: inline-block !important; 
}

/* Tab İçerik Düzeni */
.tab-pane .content-wrapper {
    display: grid;
    /* 4 eşit sütunlu yapı */
    grid-template-columns: repeat(4,1fr) !important;
    gap: 24px;
    align-items: start;
}

/* Sol taraftaki başlık ve açıklama kutusu */
.info-side {
    grid-column: span 1; /* Sadece 1 sütun kapla */
    text-align: left;
    padding-right: 15px;
}

.info-side h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #af8e26;
}

.info-side p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Ürün Grid Yapısı */
/* İlk satırda info-side'dan kalan 3 boşluğa ürünler yerleşecek, 
   sonraki satırlarda otomatik 4'lü devam edecek */
.product-grid {
    display: contents !important; /* Grid elemanlarını üst wrapper'a dahil eder */
}

/*  GRİD    */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  gap: 24px;
  margin-top: 20px;
  
}

.tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding:0 20px 20px 20px;
}

/*  ÜRÜN KARTLARI   */
.product-card {
  position: relative;
  background: #fff;

  border-radius: 14px;
  overflow: hidden;
  
  text-align: left;
  width: 100%;
  max-width: 280px;
  /* yükseklikleri eşitle  */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  /* yükseklikleri eşitle  */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;

  padding: 12px;
  transition: transform .35s ease;
}
.product-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 14px 16px;
  margin: 0;
  min-height: 44px;
}

.product-card:hover {
  transform: translateY(-4px);
 /*box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2);*/
   box-shadow: 0 3px 10px rgba(175, 142, 38, 0.2);
}

.product-card:hover img {
  transform: scale(1.05);
}
 
/* Ürün Bilgi Alanı */
.product-info {
    padding: 10px;
    text-align: center;
}

/* Marka (Üstte, Gri ve Küçük) */
.product-brand {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

/* Ürün Adı (Daha Belirgin) */
.product-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

/* Kategori (En Altta, Hafif Vurgulu) */
.product-cat {
    display: block;
    font-size: 12px;
    color: #888; 
    margin-top: 5px;
	font-weight: 600 !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(175, 142, 38, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(175, 142, 38, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(175, 142, 38, 0.7);
  }
}


/* ----- Açılan bilgi kutusu ------------------ */
.tooltip-box {
  position: absolute;
  background: #fff;
  border-top: 1px solid #dc3545;
  border-bottom: 1px solid #dc3545;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  max-width: 240px;
  display: none;
  z-index: 99;
  pointer-events: none;
}
.tooltip-box.active {
  display: block;
}



@media (max-width: 992px) {
    .tab-pane .content-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2'li */
    }
    .info-side {
        grid-column: span 2; /* Metin en üste yayılır */
    }
}

@media (max-width: 768px) {
	
	.storyroom-wrapper {
      padding: 0.8rem 1rem 5px 1rem;
    }
	
	.intro-box h3 {
        font-size: 1rem !important; /* Başlık boyutu */
        line-height: 1.4;
    }

    .intro-box p {
        font-size: 0.7rem !important; /* Paragraf metni boyutu */
        margin-bottom: 10px;
    }

    .intro-box strong {
        font-size: 0.75rem !important; /* Vurgulu (bold) metinler */
    }
	
	
      
	.tooltip-box {
	max-width: 35vw;
    
    transform: translateX(-50%);
		transform: translateY(-20%);
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.75rem  !important;
    padding: 5px !important;
  }

  .tooltip-box strong {
    display: block !important;
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
  }

  .tooltip-box p {
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  .tour-control-button {
  bottom: 7px;      
  right: 10px;       
  font-size: 0.7em;
  padding: 0.3rem 0.9rem;
}
		
.tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Yan yana tam 3 adet */
        gap: 6px !important; /* Butonlar arası boşluk */
        flex-direction: row !important; /* Eski alt alta dizilimi iptal et */
        align-items: stretch !important;
    }

    /* Butonların içindeki yazıların sığması için ufak düzenlemeler */
    .tab-btn {
        display: none !important; /* Başlangıçta gizli (JS revealed ekleyince açılır) */
        padding: 8px 4px !important; /* İç boşluğu daralt */
        font-size: 10px !important; /* Yazı boyutunu küçült ki buton dışına taşmasın */
        line-height: 1.2 !important;
        text-align: center !important;
        min-height: 35px !important; /* Buton yüksekliklerini eşitle */
        justify-content: center;
        align-items: center;
    }

    /* Görünür olan butonlar grid içinde yerini alır */
    .tab-btn.revealed {
        display: flex !important; 
    }

    /* Aktif olan butonun altındaki siyah çizgiyi mobilde de belirgin yapalım */
    .tab-btn.active {
        border-bottom: 2px solid #dc3545 !important;
        background: #fff !important;
    }
	/* Mobilde 3 sütunlu yapı */
    .content-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    /* Başlık mobilde en üste, tüm genişliğe yayılsın */
    .info-side {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 15px;
    }


    /* Kart görsellerini ve yazılarını mobilde biraz daha küçültelim ki 3 tane sığsın */
    .product-card img {
        height: 70px !important;
        padding: 5px !important;
    }

    .product-card p.product-name {
        font-size: 10px !important;
        min-height: auto !important;
    }
    
    .product-brand, .product-cat {
        font-size: 9px !important;
    }
		
}

@media (max-width: 992px) {
	.footer-section {
		margin-top: 70px;
	}
}
@media (max-width: 576px) {
	.tooltip-box {
		
	}
	
}