/* ============================================================
   Rua Bar — 메인 스타일
   톤: 로고(레서판다 브라운 + 크림 + 블랙 스웨터) 기반
   밝고 따뜻한 크림 배경 + 스마트한 브라운/블랙 포인트
   ============================================================ */

:root{
  --cream:      #FFFBF4;   /* 페이지 배경 */
  --cream-2:    #F7EEDF;   /* 카드/위젯 배경 */
  --panda:      #C8824A;   /* 레서판다 브라운(메인 포인트) */
  --panda-deep: #A05E2B;
  --ink:        #3A2A20;   /* 본문 텍스트(다크브라운) */
  --ink-soft:   #7A6A5C;
  --sweater:    #1F1B18;   /* 블랙 스웨터(버튼/GNB) */
  --line:       #EBDFCC;
  --hot:        #E2603F;
  --radius:     16px;
  --shadow:     0 4px 18px rgba(58,42,32,.07);
  --shadow-lg:  0 10px 30px rgba(58,42,32,.12);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  background:var(--cream); color:var(--ink);
  line-height:1.65; font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* ── 버튼 ── */
.btn{ display:inline-block; padding:12px 24px; border-radius:999px; font-weight:700; font-size:15px; transition:.2s; }
.btn--dark{ background:var(--sweater); color:#fff; }
.btn--dark:hover{ background:var(--panda-deep); transform:translateY(-2px); }
.btn--ghost{ border:2px solid var(--line); background:#fff; color:var(--ink); }
.btn--ghost:hover{ border-color:var(--panda); color:var(--panda-deep); }

/* ============================================================ 헤더 */
.rb-header{ background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:100; }
.rb-header__inner{ display:flex; align-items:center; gap:20px; padding:14px 20px; }
.rb-brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.rb-brand__img{ width:56px; height:56px; object-fit:contain; border-radius:14px; }
.rb-brand__text strong{ display:block; font-size:24px; font-weight:800; letter-spacing:-.5px; color:var(--sweater); }
.rb-brand__text em{ display:block; font-style:normal; font-size:12px; color:var(--ink-soft); }

.rb-search{ margin-left:auto; display:flex; align-items:center; background:var(--cream-2); border:1.5px solid var(--line); border-radius:999px; padding:4px 6px 4px 18px; transition:.2s; }
.rb-search:focus-within{ border-color:var(--panda); background:#fff; }
.rb-search__input{ border:0; background:none; outline:0; width:200px; font-size:14px; font-family:inherit; color:var(--ink); }
.rb-search__btn{ border:0; background:var(--sweater); color:#fff; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:14px; }

.rb-nav-toggle{ display:none; border:0; background:none; cursor:pointer; padding:8px; }
.rb-nav-toggle span{ display:block; width:22px; height:2.5px; background:var(--ink); margin:5px 0; border-radius:2px; }

/* 언어 선택 드롭다운 */
.rb-langs{ position:relative; flex-shrink:0; }
.rb-langs__btn{ border:1.5px solid var(--line); background:#fff; border-radius:999px; padding:9px 16px; font-family:inherit; font-size:13.5px; font-weight:700; color:var(--ink); cursor:pointer; transition:.15s; white-space:nowrap; }
.rb-langs__btn:hover{ border-color:var(--panda); }
.rb-langs__menu{ position:absolute; right:0; top:calc(100% + 8px); background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-lg); list-style:none; min-width:180px; padding:6px; display:none; z-index:200; }
.rb-langs.is-open .rb-langs__menu{ display:block; }
.rb-langs__link{ display:block; padding:9px 14px; border-radius:8px; font-size:14px; font-weight:600; }
.rb-langs__link:hover{ background:var(--cream-2); }
.rb-langs__link.is-active{ color:var(--panda-deep); background:var(--cream-2); }

/* GNB — 블랙 스웨터 톤 */
.rb-gnb{ background:var(--sweater); }
.rb-gnb__list{ display:flex; gap:4px; list-style:none; overflow-x:auto; }
.rb-gnb__link{ display:block; padding:12px 18px; color:rgba(255,255,255,.75); font-weight:600; font-size:15px; white-space:nowrap; border-bottom:3px solid transparent; transition:.15s; }
.rb-gnb__link:hover{ color:#fff; }
.rb-gnb__link.is-active{ color:#fff; border-bottom-color:var(--panda); }

/* ============================================================ 광고 */
.ad{ position:relative; background:#fff; border:1px dashed var(--line); border-radius:12px; overflow:hidden; text-align:center; }
.ad__label{ position:absolute; top:6px; left:10px; font-size:10px; color:#C9BBA8; letter-spacing:1px; }
.ad--strip{ margin:18px 0 6px; min-height:90px; }
.ad--list{ margin:8px 0 24px; min-height:100px; }
.ad--side{ min-height:600px; }
.ad--bottom{ margin:10px 0 30px; min-height:100px; }

/* ============================================================ 히어로 */
.rb-hero{ display:grid; grid-template-columns:1.1fr 1fr; gap:36px; align-items:center; padding:40px 20px 46px; }
.rb-hero__badge{ display:inline-block; background:var(--cream-2); color:var(--panda-deep); font-weight:700; font-size:13px; padding:6px 14px; border-radius:999px; margin-bottom:14px; }
.rb-hero h1{ font-size:42px; line-height:1.25; font-weight:800; letter-spacing:-1px; color:var(--sweater); }
.rb-hero h1 span{ color:var(--panda); }
.rb-hero__desc{ margin:16px 0 24px; color:var(--ink-soft); font-size:17px; max-width:440px; }
.rb-hero__cta{ display:flex; gap:10px; }

.rb-hero__cats{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.rb-cat-card{ background:#fff; border:1.5px solid var(--line); border-radius:var(--radius); padding:20px 18px; transition:.2s; box-shadow:var(--shadow); }
.rb-cat-card:hover{ transform:translateY(-4px); border-color:var(--panda); box-shadow:var(--shadow-lg); }
.rb-cat-card__emoji{ font-size:28px; display:block; }
.rb-cat-card__name{ display:block; font-weight:800; font-size:15px; margin:8px 0 4px; color:var(--sweater); }
.rb-cat-card__ko{ display:block; font-size:12.5px; color:var(--ink-soft); line-height:1.5; }

/* ============================================================ 레이아웃: 피드 + 사이드 */
.rb-layout{ display:grid; grid-template-columns:1fr 320px; gap:32px; align-items:start; padding-bottom:40px; }

.rb-feed__head{ display:flex; align-items:baseline; gap:12px; margin-bottom:18px; padding-bottom:12px; border-bottom:2px solid var(--sweater); }
.rb-feed__head h2{ font-size:22px; font-weight:800; }
.rb-feed__count{ font-size:13px; color:var(--ink-soft); }

/* 글 카드 — 네이버 블로그홈 느낌의 가로형 리스트 (썸네일 정사각형) */
.rb-post{ display:grid; grid-template-columns:200px 1fr; gap:20px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:18px; transition:.2s; box-shadow:var(--shadow); }
.rb-post:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:#E0CDAF; }
.rb-post__thumb{ position:relative; aspect-ratio:1/1; overflow:hidden; }
.rb-post__thumb img{ width:100%; height:100%; object-fit:cover; transition:.3s; }
.rb-post:hover .rb-post__thumb img{ transform:scale(1.04); }
.rb-post__hot{ position:absolute; top:10px; left:10px; background:var(--hot); color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; }
.rb-post__body{ padding:18px 20px 16px 0; display:flex; flex-direction:column; min-width:0; }
.rb-post__cat{ font-size:12.5px; font-weight:700; color:var(--panda-deep); margin-bottom:6px; }
.rb-post__title{ font-size:19px; font-weight:800; line-height:1.4; letter-spacing:-.3px; }
.rb-post__title a:hover{ color:var(--panda-deep); }
.rb-post__excerpt{ margin:8px 0 auto; font-size:14px; color:var(--ink-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rb-post__meta{ display:flex; justify-content:flex-end; align-items:center; margin-top:14px; font-size:13px; color:#A8988A; }

/* ── 페이지네이션 ── */
.rb-paging{ display:flex; justify-content:center; gap:6px; margin:26px 0 6px; }
.rb-paging__btn{ min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; padding:0 10px; border-radius:10px; background:#fff; border:1.5px solid var(--line); font-size:14px; font-weight:700; color:var(--ink-soft); transition:.15s; }
.rb-paging__btn:hover{ border-color:var(--panda); color:var(--panda-deep); }
.rb-paging__btn.is-active{ background:var(--sweater); border-color:var(--sweater); color:#fff; }
.rb-post__more{ font-weight:700; color:var(--panda); }
.rb-post__more:hover{ color:var(--panda-deep); }

/* ── 사이드바 위젯 ── */
.rb-side{ display:flex; flex-direction:column; gap:18px; }
.rb-widget{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.rb-widget__title{ font-size:15px; font-weight:800; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.rb-widget--profile{ text-align:center; background:linear-gradient(160deg,#fff 60%, var(--cream-2)); }
.rb-widget--profile img{ width:72px; height:72px; margin:0 auto 10px; border-radius:18px; object-fit:contain; }
.rb-widget--profile strong{ font-size:17px; font-weight:800; }
.rb-widget--profile p{ font-size:13px; color:var(--ink-soft); margin-top:6px; }

.rb-rank{ list-style:none; }
.rb-rank li{ display:flex; gap:10px; align-items:flex-start; padding:7px 0; }
.rb-rank__no{ flex-shrink:0; width:22px; height:22px; border-radius:7px; background:var(--sweater); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.rb-rank li:first-child .rb-rank__no{ background:var(--panda); }
.rb-rank a{ font-size:13.5px; font-weight:600; line-height:1.45; }
.rb-rank a:hover{ color:var(--panda-deep); }

.rb-catlist{ list-style:none; }
.rb-catlist a{ display:flex; justify-content:space-between; padding:9px 4px; font-size:14px; font-weight:600; border-radius:8px; transition:.15s; }
.rb-catlist a:hover{ background:var(--cream-2); padding-left:10px; }
.rb-catlist em{ font-style:normal; color:var(--panda); font-weight:700; }

.rb-side__sticky{ position:sticky; top:130px; }

/* ── 글 상세 ── */
.rb-article{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px 36px; box-shadow:var(--shadow); margin:26px 0 40px; min-width:0; }
.rb-crumb{ font-size:13px; color:var(--ink-soft); margin-bottom:12px; }
.rb-crumb a:hover{ color:var(--panda-deep); }
.rb-article__title{ font-size:30px; font-weight:800; line-height:1.35; letter-spacing:-.5px; margin-bottom:20px; }
.rb-article__thumb{ margin:0 0 24px; }
.rb-article__thumb img{ width:100%; border-radius:12px; }
.rb-article__thumb figcaption{ font-size:12.5px; color:var(--ink-soft); text-align:center; margin-top:8px; }
.rb-article__body{ font-size:16.5px; line-height:1.85; }
.rb-article__body h2{ font-size:22px; margin:34px 0 12px; padding-bottom:8px; border-bottom:2px solid var(--cream-2); }
.rb-article__body h3{ font-size:18px; margin:26px 0 10px; }
.rb-article__body p{ margin:0 0 16px; }
.rb-article__body img{ border-radius:12px; margin:8px 0; }
.rb-article__body figure{ margin:20px 0; }
.rb-article__body figcaption{ font-size:12.5px; color:var(--ink-soft); text-align:center; margin-top:6px; }
.rb-article__body ul, .rb-article__body ol{ margin:0 0 16px 22px; }
.rb-article__body blockquote{ border-left:4px solid var(--panda); background:var(--cream); padding:14px 18px; border-radius:0 10px 10px 0; margin:0 0 16px; }
.rb-article__more{ margin-top:36px; padding-top:20px; border-top:2px solid var(--sweater); }
.rb-article__more h2{ font-size:18px; font-weight:800; margin-bottom:14px; }
@media (max-width:768px){
  .rb-article{ padding:20px 18px; margin-top:16px; }
  .rb-article__title{ font-size:22px; }
  .rb-article__body{ font-size:15.5px; }
}

/* ── 제휴 · 문의 ── */
.rb-contact{ padding:48px 20px 60px; display:flex; justify-content:center; }
.rb-contact__box{ width:100%; max-width:640px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow); }
.rb-contact h1{ font-size:26px; font-weight:800; }
.rb-contact__lead{ color:var(--ink-soft); font-size:14.5px; margin:8px 0 24px; }
.rb-form{ display:flex; flex-direction:column; gap:16px; }
.rb-form__row{ display:grid; grid-template-columns:1fr 1.4fr; gap:14px; }
.rb-form label{ display:flex; flex-direction:column; gap:6px; font-size:13.5px; font-weight:700; color:var(--ink); }
.rb-form input, .rb-form select, .rb-form textarea{
  font-family:inherit; font-size:14.5px; color:var(--ink);
  border:1.5px solid var(--line); border-radius:10px; padding:11px 14px;
  background:var(--cream); outline:0; transition:.15s;
}
.rb-form input:focus, .rb-form select:focus, .rb-form textarea:focus{ border-color:var(--panda); background:#fff; }
.rb-form textarea{ resize:vertical; }
.rb-form__submit{ align-self:flex-end; border:0; cursor:pointer; font-family:inherit; }
.rb-alert{ padding:14px 18px; border-radius:10px; font-size:14px; font-weight:600; margin-bottom:18px; }
.rb-alert--ok{ background:#EFF7EC; color:#3E6B33; border:1px solid #CBE3C2; }
.rb-alert--err{ background:#FBEDEA; color:#A23E2A; border:1px solid #EFCFC6; }

/* ── 카테고리 헤더 / 404 / 빈상태 ── */
.rb-cathead{ padding:36px 20px 10px; }
.rb-cathead h1{ font-size:30px; font-weight:800; }
.rb-cathead p{ color:var(--ink-soft); margin-top:6px; }
.rb-404{ text-align:center; padding:90px 20px; }
.rb-404 h1{ font-size:72px; color:var(--panda); }
.rb-404 p{ margin:10px 0 24px; color:var(--ink-soft); }
.rb-empty{ padding:60px 0; text-align:center; color:var(--ink-soft); }

/* ============================================================ 푸터 */
.rb-footer{ background:var(--sweater); color:#CFC4B8; margin-top:30px; }
.rb-footer__inner{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:30px; padding:44px 20px 30px; }
.rb-footer strong{ color:#fff; display:block; margin-bottom:10px; font-size:15px; }
.rb-footer__brand strong{ font-size:20px; }
.rb-footer p{ font-size:13px; line-height:1.7; }
.rb-footer__age{ margin-top:10px; color:#9A8D7E; }
.rb-footer__links a{ display:block; font-size:13.5px; padding:4px 0; color:#CFC4B8; }
.rb-footer__links a:hover{ color:#fff; }
.rb-footer__copy{ border-top:1px solid rgba(255,255,255,.1); padding:16px 20px; font-size:12.5px; color:#8C8074; }

/* ============================================================ 반응형 */
@media (max-width: 1024px){
  .rb-layout{ grid-template-columns:1fr; }
  .rb-side{ order:2; }
  .rb-side__sticky{ position:static; }
  .ad--side{ min-height:250px; }
  .rb-hero h1{ font-size:34px; }
  .rb-hero{ gap:28px; }
}
@media (max-width: 768px){
  body{ font-size:15px; }
  /* 헤더: 로고 한 줄 + 검색 한 줄(전체폭) */
  .rb-header__inner{ flex-wrap:wrap; gap:10px; padding:12px 16px; }
  .rb-brand__img{ width:44px; height:44px; }
  .rb-brand__text strong{ font-size:20px; }
  .rb-brand__text em{ font-size:11px; }
  .rb-search{ margin-left:0; order:3; width:100%; }
  .rb-search__input{ width:100%; flex:1; }
  .rb-nav-toggle{ display:none; }
  /* GNB: 가로 스크롤 */
  .rb-gnb__link{ padding:11px 14px; font-size:14px; }

  /* 히어로 */
  .rb-hero{ grid-template-columns:1fr; padding:26px 20px 32px; }
  .rb-hero h1{ font-size:27px; }
  .rb-hero__desc{ font-size:15px; }
  .rb-hero__cats{ gap:10px; }
  .rb-cat-card{ padding:14px; }
  .rb-cat-card__ko{ display:none; }

  /* 글 카드: 작은 정사각 썸네일 + 본문 */
  .rb-post{ grid-template-columns:120px 1fr; gap:14px; }
  .rb-post__body{ padding:12px 14px 12px 0; }
  .rb-post__title{ font-size:15.5px; }
  .rb-post__excerpt{ font-size:13px; margin-top:4px; }
  .rb-post__cat{ font-size:11.5px; margin-bottom:2px; }
  .rb-post__meta{ margin-top:8px; font-size:12px; }
  .rb-post__hot{ top:6px; left:6px; font-size:10px; padding:3px 8px; }

  .rb-feed__head h2{ font-size:19px; }
  .rb-contact__box{ padding:24px 18px; }
  .rb-form__row{ grid-template-columns:1fr; }
  .rb-footer__inner{ grid-template-columns:1fr; gap:22px; padding:32px 20px 24px; }
  .rb-cathead h1{ font-size:24px; }
}
@media (max-width: 380px){
  .rb-post{ grid-template-columns:100px 1fr; }
  .rb-hero__cta .btn{ padding:10px 18px; font-size:14px; }
}
