/* BoxNode Store - Main Styles */
/* Using Brand Colors: Royal Blue #2751c6, Sky Blue #60A5FA, Midnight Black #111827, Cloud White #F9FAFB */

:root {
    --royal-blue: #2751c6;
    --sky-blue: #60A5FA;
    --midnight-black: #111827;
    --cloud-white: #F9FAFB;
    --card-bg: #1F2937;
    --card-hover: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --success: #10B981;
    --warning: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--midnight-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sky-blue);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(39, 81, 198, 0.4);
    border: 2px solid var(--midnight-black);
}

.login-btn {
    background: transparent;
    border: 1.5px solid rgba(96, 165, 250, 0.3);
    color: var(--cloud-white);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--sky-blue);
}

.login-text {
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 7.5rem 2rem 1.5rem;
    text-align: center;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(39, 81, 198, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 7rem;
}

.server-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(17, 24, 39, 0.6);
    border: 2px solid rgba(96, 165, 250, 0.3);
    color: var(--cloud-white);
    padding: 1rem 1.75rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.server-ip-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s;
}

.server-ip-badge:hover::after {
    left: 100%;
}

.server-ip-badge:hover {
    background: rgba(17, 24, 39, 0.8);
    border-color: var(--sky-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.25);
}

.server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    position: relative;
}

.server-status::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #10B981;
    opacity: 0.3;
    animation: ping-status 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.server-status.offline {
    background: #EF4444;
}

.server-status.offline::before {
    background: #EF4444;
}

@keyframes ping-status {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.server-ip {
    font-weight: 700;
    letter-spacing: 0.025em;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--cloud-white), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-ip-badge svg {
    opacity: 0.5;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.server-ip-badge:hover svg {
    opacity: 1;
    transform: rotate(-5deg) scale(1.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    color: var(--sky-blue);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.stat-text {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.2;
    font-weight: 500;
}

/* Sections */
.categories-section,
.products-section,
.support-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--sky-blue);
    box-shadow: 0 12px 40px rgba(39, 81, 198, 0.3);
}

.category-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(96, 165, 250, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.category-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s;
}

.category-card:hover .category-image {
    opacity: 1;
    transform: scale(1.05);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--royal-blue), var(--sky-blue));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-btn {
    background: transparent;
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn:hover {
    background: var(--sky-blue);
    color: white;
}

/* Products */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.filter-tabs,
.category-tabs {
    display: flex;
    gap: 0.75rem;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-blue), var(--sky-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-blue);
    box-shadow: 0 12px 40px rgba(39, 81, 198, 0.3);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(39, 81, 198, 0.05) 100%);
}

.product-card.popular {
    border-color: var(--sky-blue);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(96, 165, 250, 0.08) 100%);
}

.product-card.popular::before {
    opacity: 1;
}

.product-card.ultimate {
    border-color: var(--royal-blue);
    background: linear-gradient(135deg, rgba(39, 81, 198, 0.12) 0%, var(--card-bg) 100%);
    box-shadow: 0 8px 32px rgba(39, 81, 198, 0.25);
}

.product-card.ultimate::before {
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    opacity: 1;
    height: 4px;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--midnight-black);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.popular-badge {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--sky-blue) 100%);
    color: white;
    border-color: var(--sky-blue);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.ultimate-badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    border-color: #EC4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.product-header {
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sky-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-features li {
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.product-features li:hover {
    color: var(--text-primary);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--sky-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.product-btn {
    width: 100%;
    background: var(--royal-blue);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin-top: auto;
    letter-spacing: 0.01em;
}

.product-btn:hover {
    background: var(--sky-blue);
    transform: translateY(-1px);
}

.product-btn:active {
    transform: translateY(0);
}

@media (max-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Recent Purchases */
.recent-purchases {
    background: var(--card-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.recent-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.purchases-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
}

.purchases-scroll::-webkit-scrollbar {
    display: none;
}

.purchase-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--midnight-black);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.purchase-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--card-hover);
}

.purchase-info {
    display: flex;
    flex-direction: column;
}

.purchase-player {
    font-weight: 600;
    font-size: 0.875rem;
}

.purchase-product {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Support Section */
.support-section {
    background: var(--card-bg);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.support-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.support-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.support-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--midnight-black);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.support-link:hover {
    border-color: var(--sky-blue);
    transform: translateX(8px);
}

.support-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--midnight-black);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-card h4 {
    color: var(--sky-blue);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--midnight-black);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--sky-blue);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--sky-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--sky-blue);
    color: white;
}

.footer-note {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.payment-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--card-bg);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.powered-by {
    margin-top: 0.5rem;
}

.powered-by a {
    color: var(--sky-blue);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1.125rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
}

/* Additional polish for PayNow products */
.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Handle products with no features list */
.product-card:not(:has(.product-features)) .product-description {
    min-height: 80px;
}

/* Ensure consistent card heights in grid */
.products-grid .product-card {
    align-self: stretch;
}

/* Price with discount styling */
.product-price del,
.product-price .original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Loading state for product cards */
.product-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.product-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.1) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
    z-index: 10;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
