/* 
* 국민연금 기금 시뮬레이터 - 스타일시트
* 모던하고 세련된 UI 디자인
*/

:root {
    /* 기본 색상 및 UI 변수 */
    --primary-color: #3b7cf3;
    --primary-light: #6ea1ff;
    --primary-dark: #245bbf;
    --secondary-color: #f0f5ff;
    --accent-color: #4629b0;
    --dark-color: #2c3e50;
    --light-color: #f9fafc;
    --gray-color: #ebeef2;
    --text-color: #333;
    --text-light: #7a8ca1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    
    /* 차트 관련 변수 */
    --chart-line-color: #3b7cf3;
    --chart-line-width: 2px;
    --chart-fill-color: rgba(59, 124, 243, 0.2);
    --chart-positive-color: rgba(59, 124, 243, 1);
    --chart-negative-color: #c14545b7;
    --chart-zero-line-color: rgba(115, 115, 115, 0.79);
    --chart-zero-line-width: 1px;
    
    /* 세그먼트 배경색 변수 */
    --chart-positive-background: rgba(59, 124, 243, 0.1);
    --chart-negative-background: rgba(255, 0, 0, 0.05);
    --chart-transparent-background: rgba(0, 0, 0, 0);
    
    /* 데이터 포인트 스타일 */
    /* 과거 데이터 포인트 (2025년 이전) */
    --historical-point-radius: 2px;
    --historical-point-hover-radius: 5px;
    --historical-point-border-width: 0px;
    
    /* 호버 스타일 */
    --point-hover-radius: 8px;
    --point-hover-border-width: 2px;
    --point-hover-positive-background: rgba(59, 124, 243, 0.2);
    --point-hover-negative-background: rgba(193, 69, 69, 0.2);
    --point-hover-positive-border: var(--chart-positive-color);
    --point-hover-negative-border: var(--chart-negative-color);
    --tooltip-hover-animation-duration: 300; /* ms */
    --historical-point-hover-border-color: rgba(59, 124, 243, 1);
    --historical-point-hover-border-width: 1px;
    
    /* 미래 예측 데이터 포인트 (2025년 이후) */
    --forecast-point-radius: 0px;
    --forecast-point-hover-radius: 5px;
    --forecast-point-border-width: 0px;
    --forecast-point-hover-background: rgba(59, 124, 243, 0.05);
    --forecast-point-hover-border-color: rgba(59, 124, 243, 1);
    --forecast-point-hover-border-width: 1px;
    
    /* 툴팁 스타일 변수 */
    --tooltip-bg-color: rgba(80, 80, 80, 0.85);
    --tooltip-border-color: rgba(220, 220, 220, 0.5);
    --tooltip-text-color: var(--text-color);
    --tooltip-arrow-size: 6px;
    --tooltip-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    
    /* 메인 포인트 스타일 (후방 호환성) */
    --point-radius: var(--historical-point-radius);
    --point-hover-radius: var(--historical-point-hover-radius);
    --point-border-width: var(--historical-point-border-width);
    --point-hover-background: var(--historical-point-hover-background);
    --point-hover-border-color: var(--historical-point-hover-border-color);
    --point-hover-border-width: var(--historical-point-hover-border-width);
    
    /* 그리드 라인 스타일 */
    --grid-color: rgba(180, 180, 180, 0.45);
    --grid-line-width: 0.6px;
    --border-color: rgba(110, 110, 110, 0.9);
    
    /* 애니메이션 설정 */
    --hover-animation-duration: 300ms;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f7f9fc;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
}

.section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

header h1 i {
    margin-right: 0.5rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-break {
    display: none;
}

/* Simulator Section */
.simulator-container {
    background-color: transparent;
    margin-bottom: 2rem;
}

.content-container {
    margin-bottom: 1.5rem;
}

.main-flex {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.chart-area {
    flex: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px;
}

.sliders-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 260px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    padding: 32px 24px 24px 24px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 2rem;
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: white;
    padding: 1rem;
}

/* 차트 캔버스 스타일 */
#fundChart {
    width: 100%;
    height: 100%;
}

