* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: #fff8f0;
    transition: background-color 0.3s ease;
}

body.dark {
    background-color: #1a1a2e;
}

.container {
    text-align: center;
    background-color: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 360px;
    margin-top: 80px;
    margin-bottom: 32px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .container {
    background-color: #16213e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

body.dark h1 {
    color: #f0f0f0;
}

.subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

body.dark .subtitle {
    color: #888;
}

.menu-card {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 16px;
    padding: 36px 24px;
    margin-bottom: 28px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card.animate {
    animation: pop 0.35s ease;
}

@keyframes pop {
    0%   { transform: scale(0.92); opacity: 0.6; }
    60%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); }
}

.menu-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.menu-emoji {
    font-size: 56px;
    line-height: 1;
}

.menu-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.menu-category {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

#recommend-btn {
    padding: 14px 36px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    background-color: #ff6b6b;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
}

#recommend-btn:hover {
    background-color: #e05555;
}

#recommend-btn:active {
    transform: scale(0.97);
}

.animal-test-section {
    margin-top: 20px;
}

.animal-test-btn {
    display: block;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, transform 0.1s;
}

.animal-test-btn:hover { opacity: 0.9; }
.animal-test-btn:active { transform: scale(0.98); }

.partnership-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #f0e0d0;
    text-align: left;
}

body.dark .partnership-section {
    border-top-color: #2a2a4a;
}

.partnership-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

body.dark .partnership-section h2 {
    color: #f0f0f0;
}

.partnership-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partnership-form input,
.partnership-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #e0d0c0;
    border-radius: 10px;
    background: #fff8f0;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, background 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

body.dark .partnership-form input,
body.dark .partnership-form textarea {
    background: #1e1e3a;
    border-color: #3a3a5a;
    color: #f0f0f0;
}

.partnership-form input:focus,
.partnership-form textarea:focus {
    border-color: #ff6b6b;
}

.partnership-form button[type="submit"] {
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background-color: #ff6b6b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.partnership-form button[type="submit"]:hover {
    background-color: #e05555;
}

.partnership-form button[type="submit"]:active {
    transform: scale(0.97);
}

#lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 18px;
    font-size: 14px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 100;
}

#lang-toggle:hover {
    background-color: #e05555;
}

body.dark #lang-toggle {
    background-color: #e05555;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 14px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 100;
}

#theme-toggle:hover {
    background-color: #555;
}

body.dark #theme-toggle {
    background-color: #f0f2f5;
    color: #333;
}

body.dark #theme-toggle:hover {
    background-color: #d0d2d5;
}

/* ============================================================
   GEO: 상황별 추천 섹션 (Situation Cards)
============================================================ */
.geo-situations {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0e0d0;
    text-align: left;
}

body.dark .geo-situations {
    border-top-color: #2a2a4a;
}

.geo-situations h2 {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

body.dark .geo-situations h2 {
    color: #aaa;
}

.situation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.situation-card {
    background: #fff8f0;
    border-radius: 12px;
    padding: 12px;
    transition: background 0.3s ease;
}

body.dark .situation-card {
    background: #1a1a30;
}

.situation-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 5px;
}

.situation-card h3 {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin: 0 0 5px;
    transition: color 0.3s ease;
}

body.dark .situation-card h3 {
    color: #ccc;
}

.situation-card p {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

body.dark .situation-card p {
    color: #666;
}

/* ============================================================
   GEO: HowTo 단계 섹션
============================================================ */
.howto-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0e0d0;
    text-align: left;
}

body.dark .howto-section {
    border-top-color: #2a2a4a;
}

.howto-section h2 {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

body.dark .howto-section h2 {
    color: #aaa;
}

.howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.howto-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f0eb;
    counter-increment: step-counter;
    transition: border-color 0.3s ease;
}

body.dark .howto-steps li {
    border-bottom-color: #2a2a3a;
}

.howto-steps li::before {
    content: counter(step-counter);
    min-width: 24px;
    height: 24px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.howto-steps li strong {
    font-size: 12px;
    color: #444;
    white-space: nowrap;
    transition: color 0.3s ease;
}

body.dark .howto-steps li strong {
    color: #ccc;
}

.howto-steps li span {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.dark .howto-steps li span {
    color: #666;
}

/* ============================================================
   GEO: FAQ 아코디언 섹션
============================================================ */
.faq-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0e0d0;
    text-align: left;
}

body.dark .faq-section {
    border-top-color: #2a2a4a;
}

.faq-section h2 {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

body.dark .faq-section h2 {
    color: #aaa;
}

.faq-section details {
    border-bottom: 1px solid #f0eae5;
    transition: border-color 0.3s ease;
}

body.dark .faq-section details {
    border-bottom-color: #2a2a3a;
}

.faq-section summary {
    cursor: pointer;
    padding: 11px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    user-select: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::before {
    content: '＋';
    font-size: 14px;
    color: #ff6b6b;
    flex-shrink: 0;
    line-height: 1;
}

.faq-section details[open] summary::before {
    content: '－';
}

.faq-section summary:hover {
    color: #ff6b6b;
}

body.dark .faq-section summary {
    color: #bbb;
}

body.dark .faq-section summary:hover {
    color: #ff8080;
}

.faq-section details p {
    padding: 4px 4px 14px 24px;
    font-size: 13px;
    color: #777;
    line-height: 1.75;
    margin: 0;
    transition: color 0.3s ease;
}

body.dark .faq-section details p {
    color: #666;
}

/* ============================================================
   SEO: 스크린 리더 전용 텍스트 (접근성)
============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SEO 콘텐츠 섹션 - 검색엔진을 위한 텍스트 콘텐츠
============================================================ */
.seo-content {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0e0d0;
    text-align: left;
}

body.dark .seo-content {
    border-top-color: #2a2a4a;
}

.seo-content h2 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.dark .seo-content h2 {
    color: #aaa;
}

.seo-content p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

body.dark .seo-content p {
    color: #777;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-content ul li {
    font-size: 13px;
    color: #888;
    padding: 3px 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.dark .seo-content ul li {
    color: #777;
}

.seo-content ul li strong {
    color: #ff6b6b;
}

/* ============================================================
   SEO: 사이트 푸터
============================================================ */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 24px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: auto;
}

body.dark .site-footer {
    background: #111122;
    border-top-color: #2a2a4a;
}

.site-footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer nav ul li a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer nav ul li a:hover {
    color: #ff6b6b;
}

body.dark .site-footer nav ul li a {
    color: #666;
}

body.dark .site-footer nav ul li a:hover {
    color: #ff8080;
}

.site-footer p {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

body.dark .site-footer p {
    color: #555;
}
