/* =============================================
   NexusMC — Store Stylesheet
   ============================================= */

/* === STORE HERO === */
.store-hero {
    position: relative;
    z-index: 1;
    padding: 140px 0 60px;
    text-align: center;
}

.store-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.store-title i {
    color: var(--primary-light);
    margin-right: 10px;
}

.store-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* === STORE CONTENT === */
.store-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 80px;
}

/* === CATEGORY TABS === */
.store-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
}

.category-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.category-tab i {
    font-size: 16px;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* === PACKAGES GRID === */
.store-packages {
    min-height: 300px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* === PACKAGE CARD === */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.5s ease forwards;
}

.package-card:nth-child(1) { animation-delay: 0.05s; }
.package-card:nth-child(2) { animation-delay: 0.1s; }
.package-card:nth-child(3) { animation-delay: 0.15s; }
.package-card:nth-child(4) { animation-delay: 0.2s; }
.package-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.package-card.popular {
    border-color: var(--primary);
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    z-index: 2;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
}

/* Card header */
.package-header {
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pkg-color, var(--primary));
}

.package-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.package-price .currency {
    font-size: 1rem;
    color: var(--pkg-color, var(--primary-light));
    font-weight: 700;
}

.package-price .amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--pkg-color, var(--primary-light));
}

.package-description {
    padding: 0 24px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Features list */
.package-features {
    padding: 20px 24px;
    list-style: none;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--pkg-color, var(--success));
    margin-top: 3px;
    flex-shrink: 0;
}

/* Buy button */
.package-footer {
    padding: 0 24px 24px;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--pkg-color, var(--primary)), color-mix(in srgb, var(--pkg-color, var(--primary)), black 20%));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: white;
    filter: brightness(1.1);
}

.btn-buy.no-link {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-muted);
    border: 2px dashed var(--border);
    cursor: default;
    box-shadow: none;
}

.btn-buy.no-link:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* === LOADING === */
.store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === STORE INFO === */
.store-info {
    position: relative;
    z-index: 1;
    padding: 0 0 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.info-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 18px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* === NO PACKAGES MESSAGE === */
.no-packages {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.no-packages i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .store-title { font-size: 1.8rem; }

    .store-categories {
        gap: 8px;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 12px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
