/* Design Direction 2b: Dark Bento (다크모드 기본값 + 모듈 타일 + 핑크 글로우) */

:root {
    --bg-color: #0D0C10;
    --card-bg: #17161C;
    --card-hover-border: rgba(255, 92, 138, 0.55);
    --text-color: #F2F0F4;
    --text-muted: rgba(242, 240, 244, 0.6);
    --border-color: rgba(255, 255, 255, 0.09);
    --gradient-primary: linear-gradient(135deg, #FF5C8A, #FF8E5C);
    
    --font-sans: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    margin: 0;
    padding: 40px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.bento-container {
    width: 100%;
    max-width: 940px;
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Background Radial Glow */
.radial-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(620px 320px at 72% -5%, rgba(255, 92, 138, 0.22), rgba(255, 92, 138, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.bento-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.logo-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13.5px;
    color: rgba(242, 240, 244, 0.65);
}

.nav-link {
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-color);
}

.search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: rgba(242, 240, 244, 0.8);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.search-trigger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.search-kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
}

/* Hero Section */
.bento-hero {
    position: relative;
    padding: 48px 28px 36px;
    z-index: 10;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #FF7CA3;
    display: block;
    margin-bottom: 16px;
}

.hero-title {
    margin: 0;
    font-size: 52px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.pink-gradient-text {
    background: linear-gradient(90deg, #FF5C8A, #FF9E6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    margin: 18px 0 0;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #14060B;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 92, 138, 0.25);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(242, 240, 244, 0.85);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Bento Grid */
.bento-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    padding: 0 28px 24px;
    z-index: 10;
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bento-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 92, 138, 0.12);
}

.span-2-2 {
    grid-column: span 2;
    grid-row: span 2;
    padding: 24px;
    gap: 20px;
}

.span-2-1 {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #FF7CA3;
    display: block;
    margin-bottom: 10px;
}

.card-title-large {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-title-medium {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.card-text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.card-subtext {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.badge-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #FF7CA3;
    border: 1px solid rgba(255, 92, 138, 0.4);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.bento-card:hover .badge-tag {
    background-color: rgba(255, 92, 138, 0.1);
}

/* Widgets */
.progress-bar {
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8E8B95, #FF5C8A);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    animation: sweep 2.5s infinite linear;
}

@keyframes sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(242, 240, 244, 0.55);
}

/* Stats */
.stat-number {
    font-family: var(--font-mono);
    font-size: 38px;
    font-weight: 800;
}

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

.stat-number-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stat-unit {
    font-size: 20px;
    color: var(--text-muted);
}

.stat-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Tags */
.tag-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.round-badge {
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 13px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.round-badge:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.bento-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(242, 240, 244, 0.45);
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .bento-nav {
        padding: 18px 20px;
    }

    .nav-links {
        gap: 15px;
    }
    
    .search-trigger {
        padding: 4px 8px;
    }

    .bento-hero {
        padding: 30px 20px 24px;
    }

    .hero-title {
        font-size: 34px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
        gap: 15px;
    }

    .span-2-2, .span-2-1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .span-2-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .badge-tag {
        align-self: flex-start;
    }

    .bento-footer {
        padding: 14px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
