/* ============================================
   SPINBOSS CHARACTER PORTAL - DESIGN SYSTEM
   ============================================ */

/* CSS Variables - Core Design Tokens */
:root {
    /* Palette */
    --bg-dark: #0a0c12;
    --bg-darker: #050608;
    --bg-surface-1: #0f1219;
    --bg-surface-2: #1a1f2e;
    --bg-surface-3: #252d3d;

    /* Accents */
    --accent-primary: #ff66aa;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #7c3aed;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b4b8c3;
    --text-tertiary: #7a7f8f;
    --text-muted: #4a4f5a;

    /* Semantic */
    --success: #00d084;
    --warning: #ffa500;
    --error: #ff4757;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-display: 'Orbitron', 'Space Mono', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Shadows & Glow */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --glow-pink: 0 0 20px rgba(255, 102, 170, 0.4);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-intense: 0 0 30px rgba(255, 102, 170, 0.6);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Remove default link styles */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-secondary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 0 0 20px var(--accent-primary);
}

h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 12, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 102, 170, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: var(--space-md) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: var(--space-xs);
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 12, 18, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid rgba(255, 102, 170, 0.1);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 102, 170, 0.05);
    }

    .nav-links a {
        display: block;
        padding: var(--space-lg) var(--space-xl);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    box-shadow: var(--glow-intense);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 102, 170, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(135deg, rgba(10, 12, 18, 1) 0%, rgba(26, 31, 46, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 102, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-xl);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 102, 170, 0.3);
    box-shadow: 0 0 40px rgba(255, 102, 170, 0.2);
    transition: all 0.3s ease;
}

.hero-image:hover {
    box-shadow: 0 0 60px rgba(255, 102, 170, 0.4);
    transform: translateY(-5px);
}

.glow-accent {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero {
        min-height: auto;
        padding: var(--space-2xl) var(--space-lg);
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
}

/* ============================================
   DESIGNER SECTION
   ============================================ */

.designer {
    background: linear-gradient(135deg, rgba(15, 18, 25, 1) 0%, rgba(37, 45, 61, 0.5) 100%);
}

.designer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.designer-card {
    background: var(--bg-surface-2);
    border: 1px solid rgba(255, 102, 170, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.designer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 170, 0.1), transparent);
    transition: left 0.5s ease;
}

.designer-card:hover::before {
    left: 100%;
}

.designer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 170, 0.3);
    box-shadow: 0 0 30px rgba(255, 102, 170, 0.2);
}

.designer-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.designer-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.designer-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.designer-image-container {
    position: relative;
    margin-top: var(--space-2xl);
}

.designer-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 102, 170, 0.2);
    box-shadow: 0 0 30px rgba(255, 102, 170, 0.15);
}

.image-overlay {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 102, 170, 0.2);
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SKINS SECTION
   ============================================ */

.skins {
    background: linear-gradient(135deg, rgba(10, 12, 18, 1) 0%, rgba(26, 31, 46, 0.7) 100%);
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.skin-card {
    background: var(--bg-surface-2);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}

.skin-rarity {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.rarity-mythical {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(168, 85, 247, 0.8));
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.rarity-legendary {
    background: linear-gradient(135deg, rgba(255, 191, 0, 0.8), rgba(255, 140, 0, 0.8));
    color: white;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

.rarity-epic {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(0, 184, 255, 0.8));
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.rarity-rare {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.8), rgba(0, 255, 136, 0.8));
    color: white;
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.5);
}

.skin-header {
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
}

.skin-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.skin-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.skin-rarity-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.skins-image-container {
    position: relative;
    margin-top: var(--space-2xl);
}

.skins-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

/* ============================================
   GEAR SECTION
   ============================================ */

.gear {
    background: linear-gradient(135deg, rgba(15, 18, 25, 1) 0%, rgba(37, 45, 61, 0.5) 100%);
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.gear-combo {
    background: var(--bg-surface-2);
    border: 1px solid rgba(255, 102, 170, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.gear-combo:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 170, 0.3);
    box-shadow: 0 0 30px rgba(255, 102, 170, 0.2);
}

.gear-combo h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.combo-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.combo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 102, 170, 0.1);
    border-bottom: 1px solid rgba(255, 102, 170, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.combo-trade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.pro, .con {
    font-size: 0.9rem;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.pro {
    background: rgba(0, 208, 132, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 208, 132, 0.2);
}

.con {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */

.community {
    background: linear-gradient(135deg, rgba(10, 12, 18, 1) 0%, rgba(26, 31, 46, 0.7) 100%);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.community-character {
    background: var(--bg-surface-2);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.community-character:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.character-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 102, 170, 0.2), rgba(0, 212, 255, 0.2));
    border: 2px solid rgba(255, 102, 170, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.avatar-placeholder {
    animation: float 3s ease-in-out infinite;
}

.community-character h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.creator {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: var(--space-md);
}

.character-story {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.community-rating {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-secondary);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 102, 170, 0.1);
    padding: var(--space-3xl) var(--space-xl);
    margin-top: var(--space-3xl);
}

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

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-md);
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-geo {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 102, 170, 0.05);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .designer-grid,
    .skins-grid,
    .gear-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .combo-stats {
        grid-template-columns: 1fr;
    }

    .combo-trade {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 500px;
        height: 500px;
        right: -30%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.85rem;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}
