/* 기본 스타일 */
/* 기본 상태 */
a {
    color: inherit;  /* 부모 요소(보통 div, h2 등)의 색을 따라감 */
    text-decoration: none;  /* 밑줄 제거 */
}

/* 방문한 링크 (보라색 방지) */
a:visited {
    color: inherit;  /* 방문 후에도 색이 바뀌지 않도록 */
}

/* 마우스를 올렸을 때 */
a:hover {
    color: #ff6600;  /* 원하는 색으로 변경 가능 (예: 주황색) */
    text-decoration: none;  /* 여전히 밑줄 없음 */
}

/* 클릭했을 때 */
a:active {
    color: inherit;  /* 클릭 순간에도 색 변화 방지 */
}
body {
    font-fmily: 'Noto Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f0c29; /* 기본 배경색 추가 */
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 50%, #16213e 100%);
    text-align: center;
    min-height: 100vh;
    color: #fff;
}

h1 {
    color: #fff;
    padding: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 25px;
}

/* 각 명소 카드 스타일 */
.spot {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 320px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spot:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(20, 20, 40, 0.8), transparent);
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spot:hover .image-container img {
    transform: scale(1.05);
}

/* 혼잡도 레이블 스타일 */
.crowded-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.spot-info {
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.spot-info h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.spot-info p {
    margin: 8px 0;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

/* 버튼 스타일 */
.toggle-btn {
    background: linear-gradient(45deg, #4a90e2, #2c5364);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}


/* 팝업 스타일 */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-details {
    margin-top: 25px;
}

.detail-item {
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    display: block;
    margin-bottom: 12px;
    color: #4a90e2;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-text {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-line;
    word-break: keep-all;
    padding: 0 10px;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 40, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4a90e2, #2c5364);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2c5364, #4a90e2);
}

/* 기본 스타일 */
.input-container {
    margin: 20px 0; /* 위아래 여백 */
}

.search-comment-container {
    display: flex; /* Flexbox를 사용하여 가로 배치 */
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    width: 100%; /* 전체 너비를 차지 */
}

.search-input, .comment-input {
    flex: 1; /* 댓글 입력창이 가능한 공간을 모두 차지하도록 설정 */
    padding: 10px; /* 내부 여백 */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 테두리 */
    border-radius: 5px; /* 모서리 둥글게 */
    background: rgba(255, 255, 255, 0.1); /* 배경색 */
    color: #fff; /* 글자색 */
    font-size: 16px; /* 글자 크기 */
    max-width: 200px; /* 최대 너비 설정 */
}

.comment-button, .search-button {
    padding: 10px 15px; /* 버튼 내부 여백 */
    background-color: #007bff; /* 버튼 배경색 */
    color: #fff; /* 버튼 글자색 */
    border: none; /* 테두리 없음 */
    border-radius: 5px; /* 모서리 둥글게 */
    cursor: pointer; /* 커서 포인터 */
    transition: background-color 0.3s; /* 배경색 변화 효과 */
}

.comment-button:hover, .search-button:hover {
    background-color: #0056b3; /* 호버 시 배경색 변화 */
}

.comment-list {
    max-height: 200px; /* 최대 높이 설정 (필요에 따라 조정) */
    max-width: 600px;
    overflow-y: auto; /* 세로 스크롤 추가 */
    border: 1px solid rgba(255, 255, 255, 0.5); /* 테두리 */
    border-radius: 5px; /* 모서리 둥글게 */
    background: rgba(255, 255, 255, 0.1); /* 배경색 */
    padding: 10px; /* 내부 여백 */
    margin-top: 10px; /* 위쪽 여백 */
    color: #fff; /* 글자색 */
}

.comment-list div {
    margin-bottom: 5px; /* 각 댓글 간의 여백 */
    padding: 5px; /* 댓글 내부 여백 */
    border-radius: 3px; /* 댓글 모서리 둥글게 */
    background: rgba(255, 255, 255, 0.2); /* 댓글 배경색 */
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .search-comment-container {
        flex-direction: column; /* 세로 방향으로 배치 */
        align-items: stretch; /* 아이템을 전체 너비로 확장 */
    }

    .search-container, .comment-container {
        width: 100%; /* 너비를 100%로 설정 */
        margin-bottom: 10px; /* 아래쪽 여백 추가 */
    }

    .search-input, .comment-input {
        max-width: 100%; /* 최대 너비를 100%로 설정 */
    }

    .comment-button, .search-button {
        width: 100%; /* 버튼 너비를 100%로 설정 */
    }
}

@media (max-width: 480px) {
    .search-input, .comment-input {
        font-size: 14px; /* 글자 크기 조정 */
    }

    .comment-button, .search-button {
        padding: 8px; /* 버튼 내부 여백 조정 */
    }
.comment-list {
    max-height: 100px; /* 최대 높이 설정 (필요에 따라 조정) */
}
}




