/* =============================================================================
   CATHARSIS MARKET - Psychedelic Light Theme Stylesheet
   ============================================================================= */

/* CSS Variables */
:root {
    /* Colors - Light Psychedelic Palette */
    --color-bg: #faf8ff;
    --color-bg-alt: #f0ebff;
    --color-bg-card: #ffffff;
    --color-surface: #f5f0ff;
    
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-primary-light: #a78bfa;
    
    --color-secondary: #ec4899;
    --color-secondary-light: #f472b6;
    
    --color-accent-1: #06b6d4; /* Cyan */
    --color-accent-2: #f97316; /* Orange */
    --color-accent-3: #10b981; /* Emerald */
    --color-accent-4: #f59e0b; /* Amber */
    
    --color-text: #1e1b4b;
    --color-text-secondary: #4c4687;
    --color-text-muted: #7c7aaf;
    
    --color-border: #e0d8f0;
    --color-border-light: #f0ebff;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    --gradient-psychedelic: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    
    /* Typography */
    --font-display: 'Righteous', cursive;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* 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;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 92, 246, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 92, 246, 0.16);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 2rem;
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */

*, *::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(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* =============================================================================
   PSYCHEDELIC BACKGROUND
   ============================================================================= */

.psychedelic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.9; transform: scale(1.05) rotate(1deg); }
    50% { opacity: 1; transform: scale(1) rotate(0deg); }
    75% { opacity: 0.95; transform: scale(1.02) rotate(-1deg); }
}

.pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary-light);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary-light);
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--color-accent-1);
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: var(--color-accent-2);
    top: 30%;
    right: 20%;
    animation-delay: -9s;
    opacity: 0.2;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-3);
    top: 70%;
    left: 60%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* =============================================================================
   CONTAINER & LAYOUT
   ============================================================================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    position: relative;
}

.logo-icon.small {
    width: 35px;
    height: 35px;
}

.eye-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.eye-logo .rays line {
    transform-origin: 50% 50%;
    animation: rayPulse 3s ease-in-out infinite;
}

.eye-logo .rays line:nth-child(odd) {
    animation-delay: -1.5s;
}

@keyframes rayPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown li a:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-sm) 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.card-body {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

/* =============================================================================
   MIRROR STATUS CARDS
   ============================================================================= */

.mirror-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-normal);
}

.mirror-card:hover {
    box-shadow: var(--shadow-md);
}

.mirror-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mirror-status.online {
    background: var(--color-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

.mirror-status.offline {
    background: var(--color-danger);
}

.mirror-status.maintenance {
    background: var(--color-warning);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mirror-info {
    flex: 1;
    min-width: 0;
}

.mirror-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.mirror-url {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

.mirror-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.mirror-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* =============================================================================
   FORMS
   ============================================================================= */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

/* =============================================================================
   CODE & PRE
   ============================================================================= */

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-surface);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

pre {
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.code-block {
    position: relative;
    margin: var(--space-lg) 0;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--color-border);
    border-bottom: none;
}

.code-block-header span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.code-block pre {
    margin: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* =============================================================================
   STATS
   ============================================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   GUIDES GRID
   ============================================================================= */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.guide-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.guide-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.guide-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-md);
}

.guide-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.difficulty-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.difficulty-badge.intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.difficulty-badge.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */

.faq-section {
    margin-bottom: var(--space-2xl);
}

.faq-category {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--color-surface);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* =============================================================================
   ALERT & NOTICES
   ============================================================================= */

.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #0891b2;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* =============================================================================
   TABLE
   ============================================================================= */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
}

th, td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-text);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-bg-alt);
}

/* =============================================================================
   BADGES
   ============================================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.badge-primary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
    border-color: rgba(139, 92, 246, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-bg);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--color-bg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    gap: var(--space-md);
}

.footer-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   PAGE HEADER
   ============================================================================= */

.page-header {
    padding: var(--space-2xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-2xl);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
}

.page-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb span {
    color: var(--color-text-muted);
}

.breadcrumb .current {
    color: var(--color-primary);
}

