@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Gmarket+Sans:wght@500;700&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #E85520;
    --secondary: #00B894;
    --bg: #FEF7F0;
    --card-bg: #FFFFFF;
    --text-main: #2D3436;
    --text-sub: #636E72;
    --border: #F0E0D6;
    --shadow: 0 10px 40px rgba(255, 107, 53, 0.1);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 20px; /* Senior friendly base size */
    word-break: keep-all;
}

/* Typography */
h1, h2, h3, .title-font {
    font-family: 'Gmarket Sans', sans-serif;
    font-weight: 700;
}

/* Layout Containers */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px; /* For fixed bottom nav/ads */
}

.content-padding {
    padding: 20px;
}

/* Components */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.btn-main {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(232, 85, 32, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-sub {
    display: block;
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--text-main);
    border: 3px solid var(--border);
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
}

/* Form Elements */
input, select {
    width: 100%;
    padding: 18px;
    margin-bottom: 16px;
    border: 3px solid var(--border);
    border-radius: 16px;
    font-size: 20px;
    font-family: inherit;
    outline: none;
    background: white;
}

input:focus {
    border-color: var(--primary);
}

label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-sub);
}

/* Ad Placeholders (Clean Design) */
.ad-box {
    width: 100%;
    background: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #bbb;
    margin: 15px 0;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.ad-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px;
}

/* Grid for Index Page */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px;
}

@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #fff;
    transition: 0.2s;
}

.menu-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.menu-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.menu-title {
    font-size: 18px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.menu-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.3;
}

/* Header */
.top-nav {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-btn {
    background: #fff;
    border: 2px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