/* 차트 영역 스타일 */
.chart-area {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* 툴팁 커스터마이징 */
.chartjs-tooltip {
    background-color: var(--tooltip-bg-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--tooltip-shadow) !important;
    padding: 12px 14px !important;
    color: var(--tooltip-text-color) !important;
    border: none !important;
    font-family: var(--font-family, 'Noto Sans KR', 'Segoe UI', sans-serif) !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
    position: relative !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    transform: translate(0, 0) !important;
    z-index: 10 !important;
}

/* 툴팁 화살표 - 왼쪽 화살표 */
.chartjs-tooltip:before {
    content: '' !important;
    position: absolute !important;
    left: -6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-top: var(--tooltip-arrow-size) solid transparent !important;
    border-bottom: var(--tooltip-arrow-size) solid transparent !important;
    border-right: var(--tooltip-arrow-size) solid var(--tooltip-bg-color) !important;
    z-index: 2 !important;
}

@keyframes pulseEffect {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 124, 243, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 124, 243, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 124, 243, 0);
    }
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.slider-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.08em;
    font-weight: 500;
    margin-bottom: 2px;
}

.slider-value {
    color: #2563eb;
    font-weight: 700;
    margin-left: 6px;
    font-size: 1.1em;
}

.percent-sign {
    font-size: 0.8em;
    font-weight: 500;
    vertical-align: 1px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    transition: background 0.3s ease;
    margin: 5px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 60%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(37,99,235,0.13);
    cursor: pointer;
    border: 3px solid #fff;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 60%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(37,99,235,0.13);
    cursor: pointer;
    border: 3px solid #fff;
}

input[type="range"]::-ms-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 60%, #60a5fa 100%);
    box-shadow: 0 2px 8px rgba(37,99,235,0.13);
    cursor: pointer;
    border: 3px solid #fff;
}

input[type="range"]:focus {
    outline: none;
    background: #dbeafe;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8 60%, #3b82f6 100%);
}

input[type="range"]:active::-webkit-slider-thumb {
    background: linear-gradient(135deg, #1d4ed8 60%, #3b82f6 100%);
}

#fundChart {
    margin-top: 0;
    background: #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 8px;
}

.info-card {
    background-color: white;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    margin-top: 10px;
}

.prediction-card {
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
}

.prediction-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.prediction-header-row h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    white-space: nowrap;
    font-weight: 700;
    min-width: 90px;
}

.prediction-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    flex: 1;
}

.prediction-box {
    background: #fff;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1.5px 5px rgba(0,0,0,0.03);
    padding: 14px 16px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 260px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.02em;
    border: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prediction-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4a6cf7, #2945c5);
    opacity: 0.8;
}

.prediction-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.04);
}

.prediction-content {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.prediction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7ff;
    color: #4a6cf7;
}

.depletion-box .prediction-icon {
    color: #e05252;
    background: #fef6f6;
}

