/* Base Styles */
:root {
    --primary-color: #2c5282;
    --primary-dark: #1a365d;
    --secondary-color: #4299e1;
    --accent-color: #3182ce;
    --background-color: #f7fafc;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --error-color: #f56565;
    --hover-color: rgba(255, 255, 255, 0.1);
    --nav-bg-color: #2c5282;
}

/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.site-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.social-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #1e88e5;
}

.ad-container {
    margin: 2rem 0;
    text-align: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
}

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

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    background-color: var(--nav-bg-color);
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    width: 100%;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
}

.main-nav li {
    margin: 0;
    padding: 0;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--nav-bg-color);
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-nav a.active {
    color: var(--nav-bg-color);
    background-color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.description p {
    margin-bottom: 0.5rem;
}

.source {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    margin-top: 1rem;
}

.calculator {
    background-color: #e9ecef;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.input-group label {
    display: inline-block;
    min-width: 80px;
    font-weight: bold;
}

.input-group input[type="text"],
input[type="number"] {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.input-group .search-btn {
    width: auto;
    padding: 0.5rem 1rem;
    margin: 0;
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group input[type="text"],
    input[type="number"] {
        margin-right: 0;
        width: 100%;
    }

    .input-group .search-btn {
        width: 100%;
    }
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.result {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 5px;
    display: none;
}

.result.show {
    display: block;
}

.bmi-table {
    margin-top: 2rem;
}

.bmi-table h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 단위 변환 계산기 스타일 */
.converter-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.converter-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.converter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.converter-arrow {
    font-size: 1.5rem;
    color: #007bff;
    margin: 0 1rem;
    flex-shrink: 0;
}

.converter-group .input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.converter-group .input-group input {
    width: 100px;
    min-width: 0;
    flex-shrink: 1;
}

.converter-group .input-group select {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.converter-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .converter-group {
        flex-wrap: wrap;
    }

    .converter-group .input-group {
        min-width: 100%;
    }

    .converter-arrow {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* 중간 지점 찾기 스타일 */
.location-inputs {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.location-inputs .input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.location-inputs label {
    min-width: 80px;
    font-weight: bold;
}

.location-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.search-btn {
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #5a6268;
}

.primary-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.map-container {
    margin: 2rem 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 400px;
}

.facilities {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
}

.facilities h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.facility-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.facility-buttons button {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.facility-buttons button:hover {
    background-color: #007bff;
    color: white;
}

#facility-list {
    max-height: 300px;
    overflow-y: auto;
}

.facility-item {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.facility-item:hover {
    background-color: #f0f0f0;
}

.facility-item h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.facility-item p {
    margin: 0.5rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 로또 번호 생성기 스타일 */
.lotto-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.number-count {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.number-count label {
    font-weight: bold;
    min-width: 120px;
}

.number-count select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 100px;
}

.lotto-results {
    margin-top: 2rem;
}

.lotto-game {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.game-title {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.number-balls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

.ball-1-10 {
    background-color: #fbc400;
}

.ball-11-20 {
    background-color: #69c8f2;
}

.ball-21-30 {
    background-color: #ff7272;
}

.ball-31-40 {
    background-color: #aaaaaa;
}

.ball-41-45 {
    background-color: #b0d840;
}

.lotto-info {
    margin-top: 2rem;
}

.lotto-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.lotto-info ul {
    padding-left: 1.5rem;
}

.lotto-info li {
    margin-bottom: 0.5rem;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 이미지 변환기 관련 스타일 */
.image-upload-area {
    margin: 20px 0;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #4CAF50;
    background-color: #f0f9f0;
}

.upload-box.dragover {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

#uploadIcon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.converter-options {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quality-slider {
    margin: 20px 0;
}

.quality-slider label {
    display: block;
    margin-bottom: 10px;
}

.quality-slider input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.convert-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.convert-button:hover {
    background-color: #45a049;
}

.convert-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.preview-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-box h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.preview-image {
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.image-info p {
    margin: 5px 0;
}

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

/* BMI 정보 카드 */
.bmi-info {
    margin: 40px 0;
}

.info-card {
    background: #f9f9f9;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.info-card h3 {
    color: #333;
    margin-top: 0;
    font-size: 1.2em;
}

/* FAQ 섹션 */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
}

.faq-item {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
}

.faq-item h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.1em;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* 관련 도구 */
.related-tools {
    margin: 40px 0;
    padding: 25px;
    background: #e8f5e9;
    border-radius: 8px;
}

.related-tools ul {
    list-style: none;
    padding: 0;
}

.related-tools li {
    margin: 10px 0;
}

.related-tools a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.related-tools a:hover {
    text-decoration: underline;
}

/* 주의사항 */
.disclaimer {
    margin: 40px 0;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.disclaimer h2 {
    color: #856404;
    font-size: 1.2em;
    margin-top: 0;
}

.disclaimer p {
    color: #856404;
    margin: 0;
}

/* 푸터 */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.site-footer p {
    margin: 5px 0;
}

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 네비게이션 */
.main-nav {
    background-color: var(--nav-bg-color);
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    gap: 0.5rem;
}

.main-nav li {
    text-align: center;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--nav-bg-color);
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-nav a.active {
    color: var(--nav-bg-color);
    background-color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5em;
    color: var(--primary-dark);
    text-align: center;
    font-weight: 700;
}

h2 {
    font-size: 1.8em;
    color: #2c3e50;
}

h3 {
    font-size: 1.2em;
    margin-top: 0;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.container>header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

/* Common Components */
.section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.description {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

/* Form Elements */
.input-group {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group label {
    min-width: 80px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}

input,
select,
button {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

.input-group label {
    min-width: 80px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #FF5722;
}

.input-group select {
    cursor: pointer;
    background: white;
}

#calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

#calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

#calculate:active {
    transform: translateY(0);
}

/* 결과 */
.result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.result p {
    font-size: 1.3em;
    margin: 10px 0;
}

.result span {
    font-size: 1.5em;
    font-weight: bold;
}

/* 공식 정보 카드 */
.formula-info {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.formula-info h2 {
    color: white;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
}

.formula-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.formula-card h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
}

.formula-note {
    margin-top: 20px;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.9;
    text-align: center;
}

/* 활동량 칼로리 테이블 */
.activity-calories {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activity-calories h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.activity-intro {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-left: 4px solid #FF5722;
    border-radius: 4px;
}

.activity-table {
    overflow-x: auto;
}

.activity-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.activity-table th,
.activity-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.activity-table th {
    background: #FF5722;
    color: white;
    font-weight: 600;
}

.activity-table tbody tr:hover {
    background: #fff3f0;
}

.activity-table tbody tr:last-child td {
    border-bottom: none;
}

/* BMR 활용법 */
.bmr-usage {
    margin: 40px 0;
}

.bmr-usage h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.usage-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #FF5722;
}

.usage-card h3 {
    color: #FF5722;
    margin-top: 0;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.usage-card p {
    color: #555;
    line-height: 1.8;
    margin: 10px 0;
}

.example {
    background: #fff3f0;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.95em;
    color: #666;
    border-left: 3px solid #FF5722;
}

/* 팁 섹션 */
.tips-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3);
}

.tips-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    padding-top: 60px;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tip-card h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* FAQ 섹션 */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.faq-item {
    margin: 20px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF5722;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #fff3f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.15em;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* 관련 도구 */
.related-tools {
    margin: 40px 0;
    padding: 25px;
    background: #e8f5e9;
    border-radius: 8px;
}

.related-tools h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.related-tools ul {
    list-style: none;
    padding: 0;
}

.related-tools li {
    margin: 12px 0;
}

.related-tools a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.related-tools a:hover {
    color: #1b5e20;
    transform: translateX(5px);
}

.related-tools a::before {
    content: "→ ";
    margin-right: 8px;
}

/* 주의사항 */
.disclaimer {
    margin: 40px 0;
    padding: 25px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.disclaimer h2 {
    color: #856404;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
}

.disclaimer p {
    color: #856404;
    margin: 10px 0;
    line-height: 1.8;
}

/* 푸터 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.site-footer p {
    margin: 8px 0;
    font-size: 0.95em;
}

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

/* 반응형 디자인 */
/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        width: 100%;
    }

    .input-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .input-group label {
        min-width: 80px;
        white-space: nowrap;
    }

    input[type="number"] {
        width: 120px;
        min-width: 120px;
    }

    h1 {
        font-size: 1.8em;
    }

    .section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .formula-info,
    .tips-section {
        padding: 20px;
    }

    .activity-table table {
        font-size: 0.8em;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator,
.result,
.description {
    animation: fadeIn 0.5s ease-out;
}

/* 프린트 스타일 */
@media print {

    .main-nav,
    .site-footer,
    #calculate {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}

.social-links {
    display: none !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    input[type="number"] {
        width: 120px;
    }

    .preview-section {
        grid-template-columns: 1fr;
    }
}