/* 이전 최종본과 동일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');
:root { --primary-color: #4a90e2; --background-color: #f0f2f5; --text-color: #333; --card-bg: #ffffff; --secondary-text-color: #666; }
body { font-family: 'Noto Sans KR', sans-serif; background-color: var(--background-color); color: var(--text-color); margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; text-align: center; }
.container { max-width: 400px; width: 100%; padding: 20px; box-sizing: border-box; overflow-x: hidden; }
.screen { display: none; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn 0.5s ease-in-out; }
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 15px; }
h2 { font-size: 0.9rem; line-height: 1.6; font-weight: 400; color: var(--secondary-text-color); margin-top: 0; margin-bottom: 30px; }
h3 { margin: 0 0 8px; font-size: 0.9rem; color: var(--text-color); }
.cta-btn { background-color: var(--primary-color); color: white; border: none; padding: 15px 30px; font-size: 1.2rem; font-weight: 700; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.2s, box-shadow 0.2s; width: 100%; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.trust-text { margin-top: 20px; font-size: 1.0rem; color: #5f5f5f; }
.btn-group { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.upload-btn { background-color: var(--card-bg); color: var(--text-color); border: 2px solid #ddd; padding: 15px; font-size: 1rem; font-weight: 500; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.upload-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.loader { border: 8px solid #f3f3f3; border-top: 8px solid var(--primary-color); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#analysis-text { font-size: 1.1rem; color: #555; }
.result-card { background-color: var(--card-bg); border-radius: 15px; padding: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); width: 100%; margin-bottom: 20px; }
.result-headline { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin: 0 0 20px; line-height: 1.4; }
#result-image { max-width: 80%; border-radius: 10px; margin-bottom: 25px; }
.result-section { padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
#result-description { font-size: 0.95rem; color: var(--secondary-text-color); line-height: 1.7; text-align: left; white-space: pre-wrap; }
.hashtags { font-size: 0.9rem; color: var(--primary-color); font-weight: 500; margin-top: 15px; word-break: keep-all; }
.chemistry-section { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.chem-box { padding: 15px; border-radius: 8px; text-align: left; }
.chem-box.good { background-color: #eaf2ff; }
.chem-box.bad { background-color: #ffeaea; }
.chem-box p { font-size: 0.85rem; color: var(--secondary-text-color); margin: 0; line-height: 1.5; }
.retry-btn { background: none; border: none; color: var(--secondary-text-color); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
.main-logo-img { width: 300px; margin-bottom: 20px; }
.guide-img { max-width: 100%; margin-bottom: 20px; border-radius: 10px; }
.share-btn { margin-bottom: 15px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ad-container { display:flex; justify-content: center; align-items: center; width: 320px; height: 100px; margin: 20px auto 0; background-color: #e9e9e9; border: 1px dashed #ccc; }
.ad-container-vertical { display: none; position: fixed; left: 20px; top: 50%; justify-content: center; align-items: center; transform: translateY(-50%); width: 160px; height: 600px; background-color: #e9e9e9; border: 1px dashed #ccc; }
@media (min-width: 1000px) { .ad-container-vertical { display: flex; } }
footer { width: 100%; text-align: center; padding: 20px 0; margin-top: 20px; font-size: 0.8rem; color: #aaa; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }