/* 1. 전역 변수 및 기본 설정 */
:root {
  --header-footer-bg: #ffd54f;    /* 메인 노란색 */
  --header-footer-text: #000;
  --bg: #f8f9fa;
  --border: #e0e0e0;
  --card: #ffffff;
}

* { box-sizing: border-box; transition: all 0.2s ease-in-out; }

/* 화면 밀림 방지 및 레이아웃 구조 잡기 */
html {
  overflow-y: scroll; 
}

body { 
  font-family: 'Noto Sans KR', sans-serif; 
  margin: 0; 
  background-color: var(--bg); 
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 푸터 고정을 위한 최소 높이 */
}

/* 2. 레이아웃 컨테이너 */
.container { 
  width: 100%;
  max-width: 1100px; 
  margin: 0 auto; 
  background: #fff;
  flex: 1; /* 콘텐츠 영역이 부족해도 푸터를 아래로 밀어냄 */
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

header { 
  background: var(--header-footer-bg); 
  color: var(--header-footer-text); 
  padding: 40px 20px; 
  text-align: center; 
  font-size: 28px; 
  font-weight: 900; 
  letter-spacing: -1px;
}

/* 3. 네비게이션 (상단 고정) */
nav { 
  background: #fff; 
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: stretch;}
nav li { display: flex; align-items: center; } /* 수직 중앙 정렬 */
nav button { 
  background: none; border: none; padding: 18px 30px;
  height: 64px; 
  font-size: 16px; cursor: pointer; color: #666; 
  font-weight: 700; border-bottom: 4px solid transparent; 
}
nav button:hover { color: #000; background: #fffde7; }
nav button.active { color: #000; border-bottom: 4px solid var(--header-footer-bg); }

/* 4. 메인 콘텐츠 및 공통 디자인 */
main { 
  padding: 20px 60px 40px 60px; 
  flex: 1; 
}

h2 { 
  font-size: 24px; font-weight: 800; margin-bottom: 25px; margin-top: 0; 
  display: flex; align-items: center; justify-content: flex-start; text-align: left;
}
h2::before {
  content: ""; display: inline-block; width: 6px; height: 22px;
  background: var(--header-footer-bg); margin-right: 12px; border-radius: 3px;
}

/* 5. 버튼 디자인 (텍스트 중앙 정렬 해결) */
.btn { 
  display: inline-flex;  /* 수직 중앙 정렬을 위해 flex 사용 */
  align-items: center; 
  justify-content: center;
  padding: 0 20px; 
  height: 50px; /* 높이 고정 */
  border: none; border-radius: 10px; 
  font-size: 16px; font-weight: 800; cursor: pointer;
  line-height: 1; /* 텍스트가 아래로 치우치는 것 방지 */
}
.btn-primary { background: var(--header-footer-bg); color: #000; }
.btn-secondary { background: #eee; color: #555; }
.btn-dark-point { background: #000 !important; color: var(--header-footer-bg) !important; }

/* 6. 로그인 섹션 (상단 고정 및 콤팩트 디자인) */
#login-tab-content {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 40px; /* 네비게이션 아래 적절한 위치에 고정 */
}
#login-tab-content.active { display: flex !important; }

#login-form-container {
  width: 100%;
  max-width: 420px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; 
}
#login-form-container .input-group { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
#login-form-container .input-group label { flex: 0 0 80px; font-weight: bold; margin: 0; }
#login-form-container .input-group input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }

#group-before-login, #group-after-login { width: 100%; display: flex; flex-direction: column; gap: 12px; }
#group-before-login .btn, #group-after-login .btn { width: 100%; } /* 버튼을 박스 너비에 맞춰 중앙 정렬 효과 */

/* 7. 비로그인 블러/안내 레이아웃 (Trend/My 탭) */
.guest-blur-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: 15px;
}
.blur-bg {
  width: 100%; height: 100%; position: absolute;
  filter: blur(10px); opacity: 0.6; background-size: cover; background-position: center;
}
.auth-notice-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; padding: 30px; border-radius: 15px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 10; width: 90%; max-width: 400px;
}

/* 8. 유틸리티 */
.tab-content { display: none !important; }
.tab-content.active { display: block !important; }
.hidden { display: none !important; }

/* 9. 푸터 (최하단 고정) */
footer { 
  background: #1a1a1a; 
  color: #999; 
  padding: 30px 20px; 
  text-align: center; 
  font-size: 13px;
  margin-top: auto; /* 내용이 적어도 항상 바닥에 위치 */
}
footer div { margin-bottom: 8px; }

/* 모달 및 기타 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-overlay.show {
    display: flex !important;
}

/* 회원가입 박스 메인 디자인 */
.modal-content.signup-box {
    background: #fff;
    padding: 50px; 
    border-radius: 24px;
    width: 95%;
    max-width: 700px; 
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* 회원가입 박스 내부 요소들이 튀어나가지 않도록 정렬 */
.signup-box .modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 자식 요소들을 가운데로 */
}

/* 제목 크기 확대 */
.signup-box h2 {
    font-size: 32px;
    margin-bottom: 30px;
    justify-content: center; 
}

/* 입력 그룹 레이아웃 개선 */
.signup-box .input-group {
    width: 100%; /* 부모 너비에 맞춤 */
    display: flex;
    flex-direction: column; 
    gap: 10px;
    margin-bottom: 25px;
}

.signup-box .input-group label {
    font-size: 18px; 
    font-weight: 700;
    color: #333;
}

.signup-box .input-group input {
    width: 100%;
    height: 60px; 
    padding: 0 20px;
    font-size: 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fdfdfd;
}

.signup-box .input-group input:focus {
    border-color: var(--header-footer-bg);
    outline: none;
    background: #fff;
}

.input-hint {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* ✅ 추가된 부분: 전문보기 버튼과 약관 박스 레이아웃 고정 */
.terms-group {
    width: 100%; /* 부모 너비에 꽉 차게 */
    margin-top: 30px;
}

.terms-item {
    width: 100%; /* 100% 고정으로 튀어나가지 않음 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.terms-item div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* 텍스트 영역이 남은 공간 차지 */
}

.terms-item .btn-secondary {
    flex-shrink: 0; /* 버튼 크기 유지, 찌그러짐 방지 */
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* 완료 버튼 대형화 */
.btn-large-signup {
    height: 70px !important;
    font-size: 22px !important;
    border-radius: 15px !important;
    margin-top: 40px;
}

.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    pointer-events: none;
}

/* 전문 보기 팝업용 스타일 */
#terms-popup-modal {
    background: rgba(0, 0, 0, 0.7); 
    z-index: 9999 !important; /* 다른 모달 위로 올라오게 최상단 배치 */
}

#terms-popup-modal .modal-content {
    border: 1px solid var(--header-footer-bg);
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
}

/* 전문 보기 내의 스크롤 박스 */
#terms-popup-body {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    height: 400px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

/* 닫기 버튼이 비활성화(스크롤 안 내림)일 때 스타일 */
#terms-close-btn:disabled {
    background: #ccc !important;
    color: #fff !important;
    cursor: not-allowed;
}