.depletion-box::before {
    background: linear-gradient(to bottom, #e05252, #c14545);
}

.depletion-box .value {
    color: #e05252 !important;
}

.max-fund-box .prediction-icon {
    color: #3f9eb5;
    background: #f5fbfd;
}

.max-fund-box::before {
    background: linear-gradient(to bottom, #3f9eb5, #2d8599);
}

.max-fund-box .value {
    color: #3f9eb5 !important;
}

.max-year-box .prediction-icon {
    color: #4a6cf7;
    background: #f5f7ff;
}

.max-year-box::before {
    background: linear-gradient(to bottom, #4a6cf7, #2945c5);
}

.max-year-box .value {
    color: #4a6cf7 !important;
}

.prediction-box .label {
    color: #888;
    font-size: 0.96em;
    margin-bottom: 2px;
}

.prediction-box .value {
    font-weight: 600;
    font-size: 1.09em;
}

/* 기본 값 스타일 */
.prediction-box .value {
    color: #222;
}

@media (max-width: 900px) {
    .prediction-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 0.25rem;
    }
    .prediction-info {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap;
    }
    .prediction-box {
        padding: 12px 14px;
        min-width: 140px;
        flex: 1;
    }
    .prediction-content {
        margin-left: 8px;
    }
}

.info-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* Consolidated prediction-info styles moved to responsive section */

@media (max-width: 700px) {
    .prediction-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .prediction-info .prediction-item {
        border-right: none;
        padding: 8px 12px;
        justify-content: flex-start;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }
    
    .prediction-box {
        width: 100%;
        max-width: none;
        padding: 16px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .prediction-content {
        margin-left: 12px;
        width: 100%;
        text-align: left;
    }
    
    .prediction-content .label {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 4px;
        display: block;
    }
    
    .prediction-content .value {
        font-size: 1.1em;
        font-weight: 600;
        display: block;
    }
}
/* Duplicate prediction styles removed - already defined above */

/* 추가 모바일 최적화 스타일 */
@media (max-width: 480px) {
    /* 게시판 영역 추가 최적화 */
    .board-previews {
        gap: 10px;
        margin: 0 -5px;
    }
    
    .board-preview-card {
        margin: 0 5px 10px 5px;
        padding: 0.75rem;
    }
    
    .post-list li {
        padding: 0.3rem 0;
    }
    
    .post-list li a {
        width: 100%;
        max-width: calc(100% - 70px);
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
    
    .post-list .date {
        font-size: 0.65rem;
        margin-left: auto;
        margin-right: 0;
        min-width: 60px;
        text-align: right;
    }
    
    .views {
        font-size: 0.65rem;
    }
    
    /* 작은 화면에서 표 스크롤 가능하게 */
    .board-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .board-table {
        min-width: 400px;
    }
    
    /* 슬라이더 터치 영역 최적화 */
    input[type="range"] {
        height: 10px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 992px) {
    .main-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .chart-area {
        min-width: auto;
        width: 100%;
    }
    
    .sliders-area {
        width: 100%;
    }
}

/* Community Boards */
.boards-container {
    display: block;
    width: 100%;
    overflow: hidden;
}

.board-previews {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.board-preview-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    padding: 1.5rem;
    margin-bottom: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.board-preview-card h3 {
    border-bottom: 1px solid var(--gray-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.board-preview-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.board-preview-card h3 a:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.post-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 0.5rem;
}

.post-list .date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 0.8rem;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list li a {
    flex: 1;
    color: var(--text-color);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 80px);
}

.post-list li a:hover {
    color: var(--primary-color);
}

.views {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-left: 1rem;
}

.views i {
    margin-right: 0.25rem;
}

.more-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.more-link i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Main Board Full View */
.main-board-full {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    padding: 1rem;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.board-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.board-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.board-controls select {
    padding: 0.5rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.9rem;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.board-table th,
.board-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-color);
}

.board-table th.author,
.board-table td.author {
    display: none;
}

.board-table th.date,
.board-table td.date {
    white-space: nowrap;
    font-size: 0.8rem;
}

.board-table td.num {
    color: var(--dark-color);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    width: 48px; /* 필요시 조정 */
}

.board-table th {
    font-weight: 600;
    color: var(--dark-color);
    background-color: var(--secondary-color);
}

.board-table td.title {
    text-align: left;
    max-width: 300px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.board-table td.title a {
    color: var(--text-color);
    display: inline-block;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.board-table td.title a:hover {
    color: var(--primary-color);
}

.board-table td.title .comment {
    display: inline-block;
    vertical-align: middle;
}

.comment {
    color: #4a6cf7;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.notice-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.notice-row {
    background-color: rgba(250, 116, 75, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--gray-color);
    font-size: 0.9rem;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    margin-top: 1.5rem;
}

.search-box select {
    padding: 0.5rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: var(--text-color);
    font-size: 0.9rem;
}

.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-color);
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: white;
    cursor: pointer;
}

.search-box button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* About Section */
.about-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    padding: 2rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: left;
}

.disclaimer h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .parameters {
        grid-template-columns: 1fr;
    }
    
    .boards-container {
        grid-template-columns: 1fr;
    }
    
    .board-previews {
        order: 2;
    }
    
    .main-board-full {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* 재설정 버튼 모바일 최적화 */
    #resetParams {
        max-width: 160px;
        padding: 0.4rem 0.8rem;
        margin: 1.25rem auto 0 auto;
        font-size: 0.85rem;
        display: block;
    }
    
    /* 섹션 제목 여백 추가 */
    #hero {
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    /* 차트 영역 모바일 최적화 */
    .main-flex {
        gap: 20px;
    }
    
    .chart-area {
        padding: 0.75rem;
        min-height: 320px;
    }
    
    .chart-container {
        height: 320px;
        padding: 0.5rem;
        margin-top: 1rem;
    }
    
    .info-card {
        padding: 0.75rem;
    }
    
    /* 파라미터 영역 */
    .parameters {
        gap: 0.5rem;
    }
    
    .parameter {
        padding: 0.75rem;
    }
    
    .parameter h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .sliders-area {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    /* 게시판 영역 - 모바일에서 세로 배치 */
    .boards-container {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: visible;
    }
    
    .board-previews {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .board-preview-card {
        margin: 0 0 15px 0;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
        border-radius: var(--border-radius);
        width: auto;
        box-sizing: border-box;
    }

    .board-table th.author,
    .board-table td.author {
        display: none;
    }

    .board-table th.date,
    .board-table td.date {
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem 15px;
    }
    
    header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.25rem 0.5rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
    
    #hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .mobile-break {
        display: block;
    }
    
    #hero {
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* 시뮬레이터 영역 */
    .main-flex {
        gap: 15px;
    }
    
    .chart-container {
        height: 300px;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .parameter {
        padding: 0.625rem;
    }
    
    .parameter h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .sliders-area {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .parameter-value {
        font-size: 1.8rem;
    }
    
    .slider-container label {
        font-size: 0.9rem;
    }
    
    .slider-label-row {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .prediction-box {
        padding: 10px;
    }
    
    .prediction-card {
        padding: 0.75rem;
        margin-top: 0.25rem;
    }
    
    .prediction-header-row {
        gap: 16px;
        margin-bottom: 0.25rem;
    }
    
    .prediction-header-row h3 {
        margin: 0;
    }
    
    .slider-container {
        gap: 5px;
    }
    
    .parameter-value {
        font-size: 1.6rem;
    }
    
    .prediction-content .label {
        font-size: 0.8em;
    }
    
    .prediction-content .value {
        font-size: 1em;
    }
    
    /* 게시판 영역 */
    .boards-container {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: visible;
    }
    
    .board-preview-card {
        padding: 0.875rem;
        margin: 0 0 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
        border-radius: var(--border-radius);
        width: auto;
        box-sizing: border-box;
    }
    
    .board-preview-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .post-list li a {
        font-size: 0.75rem;
        max-width: calc(100% - 70px);
    }
    
    .post-list .date {
        font-size: 0.65rem;
        margin-left: auto;
        margin-right: 0;
        min-width: 60px;
        text-align: right;
    }
    
    .views {
        font-size: 0.6rem;
    }
    
    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .board-controls {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    /* 버튼 */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    #resetParams {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: auto;
        max-width: 200px;
        margin: 1rem auto 0 auto;
        display: block;
    }
    
    /* 푸터 */
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-logo h3 {
        font-size: 1rem;
    }
    
    .footer-content p,
    .footer-links a,
    .footer-contact p {
        font-size: 0.85rem;
    }
}
