/*
Theme Name: GC Market Theme
Description: Full custom dark theme mimicking Apsmarket/Gamebreaker layout.
Author: You
Version: 5.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #05050A;
    /* Deep dark space color */
    --bg-card: #0D111A;
    /* Slightly lighter for cards */
    --bg-glass: rgba(13, 17, 26, 0.6);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-blue: rgba(0, 102, 255, 0.3);

    --text-main: #FFFFFF;
    --text-muted: #8B949E;

    --accent-blue: #0066FF;
    --accent-blue-hover: #0044FF;
    --accent-glow: rgba(0, 102, 255, 0.4);

    --success: #00E676;
    --success-bg: rgba(0, 230, 118, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-blue {
    color: var(--accent-blue) !important;
}

.text-white {
    color: var(--text-main) !important;
}

.text-center {
    text-align: center;
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

@media(max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.discord-btn {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.2);
}

.cart-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 16px;
    position: relative;
}

.cart-btn:hover {
    border-color: var(--accent-blue);
}

.cart-badge {
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    padding: 200px 24px 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 90vh;
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(5, 5, 10, 0) 60%);
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: none;
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-item i {
    font-size: 1.25rem;
}

/* Sections */
.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Game Cards (Apsmarket style) */
.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--border-blue);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.game-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.game-card:hover .game-image {
    transform: scale(1.08);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-card) 0%, rgba(13, 17, 26, 0.1) 100%);
}

.game-info {
    padding: 0 24px 32px;
    position: relative;
    z-index: 2;
    margin-top: -60px;
    /* Pull text up into the gradient */
}

.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.status-indicator.online {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.game-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.game-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.game-card:hover .game-action {
    opacity: 1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.75rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px 32px;
}

.faq-q {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-a {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-dark);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media(max-width: 800px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
}

.footer-links h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--text-main);
}

/* Product List Layout (Archive) */
.product-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.woocommerce a.product-list-item,
a.product-list-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.woocommerce a.product-list-item:hover,
a.product-list-item:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-main) !important;
}

.woocommerce a.product-list-item *,
a.product-list-item * {
    text-decoration: none !important;
}

.product-list-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-right: 24px;
    flex-shrink: 0;
}

.product-list-info {
    flex-grow: 1;
}

.woocommerce .product-list-title,
.product-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff !important;
}

.woocommerce .product-list-stock,
.product-list-stock {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.woocommerce .product-list-stock.in-stock,
.product-list-stock.in-stock {
    color: var(--success) !important;
}

.woocommerce .product-list-stock.out-of-stock,
.product-list-stock.out-of-stock {
    color: #FF5252 !important;
}

.product-list-action {
    display: flex;
    align-items: center;
    gap: 24px;
}

.woocommerce .product-list-price,
.product-list-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main) !important;
}

.woocommerce .product-list-price .price {
    color: var(--text-main) !important;
    display: inline-block !important;
    margin: 0 !important;
    font-size: 1.25rem;
    font-weight: 800;
}

.woocommerce .product-list-price ins,
.product-list-price ins {
    text-decoration: none !important;
}

.woocommerce .product-list-price del,
.product-list-price del {
    color: var(--text-muted) !important;
    font-size: 1rem;
    margin-right: 8px;
    font-weight: 500;
    text-decoration: line-through !important;
}

.product-list-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
    color: #fff !important;
}

@media(max-width: 768px) {
    .product-list-item {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .product-list-image {
        margin-bottom: 16px;
        width: 100%;
        height: 150px;
        margin-right: 0;
    }

    .product-list-action {
        width: 100%;
        justify-content: space-between;
        margin-top: 16px;
        border-top: 1px solid var(--border-light);
        padding-top: 16px;
    }
}

/* Base WooCommerce overrides to make them fit the dark design */
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce a.button,
.woocommerce a.button.alt {
    background: var(--accent-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}

.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce a.button.alt:hover {
    background: var(--accent-blue-hover) !important;
    box-shadow: 0 0 25px var(--accent-glow) !important;
    transform: translateY(-2px);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--bg-card) !important;
    border-top: 3px solid var(--accent-blue) !important;
    color: var(--text-main) !important;
}

.woocommerce-message::before {
    color: var(--accent-blue) !important;
}

/* WooCommerce Quantity Input Styling */
.woocommerce .quantity .qty {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    width: 80px !important;
    height: 48px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
    margin: 0 !important;
}

.woocommerce .quantity .qty:focus {
    border-color: var(--accent-blue) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Hide spin buttons for Chrome/Safari/Edge/Opera */
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spin buttons for Firefox */
.woocommerce .quantity .qty[type=number] {
    -moz-appearance: textfield;
}

/* align quantity and add to cart button */
#top .woocommerce div.product form.cart,
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    margin-bottom: 24px !important;
}

#top .woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    margin: 0 !important;
    display: block !important;
}