.profile-card { background: #f9f9f9; padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #eee; }
.subscription-card { background: #fffde7; padding: 20px; border-radius: 12px; border: 1px solid #ffd54f; }
.report-item { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.report-category { background: #333; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; margin-right: 10px; }
.report-title { font-size: 16px; font-weight: 700; }
.btn-view-report { height: 35px; font-size: 13px; padding: 0 15px; }

/* =========================================================
   📱 모바일 반응형 (화면 가로 768px 이하일 때 자동 적용)
   ========================================================= */
@media (max-width: 768px) {
  /* 1. 메인 여백 대폭 줄이기 (PC의 60px을 모바일에선 15px로) */
  main { 
    padding: 20px 15px 40px 15px; 
  }
  
  /* 2. 네비게이션 버튼 텍스트 크기 및 여백 축소 (가로 밀림 방지) */
  nav button { 
    padding: 15px 12px; 
    font-size: 14px; 
  }

  /* 3. 로그인 박스 레이아웃 변경 (핵심!) */
  #login-form-container { 
    padding: 25px 20px; 
  }
  #login-form-container .input-group { 
    flex-direction: column; /* 라벨과 입력칸을 가로에서 위아래로 배치 */
    align-items: flex-start; 
    gap: 8px; 
  }
  #login-form-container .input-group label { 
    flex: none; 
    width: 100%; 
  }

  /* 4. 회원가입 박스 모바일 최적화 (50px의 거대한 여백 축소) */
  .modal-content.signup-box { 
    padding: 30px 20px; 
  }
  .signup-box h2 { 
    font-size: 24px; 
    margin-bottom: 20px; 
  }
  .signup-box .input-group input { 
    height: 50px; 
    font-size: 16px; 
  }

  /* 5. 약관 동의 박스 및 하단 버튼 반응형 처리 */
  .terms-item { 
    flex-direction: column; /* 약관 제목과 전문보기 버튼을 위아래로 분리 */
    align-items: flex-start; 
    gap: 15px; 
  }
  .terms-item .btn-secondary { 
    width: 100%; /* 모바일에선 버튼이 길게 나오도록 처리 */
  }
  .btn-large-signup { 
    height: 55px !important; 
    font-size: 18px !important; 
  }

  /* 6. 전문보기 팝업 모바일 맞춤 */
  #terms-popup-modal .modal-content { 
    padding: 25px 15px; 
  }
  #terms-popup-body { 
    height: 300px; 
  }
  /* 7. 리포트 상세 검색 모달 모바일 최적화 */
  .search-modal-content {
      padding: 20px 15px !important;
      width: 100% !important;
      border-radius: 15px !important;
  }
  .search-modal-content .modal-header h2 {
      font-size: 20px !important;
  }
  .search-input-area {
      flex-direction: column; 
      gap: 10px;
  }
  .search-input-area .btn-execute-search {
      width: 100%; 
      padding: 15px;
  }
  .checkbox-pills span {
      padding: 8px 12px; 
      font-size: 0.85rem;
  }
  .search-result-item {
      flex-direction: column; 
      align-items: flex-start;
      gap: 15px;
  }
  .search-result-item .btn-subscribe-naver {
      width: 100%; 
  }

}

