* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
    background-color: #f4f6f0;
    color: #2c3e2e;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* 상단 메뉴바 */
.navbar {
    background-color: #1e3a29;
    color: #ffffff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #d8e6dc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #2d5a3c;
    color: #f39c12;
}

.search-box {
    display: flex;
    gap: 0.4rem;
}

.search-box input {
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 6px;
    outline: none;
    width: 190px;
}

.search-box button {
    padding: 0.5rem 1rem;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* 탭 전환 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* 메인 배너 */
.hero {
    background: linear-gradient(135deg, #2d5a3c 0%, #1e3a29 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 1rem;
}

.hero h1 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
}

.hero p {
    color: #d8e6dc;
    margin-bottom: 1.8rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    background-color: #f39c12;
    color: white;
}

.secondary-btn {
    background-color: #ffffff;
    color: #1e3a29;
}

/* 컨테이너 & 카드 */
.container {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 5%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #2d5a3c;
    padding-left: 0.8rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    border: 1px solid #e1e8e2;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #2d5a3c;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

/* 도감 세부 버튼 */
.sub-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sub-btn {
    padding: 0.6rem 1.1rem;
    border: 1px solid #cbd5cd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e2e;
}

.sub-btn.active {
    background-color: #2d5a3c;
    color: white;
    border-color: #2d5a3c;
}

/* ★ 원본 낚시 도감 합성 컨테이너 ★ */
.fish-chart-wrapper {
    background: #f5ebd3;
    border: 2px solid #d8c8a8;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.chart-guide-text {
    font-size: 0.9rem;
    color: #6b5b3e;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 이미지와 투명 핫스팟이 1:1 비율로 정확히 겹치는 핵심 박스 */
.fish-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 680px;
    border-radius: 10px;
    overflow: visible;
    user-select: none;
}

.fish-chart-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 개별 물고기 투명 감지 영역 */
.fish-hotspot {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.fish-hotspot:hover, .fish-hotspot.highlighted {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px #f39c12, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10;
}

/* 마우스 커서를 올렸을 때 뜨는 물고기 이름 말풍선 */
.fish-tooltip {
    position: absolute;
    bottom: 112%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e3a29;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 20;
}

.fish-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e3a29 transparent transparent transparent;
}

.fish-hotspot:hover .fish-tooltip,
.fish-hotspot.highlighted .fish-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.fish-status-bar {
    margin-top: 1rem;
    background: #ffffff;
    color: #1e3a29;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid #d8c8a8;
    display: inline-block;
    min-width: 280px;
}

/* 관리자 입력 폼 */
.admin-panel {
    background: #e9f2ec;
    border: 2px dashed #2d5a3c;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.admin-panel input, .admin-panel textarea, .admin-panel select {
    padding: 0.6rem;
    border: 1px solid #bcc9c0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.content-item {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e1e8e2;
    position: relative;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 푸터 및 모달 */
footer {
    background-color: #1e3a29;
    color: #a3b8a8;
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.admin-footer-bar {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.admin-toggle-btn {
    background: transparent;
    border: 1px solid #5c7c66;
    color: #d8e6dc;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-box input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}