/* ==========================================================================
   EGAME.AZ - STORE COMPONENT STYLES (PREMIUM GAMING UI - FINAL)
   ========================================================================== */

:root {
    --store-card-bg: rgba(255, 255, 255, 0.03);
    --store-card-hover: rgba(255, 255, 255, 0.07);
    --store-border: rgba(255, 255, 255, 0.08);
}

/* Animasiya: Kartların səliqəli şəkildə ekrana gəlməsi */
@keyframes storeFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: storeFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Grid Sistemi */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 10px 5px;
    margin-top: 10px;
}

/* Kartın Əsas Qabığı */
.store-card {
    background: var(--store-card-bg);
    border: 1px solid var(--store-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.store-card:hover {
    transform: translateY(-10px);
    background: var(--store-card-hover);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Şəkil Hissəsi */
.store-img-container {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.store-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.85;
}

.store-card:hover .store-img {
    transform: scale(1.15);
    opacity: 1;
}

/* Oyun Etiketi (Badge) */
.store-game-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
}

/* Məzmun */
.store-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-item-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.store-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Qiymət və Düymə Sahəsi */
.store-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.store-price {
    display: flex;
    flex-direction: column;
}

.store-price .currency {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.store-price .amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
}

/* Xüsusi AL Düyməsi */
.store-buy-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.store-buy-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.store-buy-btn:active {
    transform: scale(0.95);
}

/* Status Mesajları */
.loading-text, .empty-msg, .error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    border-radius: 12px;
}

/* Mağaza üçün xüsusi scrollbar (əgər lazım olsa) */
#store-container::-webkit-scrollbar {
    width: 6px;
}

#store-container::-webkit-scrollbar-thumb {
    background: var(--store-border);
    border-radius: 10px;
}

#store-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}




/* ==========================================================================
   EGAME.AZ - MAĞAZA (STORE) MOBİL UYĞUNLAŞDIRMASI (RESPONSIVE)
   ========================================================================== */

/* --- 1. PLANŞETLƏR VƏ KİÇİK EKRANLAR (Max: 1024px) --- */
@media screen and (max-width: 1024px) {
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 20px !important;
        padding: 5px !important;
    }

    .store-img-container {
        height: 150px !important;
    }
}

/* --- 2. MOBİL TELEFONLAR (Max: 768px) --- */
@media screen and (max-width: 768px) {
    
    .store-grid {
        /* Mobildə hər sətirdə yalnız 1 böyük kart və ya 2 yığcam kart olsun. 
           Mən Premium görünüş üçün alt-alta (1fr) etdim. 
           Yan-yana istəsən bunu dəyişib 'minmax(150px, 1fr)' edə bilərsən. */
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
        padding: 0 !important;
        margin-top: 15px !important;
    }

    .store-card {
        flex-direction: row !important; /* Mobildə üfüqi (yan-yana) kart düzülüşü (Spotify/Netflix style) */
        height: 120px !important; /* Kartın hündürlüyünü sabitləyirik */
        border-radius: 12px !important;
        align-items: center;
        padding-right: 15px;
    }

    /* Mobildə hover effekti (yuxarı qalxma) adətən əsəb pozur, sadələşdiririk */
    .store-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    }

    /* Şəkil Hissəsi - Sol tərəfə keçir və kiçilir */
    .store-img-container {
        width: 110px !important;
        height: 100% !important;
        flex-shrink: 0;
        border-right: 1px solid var(--store-border);
    }

    .store-game-tag {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 6px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }

    /* Məzmun Hissəsi - Sağ tərəf */
    .store-content {
        padding: 12px !important;
        justify-content: center;
        height: 100%;
    }

    .store-item-name {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        /* Çox uzun adlar kəsiləcək */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobildə geniş təsvirə (description) yer qalmır deyə gizlədirik və ya qısaldırıq */
    .store-item-desc {
        display: none !important; 
    }

    /* Qiymət və Düymə Sahəsi */
    .store-footer {
        padding-top: 8px !important;
        border-top: none !important; /* Xətti silirik */
        margin-top: 0 !important;
    }

    .store-price .amount {
        font-size: 16px !important;
    }

    .store-price .currency {
        font-size: 8px !important;
    }

    .store-buy-btn {
        padding: 8px 16px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }
}

/* --- 3. ÇOX KİÇİK EKRANLAR ÜÇÜN (iPhone SE, vs. Max: 380px) --- */
@media screen and (max-width: 380px) {
    .store-card {
        height: 100px !important; /* Daha da kiçik */
        padding-right: 10px !important;
    }
    .store-img-container { width: 90px !important; }
    .store-item-name { font-size: 13px !important; }
    .store-buy-btn { padding: 6px 12px !important; font-size: 10px !important; }
    .store-price .amount { font-size: 14px !important; }
}