/*
Theme Name: GigOrbit Core
Description: Custom mobile-first theme for the GigOrbit multi-vendor marketplace.
Author: Naman
Version: 1.0.0
*/

:root {
  --indigo: #4F46E5;
  --purple: #7C3AED;
  --indigo-light: #6366F1;
  --bg: #0A0A0F;
  --bg2: #111118;
  --bg3: #16161F;
  --card: #1A1A26;
  --card2: #1E1E2E;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(79,70,229,0.3);
  --text: #F0EFFF;
  --text2: #A09EC0;
  --text3: #6B6890;
  --green: #22C55E;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --cyan: #06B6D4;
  --r12: 12px;
  --r8: 8px;
  --r24: 24px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }

/* Noise Overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: var(--text); text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 0 20px rgba(79,70,229,0.4);
}

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r8);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--card); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r24);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  border: none; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--card); }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(79,70,229,0.5); }
.btn-large { padding: 14px 32px; font-size: 1rem; border-radius: 50px; }

/* Globals & Typography */
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-light); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.section-sub { font-size: 1rem; color: var(--text2); max-width: 550px; margin: 16px auto 0; }
.divider-section { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0 5%; }

/* Core Layouts (Overrides from Claude's SPA) */
.site-main { padding-top: 68px; min-height: 100vh; }

/* ====================================================================
   DOKAN DASHBOARD OVERRIDES (Premium Dark Mode)
   ==================================================================== */

/* General Dashboard Background */
.dokan-dashboard-wrap {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    min-height: calc(100vh - 68px);
}

/* Sidebar Styling */
.dokan-dash-sidebar {
    background-color: var(--bg2) !important;
    border-right: 1px solid var(--border) !important;
    padding-top: 20px;
}

ul.dokan-dashboard-menu li {
    border-bottom: none !important;
    margin-bottom: 2px;
}

ul.dokan-dashboard-menu li a {
    color: var(--text3) !important;
    font-size: 0.87rem !important;
    font-weight: 500 !important;
    border-radius: var(--r8);
    margin: 0 16px;
    padding: 10px 14px !important;
    transition: var(--transition) !important;
}

ul.dokan-dashboard-menu li:hover a,
ul.dokan-dashboard-menu li.active a {
    color: var(--text) !important;
    background-color: var(--card) !important;
}

ul.dokan-dashboard-menu li.active a {
    color: var(--indigo-light) !important;
    border-left: 3px solid var(--indigo) !important;
}

/* Main Content Area */
.dokan-dashboard-content {
    background-color: var(--bg) !important;
    padding: 32px !important;
}

.dokan-dashboard-content h1, 
.dokan-dashboard-content h2, 
.dokan-dashboard-content h3 {
    color: var(--text) !important;
    font-family: var(--font-heading) !important;
}

/* Dashboard Widget Cards (KPIs) */
.dokan-dashboard-content .dashboard-widget {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r12) !important;
    box-shadow: none !important;
}

.dokan-dashboard-content .dashboard-widget .widget-title {
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

/* Dokan Buttons */
.dokan-btn, .dokan-btn-theme {
    background: linear-gradient(135deg, var(--indigo), var(--purple)) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--r24) !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.dokan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(79,70,229,0.5) !important;
    color: white !important;
}

/* Inputs and Forms inside Dokan */
.dokan-form-control, .dokan-form-group input, .dokan-form-group select, .dokan-form-group textarea {
    background-color: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--r8) !important;
    padding: 12px 16px !important;
}

.dokan-form-control:focus {
    border-color: var(--indigo) !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}

/* Tables (Orders, Earnings) */
.dokan-table {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r12) !important;
    color: var(--text2) !important;
}

.dokan-table th {
    background: var(--bg3) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
}

.dokan-table td {
    border-top: 1px solid var(--border) !important;
}

/* ====================================================================
// GIGORBIT: THEMATIC FLAT CATEGORY CARDS
// ================================================================== */

/* Grid Container - Left Aligned */
.theme-silo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 0;
    justify-content: flex-start;
}

/* Card Wrapper Link */
.theme-card-link {
    text-decoration: none !important;
    display: block;
}

