/* ============================================
   GameTrade - Dark Theme Bootstrap 5 Website
   Colors: Dark theme with Orange accents
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a24;
    --color-bg-card-hover: #222230;
    --color-primary: #FF6B35;
    --color-primary-hover: #ff8555;
    --color-secondary: #1a1a2e;
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
    --color-text-secondary: #6c6c80;
    --color-border: #2a2a3a;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #ff8555 100%);
    --gradient-bg: linear-gradient(180deg, #0a0a0a 0%, #12121a 50%, #0a0a0a 100%);
    --gradient-hero: radial-gradient(ellipse at top, #1a1a3e 0%, #0a0a0a 60%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 4px 20px rgba(255, 107, 53, 0.3);
    --shadow-primary-lg: 0 8px 30px rgba(255, 107, 53, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --section-padding: 100px;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8555 0%, #FF6B35 100%);
    box-shadow: var(--shadow-primary-lg);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    padding: 20px 0;
    transition: var(--transition-base);
    z-index: 999;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white !important;
}

.brand-icon {
    font-size: 28px;
    color: var(--color-primary);
}

.nav-link {
    color: var(--color-text-muted) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(255, 107, 53, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-hero i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
}

.floating-card span {
    font-weight: 600;
    font-size: 14px;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-1 i {
    color: #1b2838;
}

.card-2 {
    top: 45%;
    right: 0;
    animation-delay: 2s;
}

.card-2 i {
    color: #107c10;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.card-3 i {
    color: #003791;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--color-text-muted);
    font-size: 24px;
}

.scroll-indicator a:hover {
    color: var(--color-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Section Common Styles
   ============================================ */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
    background: var(--color-bg-secondary);
}

/* Product Tabs */
.nav-pills {
    gap: 12px;
}

.nav-pills .nav-link {
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 12px 24px !important;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-pills .nav-link:hover {
    background: var(--color-bg-card-hover);
    color: white;
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white !important;
    box-shadow: var(--shadow-primary);
}

/* Product Cards */
.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-card.featured {
    position: relative;
    border-color: var(--color-primary);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 180px;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.hot {
    background: #dc3545;
}

.product-badge.new {
    background: var(--color-success);
}

.product-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    background: linear-gradient(135deg, #2a2a3a 0%, #1a1a24 100%);
    transition: var(--transition-base);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-icon.xbox {
    background: linear-gradient(135deg, #107c10 0%, #0d5e0d 100%);
}

.product-icon.playstation {
    background: linear-gradient(135deg, #003791 0%, #002a6e 100%);
}

.product-icon.epic {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #121212;
}

.product-icon.nintendo {
    background: linear-gradient(135deg, #e60012 0%, #b3000e 100%);
}

.product-icon.ea {
    background: linear-gradient(135deg, #ff4747 0%, #d63030 100%);
}

.ea-logo {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
}

.product-icon.netflix {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.product-icon.spotify {
    background: linear-gradient(135deg, #1db954 0%, #169c45 100%);
}

.product-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.product-icon.amazon {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: #232f3e;
}

.product-icon.google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.product-icon.apple {
    background: linear-gradient(135deg, #555555 0%, #333333 100%);
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

/* Features Row */
.features-row {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.feature-box:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.feature-box i {
    font-size: 32px;
    color: var(--color-primary);
}

.feature-box span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: var(--color-bg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.contact-value:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 18px;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form .form-floating {
    position: relative;
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: white;
    padding: 16px;
    height: auto;
}

.contact-form .form-floating > .form-control,
.contact-form .form-floating > .form-select {
    padding: 16px;
    height: calc(3.5rem + 2px);
}

.contact-form .form-floating > label {
    padding: 16px;
    color: var(--color-text-muted);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    color: white;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form .form-floating > .form-select ~ label {
    color: var(--color-primary);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background: var(--color-bg-card);
    padding: 0 8px;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .form-check-label {
    color: var(--color-text-muted);
    font-size: 14px;
}

.contact-form .form-check-label a {
    color: var(--color-primary);
}

.contact-form .form-check-input {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

.contact-form .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.footer-brand i {
    color: var(--color-primary);
    font-size: 28px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 16px;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-primary);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary-lg);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 991px) {
    :root {
        --section-padding: 70px;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
        border: 1px solid var(--color-border);
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .btn-nav {
        margin-top: 10px;
        width: 100%;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 30%;
        text-align: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start !important;
    }
    
    .nav-pills .nav-item {
        flex-shrink: 0;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    :root {
        --section-padding: 50px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn-lg {
        padding: 12px 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Tab transitions */
.tab-pane {
    animation: fadeInUp 0.4s ease;
}

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 100px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: white;
}
