/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #0f0f13;
    color: #fff;
    overflow-x: hidden;
}

/* ===============================
   BACKGROUND BALLS
================================ */
.bg-balls .ball {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
}

.pink {
    width: 180px;
    height: 180px;
    top: 80px;
    left: 80px;
    background: radial-gradient(circle, #ff7ad9, #ff0080);
}

.purple {
    width: 220px;
    height: 220px;
    bottom: 80px;
    left: 150px;
    background: radial-gradient(circle, #c084fc, #7c3aed);
}

.orange {
    width: 180px;
    height: 180px;
    top: 200px;
    right: 80px;
    background: radial-gradient(circle, #ffcc70, #ff8c00);
}

/* ===============================
   HEADER
================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    z-index: 10;
}

/* MENU */
.hamburger div {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 60%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.nav-links a {
    display: block;
    padding: 10px;
    color: #fff;
}

/* ===============================
   MAIN
================================ */
.main {
    padding: 80px 15px 80px;
}

/* ===============================
   STORE ITEM (FIXED LAYOUT)
================================ */
.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 10px;
    gap: 10px;
}

.store-item > div:first-child { /* انتخاب div اول داخل store-item */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.store-item h2 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.store-item p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

.icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    flex-shrink: 0;
    object-fit: cover;
}

.button {
    background: orange;
    color: #000;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .store-item {
        flex-wrap: wrap;
    }
    
    .store-item > div:first-child {
        order: 1;
        width: 70%; /* متن 70% عرض */
    }
    
    .icon {
        order: 2;
        width: 25%; /* آیکون 25% عرض */
        height: auto;
        max-width: 60px;
    }
}


/* ===============================
   FIXED FOOTER MENU
================================ */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    
    display: flex;
    justify-content: space-around; /* فاصله مساوی بین دکمه‌ها */
    align-items: center; /* تراز عمودی دقیق در ارتفاع فوتر */
    
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* خط جداکننده بالا */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); /* سایه پایین */
    
    z-index: 1000;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center; /* آیکون و متن را افقی وسط‌چین می‌کند */
    justify-content: center; /* اگر ارتفاع زیاد بود، عمودی هم وسط‌چین شود */
    
    text-decoration: none; /* اگر <a> دارید، خط زیرش حذف شود */
    color: inherit;
    transition: transform 0.2s;
}

.menu-icon:active {
    transform: scale(0.95); /* افکت کلیک */
}

.menu-icon-image {
    width: 25px;
    height: 25px; /* حتماً ارتفاع هم مشخص شود تا فاصله حفظ شود */
    object-fit: contain; /* اگر عکس SVG است یا ریسپانسیو */
    display: block;
}

.menu-icon-text {
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    text-align: center; /* متن را هم وسط‌چین می‌کند */
}

/* تنظیمات مخصوص موبایل (اگر آیکون‌ها خیلی ریز به نظر رسیدند) */
@media (max-width: 600px) {
    .footer-menu {
        height: 60px; /* کمی ارتفاع فوتر در موبایل کمتر */
        border-top: none;
    }
    
    .menu-icon-image {
        width: 22px;
        height: 22px;
    }
    
    .menu-icon-text {
        font-size: 10px;
        margin-top: 3px;
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .nav-links {
        width: 100%;
    }

    .icon {
        width: 70px;
        height: 70px;
    }

    /* توپ‌ها کوچیک */
    .pink { width: 120px; height: 120px; }
    .purple { width: 140px; height: 140px; }
    .orange { width: 120px; height: 120px; }
}