/* static/css/common.css - Global Design System & Common Styles */

:root {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    /* Gradient & Neon accents */
    --accent-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --accent-purple-gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    --accent-green-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --glow-color: rgba(99, 102, 241, 0.15);
    --font-family: 'Outfit', 'Inter', 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

/* Common Ball Color Classes */
.ball-yellow { background: radial-gradient(circle at 30% 30%, #ffe066 0%, #f59e0b 70%, #ca8a04 100%); border: 1px solid #eab308; }
.ball-blue { background: radial-gradient(circle at 30% 30%, #74c0fc 0%, #3b82f6 70%, #1d4ed8 100%); border: 1px solid #3b82f6; }
.ball-red { background: radial-gradient(circle at 30% 30%, #ff8787 0%, #ef4444 70%, #b91c1c 100%); border: 1px solid #ef4444; }
.ball-grey { background: radial-gradient(circle at 30% 30%, #e5e7eb 0%, #6b7280 70%, #374151 100%); border: 1px solid #6b7280; }
.ball-green { background: radial-gradient(circle at 30% 30%, #63e6be 0%, #10b981 70%, #047857 100%); border: 1px solid #10b981; }

/* Common Header Styling */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    transition: background 0.3s ease;
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.5px;
}
.header-logo span {
    color: #fbbf24;
}
.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.header-nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 0;
}
.header-nav-link:hover {
    color: #fff;
}
.header-nav-link.active {
    color: #fbbf24;
}
.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fbbf24;
    border-radius: 2px;
}
/* Mobile Style: Horizontal Scrollable nav */
@media (max-width: 768px) {
    header.site-header {
        padding: 12px 0 8px 0;
    }
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    .header-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .header-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 16px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .header-nav::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .header-nav-link {
        display: inline-block;
        font-size: 13.5px;
        padding: 4px 6px;
    }
}
