/* CAFE JIN - 파스텔핑크 테마 스타일시트 */

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

body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #fdf6f9;
  color: #333;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3d2de;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

/* CAFE JIN 로고 이미지 — 높이 기준으로 맞추고 비율 유지 */
.logo .logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c06b84;
  margin-left: 0;
  white-space: nowrap;
}

/* 데스크톱 네비가 아직 보이는 좁은 폭(768~900px)에서는
   로고가 네비를 밀어내지 않도록 'by 621.kr' 을 숨기고 로고를 줄인다. */
@media (max-width: 900px) {
  .logo span { display: none; }
  .logo .logo-img { height: 30px; }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  font-size: 0.9rem;
}

nav li a {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;   /* '소 개' 처럼 글자 단위로 끊기는 것 방지 */
  transition: background 0.15s ease-out, color 0.15s ease-out;
}

nav li a:hover {
  background: #ff9db5;
  color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #f3d2de;
  padding: 1rem;
  gap: 0.5rem;
}

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

.mobile-menu a {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.mobile-menu a:hover {
  background: #ffeaf2;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2.3rem 0 2.8rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #ff9db5;
  color: #fff;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.tag-new {
  background: #fff;
  color: #ff7b9d;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.65rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.hero h1 .highlight {
  color: #ff7b9d;
}

.hero-content > p {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: #777;
}

.hero-meta a {
  color: #c06b84;
}

.hero-meta a:hover {
  text-decoration: underline;
}

.hero-visual {
  border-radius: 16px;
  background: radial-gradient(circle at top left, #ffe1ed, #fdf6f9);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.hero-card {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 30px rgba(255, 182, 193, 0.35);
}

.hero-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.hero-card p {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ffe7ef;
  color: #c34462;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9db5, #ffd2e1);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.03);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border: 1px solid #ffd2e1;
  color: #555;
}

.btn-ghost:hover {
  background: #ffeaf2;
}

/* Sections */
section {
  padding: 2.3rem 0 0;
}

section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

section > p.lead {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 1.3rem;
}

.section-subtitle {
  font-size: 1rem;
  margin: 1.5rem 0 1rem;
  color: #555;
}

/* Grid Layouts */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 25px rgba(255, 182, 193, 0.25);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.card ul {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.card ul li {
  margin-bottom: 0.2rem;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #ffd2e1;
  color: #c34462;
  margin-bottom: 0.4rem;
}

.badge-active {
  background: #ff9db5;
  color: #fff;
}

/* Menu */
.menu-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #f4c0d2;
}

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

.menu-name {
  font-weight: 600;
}

.menu-en {
  display: block;
  font-size: 0.75rem;
  color: #999;
}

.menu-price {
  font-weight: 600;
  color: #c34462;
}

.menu-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

/* Info List */
.info-list {
  list-style: none;
  font-size: 0.9rem;
  color: #444;
  padding-left: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 0.25rem;
}

.info-list span {
  display: inline-block;
  width: 4.8rem;
  color: #888;
  font-size: 0.85rem;
}

/* Gacha Status */
.gacha-status-card {
  padding: 0.8rem 1rem;
}

.gacha-status-card h4 {
  margin-bottom: 0.3rem;
}

/* Instagram */
.insta-card {
  text-align: center;
}

.insta-placeholder {
  background: #fdf6f9;
  border-radius: 12px;
  padding: 2rem 1rem;
}

.insta-placeholder .small {
  margin-top: 1rem;
  color: #777;
  font-size: 0.8rem;
}

/* Location */
.location-info {
  margin-bottom: 1rem;
}

.location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 300px;
}

/* Reviews */
.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f3d2de;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.review-nickname {
  font-weight: 600;
  font-size: 0.85rem;
  color: #c06b84;
}

.review-date {
  font-size: 0.75rem;
  color: #999;
}

.review-item p {
  font-size: 0.9rem;
  color: #555;
}

/* Form */
form {
  display: block;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

label {
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: block;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #f1bfd1;
  font: inherit;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ff9db5;
}

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

.small {
  font-size: 0.8rem;
  color: #777;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem 2rem;
  background: #ffe7ef;
  color: #92405a;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.footer-info p {
  margin-bottom: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }

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

  .container {
    padding: 0 1rem 2rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .location-buttons {
    flex-direction: column;
  }

  .location-buttons a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.7rem 1rem;
  }
}

/* =============================================
   MENU PAGE STYLES
   ============================================= */

/* Page Hero (for sub pages) */
.page-hero {
  padding: 2rem 0 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 0.95rem;
  color: #555;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Menu Detail Card */
.menu-detail-card {
  position: relative;
}

.menu-detail-card .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.3rem;
}

.menu-detail-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.menu-price-tag {
  font-size: 1rem;
  font-weight: 700;
  color: #c34462;
  white-space: nowrap;
}

.menu-detail-card .menu-en {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.4rem;
}

.menu-detail-card .menu-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Menu Options (HOT/ICE tags) */
.menu-options {
  display: flex;
  gap: 0.4rem;
}

.option-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ffeaf2;
  color: #c06b84;
  font-weight: 600;
}

