/* Vice Shop - Redesigned (matches newswire-redesign) */

/* Use same fonts as site (Inter, Space Grotesk) */
.vice-shop-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-primary: var(--card-bg, #fff);
    --text-primary: var(--card-text, #1e293b);
    --text-secondary: var(--gray, #64748b);
    --border-color: var(--card-border, #e2e8f0);
}

.vice-shop-container h1,
.vice-shop-container h2,
.vice-shop-container h3,
.vice-shop-container h4 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container - identical to vice-coins-page */
.vice-shop-container {
    margin-left: 4.5vw;
    padding: 2.5rem 2.5rem 5rem 2.5rem;
    max-width: 110.497vw;
    margin-right: auto;
    min-height: 100vh;
    background-color: #F5F5F7;
}

/* Header Bar — белый фон, вплотную к хедеру сайта, тень внизу */
.vice-shop-header-bar {
    background: #ffffff;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 0.25vw 0.8vw rgba(0, 0, 0, 0.08);
}

/* Page Header - identical to Vice Coins Store */
.vice-shop-page-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0;
}

.vice-shop-page-header .header-left {
    display: flex;
    flex-direction: column;
}

.vice-shop-page-header .page-title {
    font-size: 4rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: normal;
    line-height: 1;
    margin: 0;
}

.vice-shop-page-header .title-highlight {
    background: linear-gradient(to right, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vice-shop-page-header .page-subtitle {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-left: 0.5rem;
    border-left: 0.276vw solid #9333ea;
    margin: 0;
    margin-top: 1rem;
}

/* Main Layout - Ad column 16vw like newswire */
.vice-shop-main-layout {
    display: grid;
    grid-template-columns: 15vw 1fr 16vw;
    gap: 1.2vw;
}

/* Left Sidebar */
.vice-shop-sidebar {
    position: sticky;
    top: 8vw;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

/* Balance Card */
.vice-shop-balance-card {
    position: relative;
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    overflow: hidden;
    padding: 0.9vw;
}

.vice-shop-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.15vw;
    background: linear-gradient(90deg, #6366F1, #EC4899);
}

.vice-shop-balance-card .balance-info {
    display: flex;
    align-items: center;
    gap: 0.7vw;
}

.vice-shop-balance-card .balance-icon-wrapper {
    width: 2.4vw;
    height: 2.4vw;
    border-radius: 0.45vw;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vice-shop-balance-card .balance-icon-wrapper i {
    font-size: 1.1vw;
    color: #fff;
}

.vice-shop-balance-card .balance-icon-wrapper [data-lucide] {
    width: 1.2vw;
    height: 1.2vw;
    color: #fff;
}

.vice-shop-balance-card .balance-label {
    font-size: 0.6vw;
    color: var(--text-secondary, var(--gray, #64748b));
    font-weight: 500;
    margin: 0 0 0.05vw 0;
}

.vice-shop-balance-card .balance-amount {
    font-size: 1.15vw;
    font-weight: 800;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0;
    line-height: 1;
}

.vice-shop-balance-card .balance-amount .balance-unit {
    font-size: 0.7vw;
    font-weight: 600;
    color: var(--text-secondary, var(--gray, #64748b));
}

/* Categories Panel */
.vice-shop-categories {
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    padding: 0.8vw;
}

.category-header {
    font-size: 0.65vw;
    font-weight: 700;
    color: var(--text-secondary, var(--gray, #64748b));
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    margin: 0 0 0.5vw 0.3vw;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.55vw 0.6vw;
    border-radius: 0.4vw;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.78vw;
    font-weight: 500;
    color: var(--text-primary, var(--card-text, #1e293b));
    border: none;
    background: transparent;
}

.category-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.category-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    font-weight: 600;
}

.category-item [data-lucide],
.category-item .category-icon {
    width: 0.85vw;
    height: 0.85vw;
    flex-shrink: 0;
}

.category-item .category-name {
    flex: 1;
    text-align: left;
}

.category-count {
    font-size: 0.6vw;
    font-weight: 700;
    padding: 0.08vw 0.35vw;
    border-radius: 0.2vw;
    background: rgba(0, 0, 0, 0.06);
}

.category-item.active .category-count {
    background: rgba(99, 102, 241, 0.2);
    color: #6366F1;
}

/* Main Content */
.vice-shop-content {
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    padding: 1.2vw;
    min-height: 60vh;
}

.shop-section {
    display: none;
}

.shop-section.active {
    display: block;
}

/* Section Header */
.shop-section-header {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    margin-bottom: 1vw;
}

.shop-section-header [data-lucide] {
    width: 1vw;
    height: 1vw;
    color: #6366F1;
}

.shop-section-title {
    font-size: 1.1vw;
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0;
}

/* Item Grids */
.shop-items-grid {
    display: grid;
    gap: 0.7vw;
}

.limits-grid {
    grid-template-columns: repeat(4, 1fr);
}

.xp-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Shop Item Card */
.shop-item-card {
    position: relative;
    border-radius: 0.5vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    padding: 0.9vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.shop-item-card:hover {
    transform: translateY(-0.1vw);
    box-shadow: 0 0.2vw 0.8vw rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Icon with unique color */
.shop-item-icon-new {
    width: 2.4vw;
    height: 2.4vw;
    border-radius: 0.45vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6vw;
}

.shop-item-icon-new i,
.shop-item-icon-new [data-lucide] {
    width: 1.1vw;
    height: 1.1vw;
}

.shop-item-name {
    font-size: 0.8vw;
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0 0 0.2vw 0;
}

.shop-item-price {
    font-size: 0.82vw;
    font-weight: 700;
    color: #6366F1;
    margin: 0 0 0.6vw 0;
}

/* Purchase Button (shows price, e.g. "10 VC") */
.shop-item-purchase-btn {
    width: 100%;
    padding: 0.5vw;
    margin-top: 0.6vw;
    font-size: 0.72vw;
    font-weight: 600;
    background: #6366F1;
    border: none;
    border-radius: 0.35vw;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.shop-item-purchase-btn:hover {
    background: #4F46E5;
}

.shop-item-purchase-btn:active {
    transform: scale(0.97);
}

.shop-item-info {
    font-size: 0.58vw;
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0.35vw 0 0 0;
}

/* Coming Soon Card */
.coming-soon-card {
    opacity: 0.5;
    border-style: dashed;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color, var(--card-border, #e2e8f0));
}

.shop-item-coming-soon {
    font-size: 0.68vw;
    font-weight: 600;
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0;
    font-style: italic;
}

.shop-item-price-display {
    font-size: 0.82vw;
    font-weight: 700;
    color: #6366F1;
    margin: 0 0 0.6vw 0;
}

/* XP cards */
.xp-grid .shop-item-name {
    font-size: 0.95vw;
    font-weight: 800;
}

/* XP "Best" badge */
.xp-best-badge {
    position: absolute;
    top: 0.35vw;
    right: 0.35vw;
    display: flex;
    align-items: center;
    gap: 0.15vw;
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
    font-size: 0.52vw;
    font-weight: 700;
    padding: 0.1vw 0.3vw;
    border-radius: 0.2vw;
}

.xp-best-badge [data-lucide] {
    width: 0.5vw;
    height: 0.5vw;
}

/* Coming Soon Empty State */
.shop-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5vw 0;
    text-align: center;
}

.shop-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 0.8vw;
}

.shop-empty-state-icon [data-lucide],
.shop-empty-state-icon i {
    width: 1.5vw;
    height: 1.5vw;
    color: var(--text-secondary, var(--gray, #64748b));
}

.shop-empty-state h3 {
    font-size: 1vw;
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0 0 0.25vw 0;
}

.shop-empty-state p {
    font-size: 0.75vw;
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0;
}

/* Right Sidebar - Ad (16vw like newswire) */
.vice-shop-ad-sidebar {
    position: sticky;
    top: 8vw;
    height: fit-content;
    display: flex;
    justify-content: center;
}

.vice-shop-ad-sidebar .ad-slot {
    width: 100%;
    max-width: 16vw;
}

/* Responsive */
@media (max-width: 82.873vw) {
    .vice-shop-main-layout {
        grid-template-columns: 1fr;
        gap: 2vw;
    }
    .vice-shop-sidebar,
    .vice-shop-ad-sidebar {
        display: none;
    }
    .limits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
