/* ===========================
   BANAIN.COM — Stylesheet
   Font: Inclusive Sans (Google Fonts)
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #F7F4EE;
  --bg-warm:   #EDEAE2;
  --fg:        #141210;
  --fg-muted:  #5C5751;
  --accent:    #D4622A;
  --accent-lt: #F0E6DC;
  --gold:      #C9941A;
  --border:    #DDD9D0;
  --white:     #FFFFFF;
  --radius:    6px;
  --font:      'Inclusive Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-w:     1100px;
  --transition: 180ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER / NAV ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fg);
  border-bottom: 3px solid var(--accent);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}

.logo-dot { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}

.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--fg);
  padding: 16px 24px 24px;
  gap: 16px;
}

.mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
}

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 700px;
  color: var(--fg);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: #b8521f; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--fg); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-full { width: 100%; }

/* ===== SECTION SHARED ===== */

section { padding: 80px 24px; }

.section-header {
  max-width: var(--max-w);
  margin: 0 auto 48px;
}

.section-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}

.section-sub {
  color: var(--fg-muted);
  margin-top: 12px;
  font-size: 16px;
}

/* ===== BANAIN OF THE MONTH ===== */

.motm {
  background: var(--fg);
  color: var(--white);
}

.motm .section-header { margin-bottom: 40px; }
.motm .section-title { color: var(--white); }
.motm .section-tag { color: var(--gold); }

.motm-card {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.motm-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1e1e;
}

.motm-image a { display: block; }

.motm-img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
  display: block;
}

.motm-img-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 5/6;
  background: linear-gradient(160deg, #1a1a1a, #2d2d2d);
  align-items: center;
  justify-content: center;
}

.motm-fallback-inner {
  text-align: center;
  color: rgba(255,255,255,0.6);
}

.fallback-logo {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 8px;
}

.fallback-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.motm-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1;
}

.motm-brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.motm-name {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.motm-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.stars { display: flex; gap: 3px; }
.star { color: var(--gold); font-size: 18px; }
.star.half { opacity: 0.35; }

.rating-num { font-size: 16px; }
.rating-count { color: rgba(255,255,255,0.5); font-size: 14px; }

.motm-desc {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 16px;
}

.motm-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

.reviews-section .tag,
.ranking-item .tag {
  background: var(--accent-lt);
  color: var(--accent);
  border: none;
}

.review-drawer .tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

.motm-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price-range {
  font-size: 22px;
  color: rgba(255,255,255,0.55);
}

/* ===== RANKINGS ===== */

.rankings { background: var(--bg); }

.rankings .section-header,
.ranking-list,
.filter-bar {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.filter-bar {
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--white);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 72px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: #faf8f4; }
.ranking-item.hidden { display: none; }

.rank-num {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .rank-num { color: var(--gold); }
.ranking-item:nth-child(2) .rank-num { color: #9CA3AF; }
.ranking-item:nth-child(3) .rank-num { color: var(--accent); }

.rank-img-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-warm);
}

.rank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-img-placeholder {
  width: 100%;
  height: 100%;
}

.rank-img-placeholder.gym      { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.rank-img-placeholder.everyday { background: linear-gradient(135deg, #f0e6dc, #e0d4c4); }
.rank-img-placeholder.streetwear { background: linear-gradient(135deg, #2d2d2d, #444); }
.rank-img-placeholder.undershirt { background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.rank-img-placeholder.gym2     { background: linear-gradient(135deg, #1c3a2e, #2d5a42); }

.rank-info { min-width: 0; }

.rank-brand {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.rank-name-btn {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.rank-name-btn:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.stars-sm {
  color: var(--gold);
  letter-spacing: -2px;
  font-size: 13px;
}

.rank-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-lt);
  color: var(--accent);
}

.rank-price {
  font-size: 18px;
  color: var(--fg-muted);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}

.rank-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.buy-link {
  font-size: 12px;
  font-family: var(--font);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--accent-lt);
  border-radius: 4px;
  background: var(--accent-lt);
  transition: all var(--transition);
  white-space: nowrap;
}

.buy-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== VOTE BLOCK ===== */

.vote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.vote-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all var(--transition);
}

.vote-btn:hover { border-color: var(--fg); color: var(--fg); }
.vote-btn.voted-up { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.vote-btn.voted-down { border-color: #9CA3AF; color: #9CA3AF; background: #f3f4f6; }

.vote-count {
  font-size: 13px;
  color: var(--fg);
  line-height: 1;
  transition: transform 0.2s ease;
}

/* ===== REVIEWS SECTION ===== */

.reviews-section { background: var(--bg-warm); }

.reviews-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.reviewer-name { font-size: 14px; }
.review-date { font-size: 12px; color: var(--fg-muted); }

.review-stars { margin-left: auto; color: var(--gold); font-size: 14px; letter-spacing: -1px; }

.review-product {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}

.review-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== SUBMIT SECTION ===== */

.submit-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.submit-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.submit-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.submit-title {
  font-family: var(--font);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.submit-sub {
  color: var(--fg-muted);
  font-size: 16px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  color: var(--fg);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: #b0aca5; }

.form-textarea { min-height: 120px; resize: vertical; }

.star-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-muted);
}

.star-pick {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}

.star-pick:hover,
.star-pick.selected { color: var(--gold); transform: scale(1.12); }

.form-note {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
}

.footer-brand .logo {
  font-size: 22px;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links { display: flex; gap: 64px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== REVIEW DRAWER ===== */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  backdrop-filter: blur(2px);
}

.drawer-overlay.open { display: block; }

.review-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 440px;
  max-width: 100vw;
  background: var(--fg);
  color: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.review-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.drawer-brand {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.drawer-title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}

.drawer-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.drawer-rating .stars-sm { font-size: 15px; letter-spacing: -1px; }

.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
}

.drawer-close:hover { color: var(--white); }

.drawer-buy-row {
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.drawer-buy-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(212,98,42,0.4);
  border-radius: var(--radius);
  background: rgba(212,98,42,0.1);
  transition: all var(--transition);
}

.drawer-buy-row a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.drawer-reviews {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-loading {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
}

.drawer-no-reviews {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
  line-height: 1.7;
}

.drawer-review-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-review-item:last-child { border-bottom: none; padding-bottom: 0; }

.drawer-reviewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.drawer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.drawer-reviewer-name {
  font-size: 14px;
  color: var(--white);
}

.drawer-review-date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.drawer-review-stars {
  margin-left: auto;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: -1px;
}

.drawer-review-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 12px;
}

.drawer-review-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .motm-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .motm-image { max-width: 280px; }

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

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 40px; }

  .ranking-item {
    grid-template-columns: 44px 60px 1fr auto;
    gap: 14px;
    padding: 16px 18px;
  }

  .rank-price { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 56px 20px; }
  .hero { padding: 64px 20px 56px; }

  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .ranking-item {
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 14px 16px;
  }

  .rank-img-wrap { display: none; }

  .review-drawer { width: 100vw; }

  .footer-inner { padding: 48px 20px 32px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