.report-item.locked { background-color: #fdfdfd; cursor: pointer; border: 1px dashed #ccc; }
.report-item.locked .report-title { color: #999; }
.report-item.locked .report-category { background: #bbb; }
.btn-locked { background-color: #f1f1f1 !important; color: #888 !important; border: 1px solid #ddd; font-weight: bold; }
.report-item.locked:hover { background-color: #fff9e6; border: 1px solid #ffd54f; }
.report-item.locked:hover .btn-locked { color: #d9534f !important; }


/* 💳 개별 카드 공통 스타일 */
.report-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 마우스 호버 시 살짝 위로 떠오르는 효과 */
.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 🖼️ 카드 상단 썸네일 이미지 영역 */
.report-card-image {
    height: 160px;
    /* 🚨 변경: 단색 배경 대신 움직이는 그라데이션 추가 */
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite; 
    
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🚨 새로 추가: 반짝이는 애니메이션 효과 */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.report-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* 🚨 새로 추가: 이미지가 정상적으로 불러와지면 보여주기 */
.report-card-image img[src] {
    opacity: 1;
}

/* 📝 카드 중앙 텍스트 영역 */
.report-card-body {
    padding: 16px;
    flex-grow: 1; /* 제목이 짧아도 버튼을 맨 아래로 밀어냄 */
}

.report-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #0056b3;
    background-color: #e6f2ff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
}

.report-title {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    line-height: 1.4;
    /* 긴 제목은 2줄까지만 보여주고 ... 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🔘 카드 하단 버튼 영역 */
.report-card-footer {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.report-card-footer .btn {
    flex: 1; /* 버튼 두 개가 반반씩 차지 */
    padding: 10px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background-color 0.2s;
}

.btn-view { background-color: #f1f3f5; color: #495057; border: 1px solid #ced4da !important; }
.btn-view:hover { background-color: #e9ecef; }

/* 🔒 프리미엄 잠금 카드 전용 스타일 */
.report-card.locked {
    background-color: #fafafa;
    border: 1px dashed #ccc;
    cursor: pointer;
}

/* 잠긴 카드는 이미지를 흑백 처리하여 차별화 */
.report-card.locked .report-card-image {
    opacity: 0.5;
    filter: grayscale(100%);
}

.report-card.locked .report-title { color: #999; }
.report-card.locked .report-category { background-color: #eee; color: #888; }

.btn-locked {
    width: 100%;
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
}

.report-card.locked:hover {
    border: 1px solid #ffd54f;
    background-color: #fffdf5;
}

.report-card.locked:hover .btn-locked {
    background-color: #ffeeba !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}


.sub-report-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 50px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333; /* 아래 구분선 추가 */
    color: #222;
}

/* 카드 내부 디자인 미세 조정 */
.report-card { border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.report-title { font-weight: 600; font-size: 1rem; color: #444; }


.guest-blur-container, 
.auth-view,
#trend-auth-view, 
#my-auth-view,
#analysis-auth-view,
.tab-content {
    display: none !important;
}

/* 2. 탭 활성화 시 틀만 보여줌 */
.tab-content.active {
    display: block !important;
}

/* 3. 🚨 핵심: ID보다 강하게 덮어쓰기 위해 선택자 강화 (절대 무적 노출) */
.guest-blur-container.revealed,
.auth-view.revealed,
#trend-auth-view.revealed,
#my-auth-view.revealed,
#analysis-auth-view.revealed {
    display: block !important;
}


.category-section { width: 100%; margin-bottom: 60px; display: block; }
.category-section h3 {
    font-size: 1.4rem; font-weight: 700; margin: 40px 0 20px 0;
    padding-bottom: 10px; border-bottom: 2px solid #333; color: #222; text-align: left;
}
.card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px; width: 100%;
}
.category-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 두 버튼 사이 간격 */
    margin-top: 30px;
    width: 100%;
}
.btn-more, .btn-close-tab {
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-more {
    background-color: var(--header-footer-bg); /* 메인 노란색 */
    color: #000;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 213, 79, 0.3);
}
.btn-more:hover {
    transform: translateY(-2px);
    background-color: #ffca28;
}

.btn-close-tab {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}
.btn-close-tab:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
    color: #333;
    border-color: #bbb;
}

/* 3. 반응형 설정 */
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr !important; }}

/* 🚀 네이버 폼 구독 신청 버튼 영역 */
.subscribe-action-area {
    text-align: center;
    margin: 60px 0; /* 위아래 여백을 넉넉히 주어 버튼을 돋보이게 함 */
    padding: 30px;
    background-color: #fcfcfc; /* 아주 연한 회색 배경으로 시선 집중 */
    border-radius: 15px;
    border: 1px dashed #ddd;
}

/* 버튼 디자인 */
.btn-subscribe-naver {
    padding: 18px 50px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #ffd54f; /* 대표님 사이트 메인 노란색 */
    color: #222;
    border: none;
    box-shadow: 0 6px 15px rgba(255, 213, 79, 0.4);
    transition: all 0.3s ease;
}

/* 마우스 올렸을 때 효과 (살짝 위로 뜨면서 그림자 진해짐) */
.btn-subscribe-naver:hover {
    transform: translateY(-3px);
    background-color: #ffca28;
    box-shadow: 0 8px 20px rgba(255, 213, 79, 0.6);
}

/* 마우스 클릭할 때 효과 (눌리는 느낌) */
.btn-subscribe-naver:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(255, 213, 79, 0.4);
}

/* 버튼 아래 작은 안내 문구 */
.subscribe-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}

/* 검색 버튼 */
.btn-search-open {
    padding: 10px 20px; background-color: #333; color: #fff;
    border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: background 0.2s;
}
.btn-search-open:hover { background-color: #555; }

/* 검색 모달 컨텐츠 크기 조정 */
/* 🚨 리포트 상세 검색 모달 (하얀 배경 및 레이아웃 추가) */
.search-modal-content { 
    background: #ffffff;      /* 핵심: 투명 방지 하얀색 배경 */
    border-radius: 20px;      /* 예쁜 둥근 모서리 */
    padding: 35px;            /* 넉넉한 안쪽 여백 */
    max-width: 800px; 
    width: 95%; 
    max-height: 90vh; 
    display: flex; 
    flex-direction: column; 
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.search-modal-content .modal-body { overflow-y: auto; padding: 10px 0; }

/* 모달 제목 및 닫기 버튼 디자인 */
.search-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd54f;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.search-modal-content .modal-header h2 {
    margin: 0;
    border: none;
    font-size: 24px;
}
.search-modal-content .close-btn {
    background: none; border: none; font-size: 36px; 
    cursor: pointer; color: #999; line-height: 1; padding: 0;
}
.search-modal-content .close-btn:hover { color: #000; }

/* 필터 그룹 스타일 */
.filter-group { margin-bottom: 20px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.filter-group h4 { margin: 0 0 10px 0; font-size: 1rem; color: #444; }

/* 체크박스를 알약(Pill) 모양 버튼으로 디자인 */
.checkbox-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-pills label { cursor: pointer; }
.checkbox-pills input[type="checkbox"] { display: none; } /* 기본 체크박스 숨김 */
.checkbox-pills span {
    display: inline-block; padding: 8px 16px; background-color: #f1f3f5;
    color: #666; border-radius: 20px; font-size: 0.9rem; border: 1px solid #dee2e6;
    transition: all 0.2s;
}
/* 체크되었을 때 디자인 */
.checkbox-pills input[type="checkbox"]:checked + span {
    background-color: #ffd54f; color: #000; border-color: #ffd54f; font-weight: bold;
}
/* 비활성화(Disabled) 상태 디자인 */
.checkbox-pills input[type="checkbox"]:disabled + span {
    opacity: 0.4; cursor: not-allowed; background-color: #e9ecef; border-color: #e9ecef;
}

/* 검색창 영역 */
.search-input-area { display: flex; gap: 10px; margin-top: 20px; }
#search-keyword { flex: 1; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; }
#search-keyword:focus { border-color: #ffd54f; outline: none; }
.btn-execute-search { padding: 12px 30px; background-color: #000; color: #fff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* 검색 결과 리스트 */
.search-results-area { margin-top: 30px; }
.results-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.search-result-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border: 1px solid #eee; border-radius: 8px; background: #fafafa;
}
.search-result-item:hover { border-color: #ffd54f; background: #fffdf5; }
.empty-msg { text-align: center; color: #999; padding: 30px; }

/* 네이버 SDK가 강제로 생성하는 기본 버튼 숨기기 */
#naverIdLogin {
    display: none !important;
}

/* 로그인 버튼을 감싸는 박스 설정 */
.login-button-container {
    display: flex;
    flex-direction: column; /* 세로로 쌓이게 하려면 column, 가로로 하려면 row */
    align-items: center;    /* 가운데 정렬 */
    gap: 15px;              /* 버튼 사이 간격 */
    width: 100%;            /* 상자 폭을 꽉 차게 */
    max-width: 300px;       /* 너무 넓어지지 않게 최대 폭 제한 (원하시는 만큼 조절) */
    margin: 20px auto;      /* 중앙 배치 */
}

/* 핵심: 버튼 이미지 자동 크기 조절 */
.login-btn {
    width: 100%;            /* 상자 크기에 맞춰 자동 조절 */
    max-width: 280px;       /* 카카오/네이버 공식 버튼 최대 권장 크기 */
    height: auto;           /* 비율 유지 */
    cursor: pointer;
    transition: transform 0.2s; /* 살짝 커지는 애니메이션 효과 */
}

/* 마우스 올렸을 때 살짝 커지는 효과 */
.login-btn:hover {
    transform: scale(1.02);
}