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

:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --gold: #f1c40f;
    --silver: #95a5a6;
    --bronze: #cd7f32;
    --bg: #ecf0f1;
    --card-bg: #ffffff;
    --blur-text: #bdc3c7;
    --success: #27ae60;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Typography Consistency */
body {
    line-height: 1.6;
    color: #333;
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
}

ul,
ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 숫자가 중요한 부분에 게이밍 폰트 적용 */
.time-display,
.rank-time,
.rank-badge,
.diff-text {
    font-family: 'Chakra Petch', sans-serif;
}

/* Navigation Bar */
#header-container,
#footer-container {
    width: 100%;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin: 0 auto;
    background-color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 0 !important;
    background: none !important;
}

.nav-logo img {
    height: 40px;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    font-weight: 900;
    color: #9b7ed6;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .nav-bar {
        padding: 10px 15px;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

.nav-bar a:hover {
    background: #f1f2f6;
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.85rem;
    color: #95a5a6;
    width: 100%;
}

.site-footer a {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* About Page Specifics */
.about-layout {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 60px;
}

.about-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #9b59b6;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    word-break: keep-all;
}

.developer-profile ul {
    background: white;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.developer-profile li {
    list-style: none;
    margin-bottom: 12px;
    color: #444;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.anim-pulse {
    animation: pulse 0.5s ease-in-out;
}

.anim-shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.anim-pop {
    animation: pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}