/* SwagSell shared styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Pacifico&display=swap');

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

html, body {
  background: #191919;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #191919;
  padding: 30px 20px 24px;
  text-align: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.logo svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo .brand {
  font-family: 'Pacifico', cursive;
  font-size: 38px;
  background: linear-gradient(135deg, #ff4e50 0%, #f9a826 50%, #ff4e50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  line-height: 1;
}
@media (max-width: 600px) {
  .logo .brand { font-size: 30px; }
  .logo svg { width: 36px; height: 36px; }
}

.tagline {
  margin-top: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

/* Restream CTA button — refined for business presentation */
.cta-wrap {
  text-align: center;
  margin: 28px 0 4px;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  background:
    linear-gradient(#1e1e1e, #1e1e1e) padding-box,
    linear-gradient(135deg, rgba(255,78,80,.55), rgba(249,168,38,.55) 50%, rgba(255,255,255,.08)) border-box;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 8px 24px rgba(0,0,0,.35);
}
.cta-btn .cta-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff4e50, #f9a826);
  color: #fff;
  flex-shrink: 0;
}
.cta-btn .cta-ico svg { width: 12px; height: 12px; }
.cta-btn .arrow {
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s ease;
  color: rgba(255,255,255,.55);
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 14px 34px rgba(0,0,0,.45),
    0 0 0 4px rgba(255,78,80,.08);
}
.cta-btn:hover .arrow { transform: translateX(4px); color: #fff; }

@media (max-width: 600px) {
  .cta-btn { font-size: 13px; padding: 12px 18px 12px 14px; gap: 10px; }
}

/* Products grid */
.products {
  padding: 30px 20px 60px;
  background: #191919;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 960px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.product {
  background: #1f1f1f;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  transition: transform .15s ease, background .2s ease;
  display: block;
  color: #fff;
}
.product:hover { transform: translateY(-3px); background: #242424; }
.product .img-wrap {
  width: 100%;
  aspect-ratio: 13 / 15;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.product .img-wrap img { max-width: 80%; max-height: 80%; object-fit: contain; }
.product .title { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.product .price { font-size: 18px; font-weight: 500; }

/* Footer */
.site-footer {
  background: #191919;
  padding: 30px 20px 40px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.7;
}
.site-footer a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.site-footer p { margin: 4px 0; }

/* Legal pages */
.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  line-height: 1.7;
  font-size: 15px;
  color: #e8e8e8;
}
.legal h1 { font-size: 28px; margin-bottom: 8px; color: #fff; }
.legal h2 { font-size: 20px; margin: 28px 0 12px; color: #fff; }
.legal .date { color: rgba(255,255,255,.6); margin-bottom: 24px; font-size: 14px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 10px 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #f9a826;
  border-bottom: 1px dashed rgba(249,168,38,.5);
}

/* Restream chooser */
.choose-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.choose-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.choose-sub {
  text-align: center;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  font-size: 15px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  border: 1px solid #262626;
  color: #fff;
  display: block;
}
.svc-card:hover { transform: translateY(-3px); background: #232323; box-shadow: 0 12px 24px rgba(0,0,0,.4); }
.svc-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 32px;
  color: #fff;
}
.svc-name { font-weight: 600; font-size: 16px; }

/* Player page */
.player-page {
  min-height: 100vh;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
}
.player-top {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222;
  background: #141414;
}
.player-stream-name { font-weight: 600; }
.player-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  min-height: 60vh;
}
.player-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #ddd;
}
.spinner {
  width: 56px; height: 56px;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: #ff4e50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 14px; color: rgba(255,255,255,.7); }

/* Auth modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: #1c1c1c;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 30px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border: 1px solid #2a2a2a;
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .sub { color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 22px; }
.modal label { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 6px; margin-top: 12px; }
.modal input {
  width: 100%;
  padding: 12px 14px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.modal input:focus { outline: none; border-color: #ff4e50; }
.modal .submit {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4e50, #f9a826);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.modal .submit:hover { filter: brightness(1.05); }
.modal .err {
  margin-top: 14px;
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}
.modal .svc-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: #fff;
}
