@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* --- Color Variables --- */
:root {
    --primary-dark: #0D2b5B;
    --primary-mint: #8FD3C1;
    --accent-pink: #e7a3b5;
    --bg-light: #f4f6f9;
}

body {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation Bar --- */
.navbar-custom {
    background-color: var(--primary-dark);
}

.navbar-custom .navbar-brand {
    color: var(--primary-mint);
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-pink);
}

.navbar-toggler {
    border-color: var(--primary-mint);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238FD3C1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Home Photo Card --- */
.latest-photo-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(13, 43, 91, 0.1);
    overflow: hidden;
    background-color: #ffffff;
}

.latest-photo-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background-color: #000000;
}

.metadata-box {
    background-color: var(--primary-mint);
    color: var(--primary-dark);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.metadata-item {
    margin-bottom: 5px;
}

/* --- Tools TOC (Sidebar) --- */
.custom-toc .nav-link {
    color: var(--primary-dark);
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.custom-toc .nav-link:hover {
    background-color: rgba(143, 211, 193, 0.2); /* 민트색 투명도 */
}

.custom-toc .nav-link.active {
    background-color: var(--primary-mint);
    color: var(--primary-dark);
    font-weight: bold;
}

/* Tools Card */
.tool-card {
    border: 1px solid rgba(13, 43, 91, 0.1);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(13, 43, 91, 0.15);
}

/* --- Photo Gallery Grid --- */
.photo-gallery-card {
    border: none;
    background-color: transparent;
    overflow: hidden;
    cursor: pointer;
}

.photo-thumbnail {
    width: 100%;
    height: 300px; /* 썸네일 높이 고정 */
    object-fit: cover; /* 비율 유지하며 꽉 차게 자르기 */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.photo-gallery-card:hover .photo-thumbnail {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(13, 43, 91, 0.2);
}

.photo-title-sm {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

/* --- Photo Detail View --- */
.detail-photo-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 12px;
    margin-bottom: 20px;
}