/* ========================================
   JUJUTSU ZERO - SHARED STYLES
   Common CSS Variables & Base Styles
======================================== */

:root {
    /* Background Colors */
    --bg-abyss: #0A0A0B;
    --bg-deep: #0F0F12;
    --bg-card: #151519;
    --bg-card-hover: #1A1A1F;
    --bg-elevated: #1E1E24;

    /* Cursed Energy Colors */
    --cursed-purple: #8A2BE2;
    --cursed-purple-glow: rgba(138, 43, 226, 0.4);
    --cursed-purple-light: #A855F7;
    --cursed-purple-dark: #6B21A8;

    /* Blood Manipulation Colors */
    --blood-red: #D32F2F;
    --blood-red-glow: rgba(211, 47, 47, 0.4);
    --blood-red-light: #EF4444;
    --blood-red-dark: #991B1B;

    /* Limitless Blue (Gojo) */
    --limitless-blue: #00BFFF;
    --limitless-blue-glow: rgba(0, 191, 255, 0.4);

    /* Functional Colors */
    --success-green: #00E676;
    --success-green-dark: #00C853;
    --warning-gold: #FFD600;
    --mythic-gold: #FFB800;
    --fire-orange: #FF6B00;

    /* Text Colors */
    --text-primary: #F2ECF8;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B7B;

    /* Gradients */
    --gradient-cursed: linear-gradient(135deg, var(--cursed-purple) 0%, var(--blood-red) 100%);
    --gradient-energy: linear-gradient(135deg, var(--cursed-purple) 0%, var(--limitless-blue) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-abyss) 0%, var(--bg-deep) 100%);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    /* Spacing */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max: 1400px;

    /* Effects */
    --glow-purple: 0 0 20px var(--cursed-purple-glow), 0 0 40px var(--cursed-purple-glow);
    --glow-red: 0 0 20px var(--blood-red-glow);
    --glow-blue: 0 0 20px var(--limitless-blue-glow);
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-abyss);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--cursed-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cursed-purple-light);
}

/* Selection */
::selection {
    background: var(--cursed-purple);
    color: var(--text-primary);
}

/* ========================================
   COMMON COMPONENTS
======================================== */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-cursed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--cursed-purple);
}

/* Navigation */
.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(138, 43, 226, 0.2);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > .nav-link::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(138, 43, 226, 0.2);
    color: var(--text-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(138, 43, 226, 0.3);
}

.lang-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-link:hover, .lang-link.active {
    color: var(--text-primary);
    background: rgba(138, 43, 226, 0.15);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--cursed-purple);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--cursed-purple-light);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.1) 0%, transparent 100%);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient-cursed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Page Header (Alternative) */
.page-header {
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    padding: 1.5rem;
}

.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-cursed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--cursed-purple);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient-cursed);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--cursed-purple);
    border-color: var(--cursed-purple);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--cursed-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.footer-section a:hover {
    color: var(--cursed-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-success {
    background: var(--success-green);
    color: #000;
}

.badge-warning {
    background: var(--warning-gold);
    color: #000;
}

.badge-danger {
    background: var(--blood-red);
    color: var(--text-primary);
}

/* Grade Badges */
.grade-sss {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    color: white;
}

.grade-s {
    background: var(--gradient-cursed);
    color: white;
}

.grade-a {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.grade-b {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.grade-c {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* Discord Section */
.discord-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(138, 92, 246, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    text-align: center;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865f2;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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