:root {
    --primary: #ff85a1;
    --secondary: #ffccd5;
    --bg: #fff5f7;
    --text: #4a4e69;
    --card-bg: #ffffff;
    --btn-hover: #ffafcc;
    --progress-bg: #f0f0f0;
    --header-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --bg: #1a1a2e;
    --text: #e0e1dd;
    --card-bg: #16213e;
    --primary: #ff85a1;
    --secondary: #4a4e69;
    --btn-hover: #ff758f;
    --progress-bg: #0f3460;
    --header-bg: rgba(22, 33, 62, 0.9);
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: 0.3s;
}

/* Header Styles */
.global-header {
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 1.5rem;
    font-weight: 600;
    transition: 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
}

.app-container {
    width: 90%;
    max-width: 450px;
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Footer Styles */
.global-footer {
    width: 100%;
    background: var(--card-bg);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
}

.footer-info h3 { color: var(--primary); margin-bottom: 1rem; }
.footer-info p { opacity: 0.7; font-size: 0.95rem; }

.footer-links h4 { margin-bottom: 1rem; }
.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.footer-links a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* UI Elements */
.progress-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    margin-bottom: 2rem;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }

.cute-img { width: 120px; height: 120px; margin-bottom: 1.5rem; animation: bounce 2s infinite ease-in-out; border-radius: 20px; }

h1 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
p { font-size: 1.1rem; line-height: 1.6; }

.btn-container { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
button { padding: 1rem; border: 2px solid var(--primary); background: transparent; color: var(--text); border-radius: 15px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
button:hover { background: var(--primary); color: white; transform: scale(1.02); }
button.primary-btn { background: var(--primary); color: white; border: none; }
button.primary-btn:hover { background: var(--btn-hover); }

.result-avatar { width: 180px; height: 180px; margin: 1rem auto; }
.label-tag { display: inline-block; padding: 0.5rem 1.5rem; background: var(--primary); color: white; border-radius: 50px; font-weight: bold; margin: 1rem 0; }

#themeToggle { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--primary); color: white; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1001; }

/* Blog Specific Styles */
.blog-container { max-width: 800px; width: 90%; margin: 0 auto; }
.blog-post { background: var(--card-bg); padding: 2.5rem; border-radius: 25px; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.blog-post h2 { color: var(--primary); margin-bottom: 1.5rem; }
.blog-post p { font-size: 1rem; opacity: 0.8; margin-bottom: 1.5rem; }
.blog-post .meta { font-size: 0.85rem; opacity: 0.5; margin-bottom: 1rem; }
