@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #0052cc;
    --primary-light: #4c9aff;
    --primary-gradient: linear-gradient(135deg, #0052cc 0%, #4c9aff 100%);
    
    /* Surface Colors */
    --bg-page: #f4f7fb;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    /* Text Colors */
    --text-primary: #172b4d;
    --text-secondary: #5e6c84;
    --text-tertiary: #8993a4;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(9, 30, 66, 0.04);
    --shadow-md: 0 8px 24px rgba(9, 30, 66, 0.06);
    --shadow-lg: 0 16px 40px rgba(9, 30, 66, 0.08);
    --shadow-glow: 0 0 20px rgba(76, 154, 255, 0.3);
    
    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-w: 1100px;
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-page);
    background-image: radial-gradient(circle at 15% 50%, rgba(76, 154, 255, 0.08), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(0, 82, 204, 0.05), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.global-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism Card (Used everywhere) */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Navigation Bar (Injected globally)
   ========================================================================== */
.premium-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.premium-nav .brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-nav .nav-links {
    display: flex;
    gap: 8px;
}

.premium-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.premium-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
}

@media (max-width: 768px) {
    .premium-nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    .premium-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* LNB (Local Navigation Bar for About section) */
.premium-lnb {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin-top: -40px; /* pull up under main nav */
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.premium-lnb .lnb-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s ease;
}

.premium-lnb .lnb-link:hover {
    background: rgba(0, 82, 204, 0.05);
    color: var(--primary);
}

/* ==========================================================================
   Hero Section (Main Page)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Action Cards */
.action-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.action-card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.action-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.action-card .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0, 82, 204, 0.2);
}

.btn-outline:hover {
    background: rgba(0, 82, 204, 0.05);
    border-color: var(--primary);
}

/* ==========================================================================
   Content Pages (Wiki, About, Notice) Typography & Tables
   ========================================================================== */
.content-wrapper {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 40px;
}

.content-wrapper h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.content-wrapper h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    color: var(--primary);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

th {
    font-weight: 600;
    background: rgba(0,0,0,0.02);
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(0,0,0,0.01);
}

/* Notice Badge */
.badge {
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* Infobox (from about pages) */
.infobox {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

/* Card Grid (from about pages) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Info Cards */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-tag {
    font-size: 0.75rem;
    background: rgba(0, 82, 204, 0.05);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
    display: inline-block;
}
