/* PACIFICHK Gaming Lifestyle Hub - Styles */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --neon-green: #00ff88;
    --neon-pink: #ff0066;
    --neon-cyan: #00ccff;
    --neon-yellow: #ffcc00;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --border-subtle: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans HK', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Grid background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1, h2, h3 { font-family: 'Orbitron', sans-serif; }

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0,255,136,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255,0,102,0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content { position: relative; z-index: 1; }

.neon-text {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-text .highlight {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0,255,136,0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(0,255,136,0.8)); }
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem;
}

/* Buttons */
.btn-neon {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    color: var(--bg-dark);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0,255,136,0.5);
}

.btn-buy {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--neon-green);
    color: var(--bg-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-buy:hover {
    background: var(--neon-cyan);
    transform: scale(1.05);
}

/* Sections */
.section-featured, .section-topics, .section-category {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0,204,255,0.3);
}

.view-all {
    display: block;
    text-align: right;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.view-all:hover { color: var(--neon-cyan); }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0,255,136,0.2);
}

.discount-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--neon-pink);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255,0,102,0.5);
}

.discount-tag.large {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img { transform: scale(1.05); }

.product-info { padding: 1.5rem; }

.product-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.sale-price {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1.3rem;
}

.sale-price.large {
    font-size: 2rem;
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0,204,255,0.2);
}

.topic-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.topic-card.ai .topic-tag { background: var(--neon-green); color: var(--bg-dark); }
.topic-card.sports .topic-tag { background: var(--neon-pink); color: white; }
.topic-card.lifestyle .topic-tag { background: var(--neon-cyan); color: var(--bg-dark); }

.topic-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.topic-products {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.mini-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.sort-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.sort-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sort-bar a:hover, .sort-bar a.active {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
}

.topic-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.filter-tag:hover, .filter-tag.active {
    background: var(--neon-green);
    color: var(--bg-dark);
    border-color: var(--neon-green);
}

/* Content Section */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.content-image {
    position: relative;
    height: 200px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--neon-cyan);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-body { padding: 1.5rem; }

.content-body h2 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.content-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-products {
    margin: 1rem 0;
}

.mini-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mini-products {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.mini-products .mini-product {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.mini-products .mini-product img {
    width: 50px;
    height: 50px;
}

.mini-products .mini-product span {
    display: block;
    padding: 0.3rem;
    font-size: 0.8rem;
    color: var(--neon-green);
}

.read-more {
    display: inline-block;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover { color: var(--neon-green); }

/* Product Detail Page */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery { position: relative; }

.main-image {
    width: 100%;
    border-radius: 16px;
    background: var(--bg-card);
}

.product-info-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.product-title {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.product-brand {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-specs {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}

.product-specs p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.price-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0,255,136,0.05);
    border-radius: 12px;
    border: 1px solid rgba(0,255,136,0.2);
}

.price-box .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.price-box .label {
    color: var(--text-secondary);
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-yellow));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-add-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255,0,102,0.4);
}

.btn-back {
    display: block;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 1rem;
}

.btn-back:hover { color: var(--neon-cyan); }

.related-products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 6rem 2rem;
}

.no-products {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background: var(--bg-card);
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links h3, .footer-social h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--neon-cyan); }

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0,255,136,0.4);
}

.social-icon.facebook:hover { background: #1877f2; }
.social-icon.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.youtube:hover { background: #ff0000; }

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-login {
    max-width: 400px;
    margin: 10vh auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.admin-login h1 {
    text-align: center;
    color: var(--neon-green);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-green);
}

.btn-admin {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0,255,136,0.4);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.admin-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
    font-weight: 600;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .main-nav.active { display: flex; }

    .mobile-menu-btn { display: block; }

    .hero { padding: 4rem 1rem; }

    .neon-text { font-size: 2rem; }

    .product-detail {
        grid-template-columns: 1fr;
    }

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

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

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}