/*
  [춘봉 포털 메인 페이지 스타일 - 연핑크 테마]
  - 메인 컬러: #F9A8D4(버튼·포인트), #FDF2F8(배경), #EC4899(강조 글자)
  - 흰색 카드 + 연한 그림자 + 둥근 모서리
  - 글꼴: 기본 고딕 계열
  - 900px 이하(모바일)에서는 2단 -> 1단
*/

:root {
  --pink-point: #F9A8D4;
  --pink-bg: #FDF2F8;
  --pink-strong: #EC4899;
  --text: #1f2937;
  --text-sub: #6b7280;
  --shadow: 0 2px 10px rgba(236, 72, 153, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--pink-bg);
  color: var(--text);
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== 상단 ===== */
.header {
  padding: 48px 16px 24px;
  text-align: center;
}

.logo {
  display: inline-block;
  font-size: 56px;
  font-weight: 800;
  color: var(--pink-strong);
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border: 2px solid var(--pink-point);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 18px;
  font-family: inherit;
}

.search-btn {
  border: none;
  background: var(--pink-point);
  color: white;
  font-size: 17px;
  font-weight: bold;
  padding: 0 28px;
  cursor: pointer;
  font-family: inherit;
}

.search-btn:hover {
  background: var(--pink-strong);
}

/* 바로가기 메뉴 */
.shortcut {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  font-size: 13px;
  color: var(--text-sub);
}

.shortcut-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 24px;
  transition: transform 0.15s;
}

.shortcut-item:hover .icon {
  transform: translateY(-3px);
}

.shortcut-item:hover {
  color: var(--pink-strong);
}

/* ===== 본문 2단 ===== */
.container {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.main {
  flex: 2;
  min-width: 0;
}

.side {
  flex: 1;
  min-width: 0;
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.card-title {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--pink-strong);
}

/* 뉴스 목록 */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f3e8ef;
}

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

.news-img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.news-headline {
  font-size: 16px;
  font-weight: bold;
}

.news-headline:hover {
  color: var(--pink-strong);
  text-decoration: underline;
}

.news-desc {
  margin: 6px 0;
  font-size: 14px;
  color: var(--text-sub);
}

.news-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* 추천 콘텐츠 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.recommend-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.recommend-item p {
  margin: 8px 0 0;
  font-size: 14px;
}

.recommend-item:hover p {
  color: var(--pink-strong);
}

/* 로그인 박스 */
.login-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-sub);
}

.login-btn {
  display: block;
  text-align: center;
  background: var(--pink-point);
  color: white;
  font-weight: bold;
  padding: 14px;
  border-radius: 12px;
}

.login-btn:hover {
  background: var(--pink-strong);
}

.login-links {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}

.login-links a:hover {
  color: var(--pink-strong);
}

/* 날씨 박스 */
.weather-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-icon {
  font-size: 44px;
}

.weather-temp {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.weather-desc {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.weather-sub {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* 실시간 인기 */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.rank {
  width: 22px;
  font-weight: bold;
  color: var(--pink-strong);
  text-align: center;
}

.rank-list a:hover {
  color: var(--pink-strong);
  text-decoration: underline;
}

/* ===== 하단 ===== */
.footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 0;
  }

  .logo {
    font-size: 44px;
  }

  .recommend-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .search-input {
    font-size: 16px;
    padding: 14px 18px;
  }

  .search-btn {
    padding: 0 18px;
  }

  .news-img {
    width: 88px;
    height: 66px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }
}