/* The Flat Dark Card */
.theme-category-card {
    background: #15151e; /* Matches your dashboard card backgrounds */
    border: 1px solid #2D2D3B; /* Subtle border */
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.theme-card-link:hover .theme-category-card {
    background: #1a1a24;
    border-color: #7C3AED; /* Purple theme border on hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* The Purple Icon Box */
.theme-card-icon {
    background: rgba(124, 58, 237, 0.1); /* Light purple background */
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.theme-card-icon i {
    font-size: 20px;
    color: #7C3AED; /* Solid purple icon */
}

.theme-card-link:hover .theme-card-icon {
    background: #7C3AED; /* Solid purple on hover */
}

.theme-card-link:hover .theme-card-icon i {
    color: #ffffff; /* Icon turns white on hover */
}

/* Typography */
.theme-card-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.3px;
}

.theme-card-count {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px !important;
    color: #a0a4b8 !important;
    margin: 0 !important;
    font-weight: 400;
}

/* Arrow indicator that appears on hover */
.theme-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: #7C3AED;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.theme-card-link:hover .theme-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ====================================================================
   GIGORBIT RESPONSIVE MOBILE FIXES (APRIL 16)
   ==================================================================== */

/* 1. Prevent Horizontal Scrolling (The White Gap Fix) */
html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
}

.hero, .ai-recommendations, .seller-cta {
    overflow: hidden !important; /* Contain the glowing orbs */
}

/* Make sure all images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Base Mobile Viewport Constraints */
@media screen and (max-width: 768px) {
    /* Main Content Padding Fix */
    .site-main {
        padding-top: 80px; 
    }

    /* Container Spacing */
    section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Typography Scaling */
    .section-title {
        font-size: 2.2rem !important;
    }

    /* Hero Section Constraints */
    .hero {
        padding-top: 40px !important;
    }
    .hero h1 {
        font-size: 2.8rem !important;
    }
    
    /* Fix Hero Search Form Stacking */
    .hero-search {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .hero-search form {
        flex-direction: column !important;
        gap: 12px;
    }
    .hero-search input[type="search"] {
        width: 100% !important;
        background: var(--card) !important;
        border: 1px solid var(--border2) !important;
        border-radius: var(--r12) !important;
        padding: 16px !important;
    }
    .hero-search button {
        width: 100% !important;
        border-radius: var(--r12) !important;
        padding: 16px !important;
    }

    /* Stack CTA Banners */
    .seller-cta {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 20px !important;
    }
    .seller-cta-stats {
        justify-content: center !important;
    }
    
    /* Ensure grids stack nicely */
    .theme-silo-grid, .features-grid, .test-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ====================================================================
   GIGORBIT HEADER FIX (FINAL)
   ==================================================================== */

/* 1. Header Positioning (Universal) */
nav#mainNav {
    position: absolute !important; 
    top: 0;
    width: 100%;
}

/* 2. Desktop Hero Padding (To clear the absolute header) */
@media screen and (min-width: 993px) {
    .site-main {
        padding-top: 68px !important; /* Height of the desktop header */
    }
}

/* 3. Mobile Header & Padding Fixes */
@media screen and (max-width: 992px) {
    
    /* Make the mobile header a vertical stack with a solid background */
    nav#mainNav {
        height: auto !important;
        padding: 20px 5% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        background: var(--bg) !important; /* Solid dark background */
        border-bottom: 1px solid var(--border2) !important;
        z-index: 999;
    }

    /* Force the links and buttons to be visible on mobile */
    .nav-links, .nav-cta {
        display: flex !important; 
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    /* THE OVERLAP FIX: Push the hero section down far enough to clear the stacked header */
    .site-main {
        padding-top: 0 !important; /* Reset this to 0 */
    }
    
/* Target the hero section directly to push it down */
    .hero {
        margin-top: 260px !important; /* This is the magic number. Increase it to 280px or 300px if it still overlaps */
        padding-top: 20px !important;
    }
}
/* ====================================================================
   GIGORBIT FINAL MOBILE POLISH
   ==================================================================== */

/* 1. Un-stick the Header (Make it scroll away) */
nav {
    position: absolute !important; /* Changes from fixed to absolute */
}

/* Adjust body padding since header is no longer fixed pushing content down */
body {
    padding-top: 0 !important;
}
.site-main {
    padding-top: 68px !important; /* Matches your header height */
}

/* For mobile, ensure the main content padding is correct without the sticky header */
@media screen and (max-width: 992px) {
    .site-main {
        padding-top: 20px !important; 
    }
}

/* 2. Horizontal Scroll for Pricing Plans on Mobile */
@media screen and (max-width: 768px) {
    /* Override our previous 1fr grid fix for just the pricing section */
    .pricing-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory; /* Optional: Makes it snap to each card */
        gap: 20px;
        padding-bottom: 20px; /* Gives space for the scrollbar */
        
        /* Reset any grid overrides */
        grid-template-columns: none !important;
    }

    /* Keep the cards a fixed width so they don't crush each other */
    .pricing-grid .plan-card {
        min-width: 85vw !important; /* Takes up 85% of the screen width */
        flex-shrink: 0;
        scroll-snap-align: center; /* Snaps to the center of the screen */
    }
}

/* ====================================================================
   GIGORBIT HOMEPAGE: PREMIUM MICRO-INTERACTIONS & HOVERS
   ==================================================================== */

/* 1. Establish the base transition for all cards */
.gig-card, 
.feature-card, 
.test-card, 
.plan-card, 
.hiw-step {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform, box-shadow, border-color;
}

/* 2. The Universal Hover State (Anti-Gravity + Purple Glow) */
.gig-card:hover, 
.feature-card:hover, 
.test-card:hover, 
.plan-card:hover:not(.popular), /* Exclude the already glowing popular card */
.hiw-step:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    background: var(--card2) !important; /* Slightly lighter dark mode background on hover */
}

/* 3. Make the Image Zoom slightly inside Gig Cards on hover */
.gig-card .gig-thumb img {
    transition: transform 0.6s ease !important;
}
.gig-card:hover .gig-thumb img {
    transform: scale(1.08) !important;
}

/* 4. Make the Icons pop on hover (Features & Categories) */
.feature-card:hover .feature-icon,
.theme-category-card:hover .theme-card-icon {
    transform: scale(1.1) rotate(-5deg) !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4) !important;
    transition: all 0.3s ease !important;
}