/* 부드럽고 감성적인 구글 폰트 도입 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

:root {
    --primary-color: #333;
    --accent-color: #4dabf7;
    --bg-color: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --q1: #ff6b6b; --q2: #4dabf7; --q3: #ffd43b; --q4: #adb5bd;
}

body { 
    font-family: 'Pretendard', -apple-system, sans-serif; 
    background-color: var(--bg-color); 
    margin: 0; color: #2c3e50; 
    transition: background 0.3s;
    line-height: 1.7;
}

/* 로고 및 제목: 부드러운 명조체 */
.home-logo, .step-title, .landing-header h1, .report-card h3, .guide-article h2 {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
}

.home-logo {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    font-size: 1.5rem; letter-spacing: 8px; cursor: pointer; z-index: 1000; opacity: 0.8;
    color: var(--primary-color);
}

/* Top Settings & Progress */
.top-settings {
    position: fixed; top: 20px; right: 20px;
    display: flex; align-items: center; gap: 20px; z-index: 100;
}
.progress-container { display: flex; align-items: center; gap: 10px; font-size: 0.7rem; font-weight: 700; color: #888; }
.progress-bar-bg { width: 100px; height: 6px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background: #2ecc71; transition: 0.5s; }

/* Landing Page */
.landing-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.landing-content { max-width: 900px; width: 100%; text-align: center; }
.landing-header h1 { font-size: clamp(3rem, 10vw, 5rem); letter-spacing: 15px; margin: 0; }
.landing-header p { font-size: 1.2rem; color: #666; margin-bottom: 50px; }

/* Guide Grid */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.guide-card { background: white; padding: 35px 25px; border-radius: 20px; box-shadow: var(--card-shadow); transition: 0.3s; }
.guide-card.clickable { cursor: pointer; }
.guide-card.clickable:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.guide-card .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.view-more { font-size: 0.75rem; color: var(--accent-color); font-weight: 700; margin-top: 15px; display: block; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.modal-content { background: white; margin: 5vh auto; padding: 50px; border-radius: 30px; width: 90%; max-width: 750px; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }
.close-modal { position: absolute; right: 30px; top: 25px; font-size: 2.5rem; cursor: pointer; color: #ccc; }

/* Planner Button */
.planner-btn { background: var(--primary-color); color: white; padding: 18px 50px; border-radius: 40px; font-size: 1.1rem; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.3s; }
.planner-btn:hover { transform: scale(1.05); }

/* App UI Layout */
.planner-wrapper { display: flex; flex-direction: column; max-width: 1200px; margin: 100px auto; padding: 20px; gap: 30px; }
@media (min-width: 992px) {
    .planner-wrapper { flex-direction: row; align-items: flex-start; }
    .strategy-sidebar { position: sticky; top: 100px; width: 380px; flex-shrink: 0; }
    .main-log { flex-grow: 1; }
}
.strategy-sidebar, .main-log { background: white; padding: 35px; border-radius: 25px; box-shadow: var(--card-shadow); }

/* Inputs & Tables */
input[type="text"], input[type="time"], select { border: 1px solid #f0f0f0; padding: 10px; border-radius: 10px; font-family: inherit; background: #fafafa; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th { text-align: left; padding: 15px; color: #aaa; font-size: 0.75rem; letter-spacing: 1px; border-bottom: 1px solid #eee; }
td { padding: 15px; border-bottom: 1px solid #fbfbfb; }

.save-btn-modern { width: 100%; padding: 18px; background: #2ecc71; color: white; border: none; border-radius: 15px; font-weight: 700; font-size: 1.1rem; cursor: pointer; margin-top: 30px; }

/* Footer */
.minimal-footer { padding: 50px; text-align: center; border-top: 1px solid #eee; background: white; }
.contact-inline { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.8rem; color: #999; }
.contact-inline input { border: 1px solid #eee; padding: 8px 12px; border-radius: 8px; width: 180px; }
