:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --bg-color: #f0f4f8;
    --text-color: #2c3e50;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    padding-top: 70px; /* Space for navbar */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: #1a2a3a;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.header-subtitle {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

/* Sections */
.info-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.static-section {
    background: rgba(255, 255, 255, 0.8);
    border-left: 8px solid var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-section.collapsed .section-content {
    display: none;
}

h2 {
    font-size: 1.6rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-description, .tool-guide {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
}

.privacy-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* UI Elements */
.toggle-btn {
    min-width: 85px; /* Consistent size for '펼치기' and '접기' */
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
}

.toggle-btn:active {
    transform: scale(0.95);
}

.toggle-btn:hover {
    filter: brightness(1.1);
}

/* Iconic Illustration Box */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-image: url('image1.png');
    background-size: 500% auto;
    background-repeat: no-repeat;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.weather-icon { background-position: 0% 50%; background-color: #e3f2fd; }
.exchange-icon { background-position: 25% 50%; background-color: #fff8e1; }
.qr-icon { background-position: 50% 50%; background-color: #e0f2f1; }
.lotto-icon { background-position: 75% 50%; background-color: #fffde7; }
.contact-icon { background-position: 100% 50%; background-color: #f1f8e9; }

.game-icon { 
    background-image: none !important; 
    background-color: #fce4ec !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
}
.game-icon::after { content: '🎮'; }

.date-icon { 
    background-image: none !important; 
    background-color: #e8eaf6 !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
}
.date-icon::after { content: '📅'; }

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.game-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Tool Action */
.tool-action {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.action-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    filter: brightness(1.1);
}

.section-header h2 {
    flex-grow: 1;
    margin: 0;
    padding-left: 0;
}

.section-header h2::before {
    display: none; /* Hide old blue bar */
}

.city-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

select, button {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

select { flex: 1; border: 1px solid #ddd; }
#details-button { flex: 1; background-color: #f0f0f0; }

select:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.update-time {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; font-weight: 700; color: #555; }
.form-group input, .form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: white;
}
.submit-btn {
    padding: 1rem !important;
    background: linear-gradient(135deg, var(--primary-color), #357ABD) !important;
    color: white !important;
    font-weight: 800 !important;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #888;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; } /* Simplified for mobile */
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 1rem; }
    .city-selector { flex-direction: column; }
}
