/**
 * FF - BG Account - Premium Gaming Dark Theme
 * Production-ready CSS without frameworks
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #151520;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --border-color: #2a2a3a;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Hero Trust Badges */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-trust-badge:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.hero-badge-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* ===== SEARCH SECTION ===== */
.search-section {
    padding: 2rem 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.product-image-slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-product {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-product:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow-blue);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-section {
    padding: 4rem 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 100px;
}

.image-slider-main {
    position: relative;
    margin-bottom: 1rem;
}

.image-slider-main .slide {
    display: none;
}

.image-slider-main .slide.active {
    display: block;
}

.image-slider-main img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.image-thumbnails {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-thumbnails img:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Product Description */
.product-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
}

.description-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.description-content br {
    line-height: 2;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ===== PRODUCT GUIDELINES ===== */
.product-guidelines {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 0, 128, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 15px;
}

.guidelines-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.guidelines-title-icon {
    font-size: 1.5rem;
}

.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.guideline-item:hover {
    background: rgba(255, 0, 128, 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.guideline-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Product Card Guidelines (Collapsible) */
.product-guidelines-card {
    margin-top: 1rem;
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 0, 128, 0.05);
}

.guidelines-toggle {
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.guidelines-toggle:hover {
    background: rgba(255, 0, 128, 0.1);
    color: var(--primary-color);
}

.toggle-icon {
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.guidelines-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.guidelines-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.guidelines-content.active {
    max-height: 500px;
    padding: 1rem;
}

.guidelines-content .guideline-item {
    font-size: 0.85rem;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}

.btn-buy-now {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    width: 100%;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-section {
    padding: 4rem 0;
}

.checkout-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.order-summary,
.payment-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.order-summary h3,
.payment-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-size: 1.3rem;
}

.qr-code {
    margin: 1.5rem 0;
    text-align: center;
}

.qr-code img {
    max-width: 250px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* ===== PAYMENT STATUS PAGE ===== */
.payment-status-section {
    padding: 4rem 0;
}

.payment-status-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.status-success h2,
.status-pending h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.status-success {
    color: var(--primary-color);
}

.status-pending {
    color: var(--secondary-color);
}

.credentials-box {
    background: rgba(0, 255, 136, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid rgba(0, 255, 136, 0.3);
    text-align: left;
}

.credentials-box h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.credential-item label {
    font-weight: bold;
    min-width: 120px;
}

.credential-value {
    flex: 1;
    font-family: monospace;
    color: var(--primary-color);
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--bg-darker);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    min-width: 0; /* Prevent overflow */
    word-wrap: break-word;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.4;
}

.footer-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    line-height: 1.5;
    word-wrap: break-word;
}

.footer-trust-badge:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-badge-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    line-height: 1.6;
    display: block;
    word-wrap: break-word;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-disclaimer {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
    word-wrap: break-word;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0 1.5rem;
    width: 100%;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    width: 100%;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
}

.main-footer p {
    color: var(--text-secondary);
}

/* ===== UTILITIES ===== */
.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile First - Base styles for mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    
    .product-image-slider {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .product-details h1 {
        font-size: 1.8rem;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .product-description {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .description-title {
        font-size: 1.1rem;
    }
    
    .description-content {
        font-size: 0.95rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-trust-badge {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .trust-badges {
        padding: 1rem;
    }
    
    .product-guidelines {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-section {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-trust-badges {
        gap: 1rem;
        align-items: center;
    }
    
    .footer-trust-badge {
        font-size: 0.95rem;
        padding: 0.7rem 0;
        justify-content: center;
        text-align: center;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .footer-badge-icon {
        font-size: 1.3rem;
    }
    
    .footer-links {
        gap: 1rem;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        line-height: 1.8;
    }
    
    .footer-disclaimer {
        font-size: 0.9rem;
        line-height: 1.9;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-copyright {
        padding: 1rem 1rem 0;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
    
    .main-footer {
        padding: 2.5rem 0 1.5rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure products are always visible */
.products-grid {
    display: grid !important;
    visibility: visible !important;
}

.product-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

