/* ==========================================================================
   gowith153 Store - Digital Goods Marketplace Styles
   ========================================================================== */

:root {
  --bg-dark: #070a13;
  --bg-darker: #04060a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 62, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --cyan: #38bdf8;
  --purple: #a855f7;
  --gold: #fbbf24;
  --emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;

  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 배경 글로우 */
.bg-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.32;
}

.sphere-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -150px;
  left: 20%;
}

.sphere-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: 0;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 19, 0.85);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 9px;
  font-size: 0.95rem;
}

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

.logo-sub {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  margin-left: 4px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.family-link {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  transition: all var(--transition);
}

.link-conja {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan);
}
.link-conja:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.link-program {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
}
.link-program:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--purple);
  transform: translateY(-1px);
}

/* 히어로 섹션 */
.store-hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 32px;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

.trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* 카테고리 필터 바 */
.store-main {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

.category-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
}

/* 상품 카드 그리드 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 70px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-thumb {
  height: 140px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
}

.thumb-icon {
  font-size: 3.5rem;
  transition: transform var(--transition);
}
.product-card:hover .thumb-icon {
  transform: scale(1.1);
}

.thumb-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.badge-ebook { background: rgba(56, 189, 248, 0.15); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-code { background: rgba(251, 191, 36, 0.15); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-template { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-video { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.rating {
  color: #fbbf24;
  font-weight: 700;
}

.type-tag {
  color: var(--text-muted);
}

.prod-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.prod-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 52px;
}

.prod-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.orig-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.curr-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-buy {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* 하단 패밀리 서비스 배너 */
.family-banner-section {
  position: relative;
  z-index: 2;
  padding-bottom: 70px;
}

.family-cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.fam-card {
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
}

.fam-conja {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(6, 182, 212, 0.08));
  border-color: rgba(56, 189, 248, 0.25);
}

.fam-program {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(168, 85, 247, 0.08));
  border-color: rgba(168, 85, 247, 0.25);
}

.fam-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.fam-program .fam-tag {
  color: #c084fc;
}

.fam-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.fam-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.fam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.fam-conja .fam-btn {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.fam-conja .fam-btn:hover {
  background: var(--cyan);
  color: #04060a;
}

.fam-program .fam-btn {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.fam-program .fam-btn:hover {
  background: var(--purple);
  color: #ffffff;
}

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-darker);
  position: relative;
  z-index: 2;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-right {
  text-align: right;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 6px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--cyan);
}

/* 상품 상세 모달 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.modal-file-list {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.modal-checkout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.modal-price-wrap {
  display: flex;
  flex-direction: column;
}

.modal-orig {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-curr {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
}

.btn-download-action {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #04060a;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
  transition: all var(--transition);
}
.btn-download-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
}

@media (max-width: 768px) {
  .trust-strip { flex-direction: column; border-radius: 16px; gap: 10px; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
  .modal-window { padding: 24px; }
  .pc-br { display: none; }
}
