/* 하루하나 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 좁은 컨테이너 (index 페이지용) */
.container.narrow {
    max-width: 400px;
    text-align: center;
}

h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* 링크 목록 (index 페이지용) */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.links a {
    display: block;
    padding: 14px 20px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.2s;
}

.links a:hover {
    background: #eee;
}

/* 섹션 */
.section {
    margin-bottom: 30px;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* 버전 정보 */
.version-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* 콘텐츠 영역 */
.content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 로딩 스피너 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 단계별 안내 */
.step {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.step-number {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* 경고 박스 */
.warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.warning-title {
    color: #856404;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.warning-title::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 20px;
}

.warning ul {
    margin-left: 20px;
    color: #856404;
}

.warning li {
    margin-bottom: 5px;
}

/* 연락처 박스 */
.contact {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.contact-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
}

.contact a {
    color: #1976d2;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* 에러 박스 */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* 푸터 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }
}
