/* Modern KWordGame CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #8b5cf6;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-colored: 0 10px 15px -3px rgba(99, 102, 241, 0.2);

    --font-main: 'Outfit', sans-serif;
    --font-kr: 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Background Gradients */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Navbar Modernization */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand {
    font-family: var(--font-main);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem !important;
}

/* Base Card Style */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

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

.card-header {
    background: transparent !important;
    /* Remove yellow/default backgrounds */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 12px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover .card-header i {
    background: var(--primary);
    color: white;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 9999px;
    /* Pill shape */
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
}

.btn-warning {
    /* Override warning to be Accent/Secondary */
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.2);
}

.start-game-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: white !important;
    border: none !important;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

/* List Items */
.list-group-item {
    border: none;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    background: transparent;
    transition: background 0.2s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Badge */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* Stats Badge Special Styling */
.list-group-item .badge {
    background: var(--bg-body) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    box-shadow: none !important;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Bottom Nav */
.navbar.fixed-bottom {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.fixed-bottom .nav-link {
    color: var(--text-muted) !important;
    border-radius: 12px;
    margin: 0 2px;
}

.navbar.fixed-bottom .nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.05) !important;
}

.navbar.fixed-bottom .nav-link i {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar.fixed-bottom .nav-link.active i {
    transform: translateY(-2px);
}

/* Specific Home Page Tweaks */
#company.tab-pane,
#terms.tab-pane,
#privacy.tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide legacy styles */
.border-warning {
    border-color: rgba(255, 193, 7, 0.3) !important;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .card-body {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}