/* Decaf badge */
.badge-decaf {
  background: #e8f5e9;
  color: #2e7d32;
}

.menu-detail-card.decaf {
  border: 1px solid #c8e6c9;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, #fff 0%, #ffeaf2 100%);
  margin-top: 2rem;
}

.info-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.info-bullets li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #555;
}

.info-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: #ff9db5;
}

/* CTA Section */
.cta-section {
  padding: 2rem 0;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, #ffe7ef 0%, #ffd2e1 100%);
  padding: 2rem;
}

.cta-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: #666;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   GACHA PAGE STYLES
   ============================================= */

/* Active navigation */
nav li a.active {
  background: #ff9db5;
  color: #fff;
}

/* Gacha Lineup Grid */
.gacha-lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

/* Gacha Card */
.gacha-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gacha-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 182, 193, 0.35);
}

.gacha-card.featured {
  border: 2px solid #ff9db5;
}

.gacha-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gacha-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.gacha-brand {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.6rem;
}

.gacha-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem 0;
}

.gacha-items li {
  font-size: 0.85rem;
  color: #555;
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.gacha-items li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff9db5;
}

.gacha-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px dashed #f3d2de;
}

.gacha-price {
  font-weight: 600;
  color: #c34462;
}

.gacha-stock {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.stock-good {
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-limited {
  background: #fff3e0;
  color: #e65100;
}

.stock-restock {
  background: #e3f2fd;
  color: #1565c0;
}

/* Badge variants */
.badge-hot {
  background: #ff5252;
  color: #fff;
}

.badge-new {
  background: #4caf50;
  color: #fff;
}

.badge-official {
  background: #2196f3;
  color: #fff;
}

/* Note text */
.note-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

.note-text a {
  color: #c06b84;
}

.note-text a:hover {
  text-decoration: underline;
}

/* Trend Card */
.trend-card {
  transition: transform 0.2s;
}

.trend-card:hover {
  transform: translateY(-2px);
}

.trend-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* Highlight Card (Rankings) */
.highlight-card {
  background: linear-gradient(135deg, #fff 0%, #ffe7ef 100%);
  margin-top: 1.5rem;
}

.ranking-list {
  margin-top: 1rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3d2de;
}

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

.ranking-item .rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9db5, #ffd2e1);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-item .character {
  flex: 1;
  font-weight: 500;
}

.trend-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ffd2e1;
  color: #c34462;
}

.trend-tag.trend-up {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Brand Card */
.brand-card {
  transition: transform 0.2s;
}

.brand-card:hover {
  transform: translateY(-2px);
}

.brand-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.brand-tag {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.6rem;
  display: block;
}

.brand-card ul {
  margin-bottom: 0.8rem;
}

.brand-link {
  font-size: 0.85rem;
  color: #c06b84;
  font-weight: 500;
}

.brand-link:hover {
  text-decoration: underline;
}

/* Distributor Card */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.distributor-card {
  transition: transform 0.2s;
}

.distributor-card:hover {
  transform: translateY(-2px);
}

.distributor-card h4 {
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.distributor-card p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.distributor-card .btn-ghost {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* Supplier Card */
.supplier-card {
  transition: transform 0.2s;
}

.supplier-card:hover {
  transform: translateY(-2px);
}

.supplier-card h4 {
  margin-bottom: 0.4rem;
}

.supplier-card p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

/* Startup Section */
.startup-list {
  margin: 0;
}

.startup-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #f3d2de;
}

.startup-list li:last-child {
  border-bottom: none;
}

.startup-label {
  color: #555;
}

.startup-value {
  font-weight: 600;
  color: #c34462;
}

.startup-type {
  margin-bottom: 1rem;
}

.startup-type:last-child {
  margin-bottom: 0;
}

.startup-type h4 {
  font-size: 0.95rem;
  color: #c06b84;
  margin-bottom: 0.3rem;
}

.startup-type ul {
  margin-left: 1rem;
  font-size: 0.85rem;
}

/* Tip Card */
.tip-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  margin-top: 1.5rem;
}

.tip-card h3 {
  color: #2e7d32;
}

.tip-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.tip-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #333;
}

/* Responsive for new pages */
@media (max-width: 768px) {
  .gacha-lineup-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-item .character {
    flex: none;
    width: calc(100% - 40px);
  }

  .ranking-item .trend-tag {
    margin-left: 40px;
    margin-top: 0.3rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a {
    width: 100%;
  }
}