/* =============================================================================
   PGP GENERATOR
   ============================================================================= */

.pgp-generator-form {
    max-width: 600px;
    margin: 0 auto;
}

.key-output {
    background: var(--color-text);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.key-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.key-output-title {
    color: var(--color-primary-light);
    font-weight: 600;
}

.key-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-bg);
    resize: vertical;
}

/* =============================================================================
   STATUS PAGE
   ============================================================================= */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.status-indicator.operational {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-indicator.degraded {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-indicator.outage {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.status-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.service-name {
    font-weight: 600;
    color: var(--color-text);
}

.service-uptime {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =============================================================================
   GAME PAGE
   ============================================================================= */

.game-container {
    background: var(--color-text);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 600px;
    position: relative;
}

.game-canvas {
    width: 100%;
    height: 100%;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
}

.game-title {
    font-family: var(--font-display);
    font-size: 3rem;
    background: var(--gradient-psychedelic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    animation: hueRotate 5s linear infinite;
}

@keyframes hueRotate {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.game-instructions {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
}

.game-controls {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.game-score {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-list > li > a {
        padding: var(--space-md);
    }
    
    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-surface);
        margin-top: var(--space-sm);
    }
    
    .has-dropdown:hover .dropdown {
        transform: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

/* =============================================================================
   LANGUAGE SELECTOR
   ============================================================================= */

.lang-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.lang-btn:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.lang-btn .flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-btn .chevron {
    transition: transform var(--transition-fast);
}

.lang-dropdown.active + .lang-btn .chevron,
.lang-selector:focus-within .lang-btn .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    max-height: 400px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-header {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

.lang-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.lang-list::-webkit-scrollbar {
    width: 6px;
}

.lang-list::-webkit-scrollbar-track {
    background: var(--color-surface);
}

.lang-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.lang-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-fast);
    cursor: pointer;
}

.lang-item:hover {
    background: var(--color-surface);
}

.lang-item.active {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    color: white;
}

.lang-item .flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-item .lang-code {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.lang-item.active .lang-code {
    background: rgba(255, 255, 255, 0.2);
}

.lang-item .lang-native {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* RTL Support */
[dir="rtl"] .lang-selector {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Mobile Language Selector */
@media (max-width: 1024px) {
    .lang-selector {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 100;
    }
    
    .lang-btn {
        padding: 0.4rem 0.6rem;
    }
    
    .lang-btn .lang-code {
        display: none;
    }
    
    .lang-dropdown {
        right: 0;
        width: min(280px, calc(100vw - 2rem));
    }
}

@media (max-width: 480px) {
    .lang-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }
    
    .lang-dropdown.active {
        transform: translateY(0);
    }
    
    .lang-list {
        max-height: calc(60vh - 50px);
    }
}

/* =============================================================================
   LANGUAGE-SPECIFIC FONT SUPPORT
   ============================================================================= */

/* Arabic */
:lang(ar),
[lang="ar"] * {
    font-family: 'Noto Sans Arabic', var(--font-body), sans-serif;
}

/* Hebrew */
:lang(he),
[lang="he"] * {
    font-family: 'Noto Sans Hebrew', var(--font-body), sans-serif;
}

/* Persian */
:lang(fa),
[lang="fa"] * {
    font-family: 'Noto Sans Arabic', var(--font-body), sans-serif;
}

/* Chinese */
:lang(zh),
[lang="zh"] * {
    font-family: 'Noto Sans SC', var(--font-body), sans-serif;
}

/* Japanese */
:lang(ja),
[lang="ja"] * {
    font-family: 'Noto Sans JP', var(--font-body), sans-serif;
}

/* Korean */
:lang(ko),
[lang="ko"] * {
    font-family: 'Noto Sans KR', var(--font-body), sans-serif;
}

/* Thai */
:lang(th),
[lang="th"] * {
    font-family: 'Noto Sans Thai', var(--font-body), sans-serif;
}

/* Print styles */
@media print {
    .psychedelic-bg,
    .site-header,
    .site-footer,
    .btn,
    .lang-selector {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

