/* ==========================================
   SAHNE VE YERLEŞİM AYARLARI
   ========================================== */
.interactive-box-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, #1a1025 0%, #0b0f19 100%);
    border-bottom: 1px dashed var(--primary-gold);
    overflow: hidden; /* Süzülen eşyalar ekrandan taşmasın */
}

/* 3 kutuyu yan yana dizecek esnek (flex) sahne */
.box-stage {
    display: flex;
    align-items: flex-end; /* Kutuları alt hizadan eşitler */
    justify-content: center;
    gap: 40px; /* Kutular arası boşluk */
    flex-wrap: wrap; /* Mobilde alt alta geçsinler */
    min-height: 400px;
    perspective: 1200px; /* 3D derinlik algısı */
    margin-top: 50px;
}

/* Her bir kutuyu ve altındaki butonu tutan grup */
.box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-label {
    color: var(--primary-gold);
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ==========================================
   GENEL KUTU (SAF CSS 3D MİMARİSİ)
   ========================================== */
.css-box {
    width: 200px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    
    /* Standart Renk Değişkenleri (Her kutuda aşağıda değişecek) */
    --box-bg: #141b2d;
    --ribbon-bg: #d4af37;
    --border-color: #d4af37;
}

/* --- LÜKS SEVİYELERİ (YILDIZ, AY, GÜNEŞ) --- */

/* 1. Yıldız Paket (Craft Rengi, Lacivert Kurdele, Daha Minimal) */
.box-yildiz {
    --box-bg: #c09066; 
    --ribbon-bg: #1a2538; 
    --border-color: #8c6342;
    transform: scale(0.9); /* Bir tık daha küçük */
}

/* 2. Ay Paket (Gece Mavisi, Klasik Altın Kurdele) */
.box-ay {
    --box-bg: #141b2d; 
    --ribbon-bg: #d4af37;
    --border-color: #d4af37;
    transform: scale(1);
}

/* 3. Güneş Paket (Simsiyah, Parlak Altın Kurdele, Gösterişli) */
.box-gunes {
    --box-bg: #111111; 
    --ribbon-bg: #f1c40f; /* Çok daha parlak bir altın */
    --border-color: #f1c40f;
    transform: scale(1.1); /* En büyük ve gösterişli */
}

/* ==========================================
   KUTUNUN PARÇALARI (İÇ, KAPAK VE KURDELE)
   ========================================== */

/* Kutunun İçi (Karanlık Derinlik) */
.css-box-inside {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #05080f;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
    z-index: 1;
}

/* Kutunun Kapağı */
.css-box-lid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--box-bg); /* Rengi değişkenden alır */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    z-index: 10;
    transform-origin: top; /* Menteşe üstte */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kapak Açılma Animasyonu */
.css-box.is-open .css-box-lid {
    transform: rotateX(110deg) translateY(-20px);
    opacity: 0; /* İçeriği engellemesin diye kaybolur */
}

/* Kurdele Detayları */
.ribbon-vertical {
    position: absolute;
    width: 25px;
    height: 100%;
    background: var(--ribbon-bg);
    left: 50%;
    transform: translateX(-50%);
}

.ribbon-horizontal {
    position: absolute;
    width: 100%;
    height: 25px;
    background: var(--ribbon-bg);
    top: 50%;
    transform: translateY(-50%);
}

.ribbon-bow {
    position: absolute;
    color: var(--ribbon-bg);
    font-size: 3rem;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    z-index: 2;
}

.lid-logo {
    position: absolute;
    bottom: 15px;
    color: var(--ribbon-bg);
    font-family: var(--font-head);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.8rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 5px;
}

/* ==========================================
   KUTUDAN ÇIKAN EŞYALAR VE ETKİLEŞİM
   ========================================== */
.css-box-items {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.item-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary-gold);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-gold);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-card i { font-size: 1.5rem; margin-bottom: 5px; }
.item-card span { font-size: 0.7rem; font-family: var(--font-head); }

.item-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
}

/* Süzülme (Yelpaze) Efekti */
.css-box.is-open .item-left {
    transform: translate(-120px, -60px) scale(1) rotate(-15deg);
    opacity: 1;
}

.css-box.is-open .item-right {
    transform: translate(60px, -60px) scale(1) rotate(15deg);
    opacity: 1;
}

.css-box.is-open .item-center {
    transform: translate(-50%, -100px) scale(1);
    opacity: 1;
}

/* Etkileşimli Taş (Oyunlaştırma) */
.dynamic-stone-icon {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at center, #a87eb3, #4a285c);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 15px rgba(168, 126, 179, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: floatItem 3s infinite ease-in-out;
}

.item-wrapper:hover .dynamic-stone-icon {
    transform: scale(1.4);
    border-color: #fff;
}

/* Bilgi Kutucuğu (Tooltip) */
.item-tooltip {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    background: rgba(20, 27, 45, 0.95);
    border: 1px solid var(--primary-gold);
    padding: 15px;
    border-radius: 10px;
    width: 180px;
    text-align: center;
    color: var(--text-main);
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.item-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary-gold) transparent transparent transparent;
}

.item-tooltip h4 { 
    color: var(--primary-gold); 
    margin-bottom: 5px; 
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3); 
    padding-bottom: 5px; 
    font-size: 1rem;
}
.item-tooltip p { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    margin: 0; 
}

.item-wrapper:hover .item-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes floatItem {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   AÇMA/KAPATMA BUTONU
   ========================================== */
.btn-box-toggle {
    margin-top: 30px;
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    padding: 10px 25px;
    font-size: 1rem;
    font-family: var(--font-body);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-box-toggle:hover {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
}

/* ==========================================
   KRAFT KAĞIT ETİKETLER (YILDIZ, AY, GÜNEŞ)
   ========================================== */
.box-tag {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background-color: #dcb38a; /* Kraft kağıt rengi */
    color: #333;
    padding: 5px 15px;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(15deg);
    box-shadow: 2px 5px 10px rgba(0,0,0,0.5);
    z-index: 20; /* Kurdelenin üstünde dursun */
    border-radius: 3px;
    border: 1px dashed #a67c52;
}

/* Etiketin ip detayı */
.box-tag::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 10px;
    width: 2px;
    height: 15px;
    background-color: var(--primary-gold); 
    transform: rotate(-15deg);
}