/* ============================================================
   STORE-NEW-LIKE.CSS
   Page-specific styles for store/ — new visual language.
   Vars bridge to rrebellnexus.css globals — NO hardcoded hex
   for brand colours. Light theme fully covered below.
============================================================ */

/* === VAR BRIDGE: prototype → rrebellnexus.css globals ===== */
:root,
[data-theme="dark"] {
  --red:         var(--primary-accent);
  --rose:        var(--secondary-accent);
  --ember:       var(--tertiary-accent);
  --red-rgb:     var(--primary-accent-rgb);
  --red-glow:    var(--glow-color);
  --red-faint:   rgba(var(--primary-accent-rgb), 0.08);
  --red-border:  rgba(var(--primary-accent-rgb), 0.20);
  --border-red:  rgba(var(--primary-accent-rgb), 0.20);

  --text-1:  var(--text-primary);
  --text-2:  var(--text-secondary);
  --text-3:  var(--text-tertiary);
  --text-4:  #3A2828;

  --bg-0:      var(--bg-base);
  --bg-1:      var(--bg-surface);
  --bg-2:      var(--bg-elevated);
  --bg-3:      #130A0A;
  --bg-card:   var(--bg-elevated);
  --bg-card-h: #190D0D;
  --bg-overlay: rgba(5, 2, 2, 0.85);

  --border:      var(--border-color);
  --shadow-red:  0 0 48px var(--glow-color);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.7);

  /* utility constants */
  --btn-text: #ffffff;
}

/* === LIGHT THEME EXTENSIONS (page-specific vars) =========== */
[data-theme="light"] {
  --red-faint:   rgba(var(--primary-accent-rgb), 0.05);
  --red-border:  rgba(var(--primary-accent-rgb), 0.15);
  --border-red:  rgba(var(--primary-accent-rgb), 0.15);

  --text-4:      #C0AEAE;

  --bg-3:        #FFECEC;
  --bg-card:     #FFFFFF;
  --bg-card-h:   #FFF0F0;
  --bg-overlay:  rgba(255, 250, 250, 0.9);

  --shadow-red:  0 0 48px rgba(var(--primary-accent-rgb), 0.10);
  --shadow-card: 0 8px 32px rgba(26, 8, 8, 0.10);
}

/* === CONTAINER ============================================= */
.st2-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO — Video ========================================== */
.st2-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: var(--header-height, 64px);
}

.st2-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.02);
  animation: st2ZoomOut 10s ease-out forwards;
}
@keyframes st2ZoomOut { to { transform: scale(1); } }

.st2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg,
    rgba(var(--red-rgb), 0.1) 0%,
    transparent 40%,
    var(--bg-overlay) 80%,
    var(--bg-0) 100%
  );
}

.st2-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
  animation: st2SlideUp 1s 0.3s both;
}
@keyframes st2SlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.st2-hero-kicker {
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.st2-hero-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.st2-hero-title {
  font-family: var(--font-accent), sans-serif;
  font-size: clamp(48px, 12vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
}
.st2-hero-title em {
  font-family: var(--font-heading), serif;
  font-style: italic;
  color: var(--red);
  font-size: 0.85em;
}

.st2-hero-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 24px;
}

.st2-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* === BUTTONS =============================================== */
.st2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
  border: none;
  cursor: pointer;
}
.st2-btn-primary {
  background: var(--red);
  color: var(--btn-text);
  box-shadow: 0 4px 24px rgba(var(--red-rgb), 0.3);
}
.st2-btn-primary:hover {
  background: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--red-rgb), 0.4);
}
.st2-btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.st2-btn-outline:hover {
  border-color: var(--red);
  color: var(--text-1);
  background: var(--red-faint);
  transform: translateY(-2px);
}

/* === VIDEO GRID ============================================ */
.st2-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 48px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .st2-video-grid { grid-template-columns: repeat(2, 1fr); }
}

.st2-video-card {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.st2-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.st2-video-card:hover video {
  filter: brightness(0.9);
  transform: scale(1.03);
}
.st2-video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
}
.st2-video-placeholder svg {
  width: 48px;
  height: 48px;
  fill: rgba(var(--red-rgb), 0.2);
}
.st2-video-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* === IMAGE GRID ============================================ */
.st2-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .st2-image-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .st2-image-grid { grid-template-columns: repeat(5, 1fr); }
}

.st2-image-item {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.st2-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.st2-image-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1.05);
}
.st2-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to top, var(--bg-overlay), transparent);
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}
.st2-image-item:hover .st2-image-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === COLLECTION GRID ======================================= */
.st2-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .st2-collection-grid { grid-template-columns: repeat(4, 1fr); }
}

.st2-collection-item {
  aspect-ratio: 3/4;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.st2-collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.st2-collection-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}
.st2-collection-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--btn-text);
  font-family: var(--font-accent), sans-serif;
  font-size: 7px;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.st2-collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, var(--bg-overlay), transparent);
}
.st2-collection-name {
  font-family: var(--font-heading), serif;
  font-size: 16px;
  color: var(--text-1);
  display: block;
}
.st2-collection-cat {
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* === SECTION =============================================== */
.st2-section { margin: 64px 0; }
.st2-section-header { margin-bottom: 32px; }
.st2-section-eye {
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.st2-section-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 12px;
}
.st2-section-title em { color: var(--red); font-style: italic; }
.st2-section-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}

/* === DIVIDER =============================================== */
.st2-divider {
  display: flex;
  align-items: center;
  margin: 48px 0;
}
.st2-divider-line { flex: 1; height: 1px; background: var(--border); }
.st2-divider-text {
  padding: 0 20px;
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-4);
  white-space: nowrap;
  text-transform: uppercase;
}

/* === CARDS ================================================= */
.st2-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 32px 0;
}
@media (min-width: 640px) { .st2-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .st2-card-grid { grid-template-columns: repeat(3, 1fr); } }

.st2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  border-radius: 8px;
}
.st2-card:hover {
  border-color: var(--red);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}
.st2-card-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.st2-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-1);
}
.st2-card p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* === STATEMENT ============================================= */
.st2-statement {
  border-left: 3px solid var(--red);
  background: var(--red-faint);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.st2-statement p { font-size: 15px; color: var(--text-2); }
.st2-statement strong { color: var(--text-1); }
.st2-statement-eye {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* === TABLET SHOWCASE ======================================= */
.st2-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 48px 0;
}
@media (min-width: 768px) {
  .st2-showcase { flex-direction: row; align-items: center; }
}
.st2-showcase-video {
  flex: 1;
  background: var(--bg-2);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.st2-showcase-screen {
  aspect-ratio: 4/3;
  background: var(--bg-0);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.st2-showcase-screen video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.st2-showcase-content { flex: 1; }

/* === PHONE SHOWCASE ======================================== */
.st2-phone-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 48px 0;
}
@media (min-width: 768px) {
  .st2-phone-showcase { flex-direction: row-reverse; align-items: center; }
}
.st2-phone-mockup {
  flex: 0 0 240px;
  background: var(--bg-2);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}
.st2-phone-screen {
  aspect-ratio: 9/19;
  background: var(--bg-0);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.st2-phone-screen video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* === COUNTDOWN ============================================= */
.st2-countdown {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.st2-countdown-item { text-align: center; }
.st2-countdown-num {
  font-family: var(--font-accent), sans-serif;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  font-weight: 700;
}
.st2-countdown-label {
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* === PRE-ORDER FORM ======================================== */
.st2-preorder {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  padding: 32px;
  border-radius: 0 0 8px 8px;
  margin: 32px 0;
}
.st2-preorder-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 600px) {
  .st2-preorder-form { flex-direction: row; }
}
.st2-preorder-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-1);
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.st2-preorder-input::placeholder { color: var(--text-3); }
.st2-preorder-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.1);
}

/* === SOUNDCLOUD MINI ======================================= */
.st2-sc-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin: 32px 0;
}
.st2-sc-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.st2-sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: st2Pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes st2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.st2-sc-wrapper iframe { display: block; }

/* === CHAT WIDGET =========================================== */
.st2-chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin: 32px 0;
}
.st2-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
}
.st2-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.st2-chat-status {
  margin-left: auto;
  font-family: var(--font-heading), serif;
  font-size: 14px;
  color: var(--red);
}
.st2-chat-label {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}
.st2-chat-messages {
  padding: 20px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st2-chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.st2-chat-msg.bot {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  align-self: flex-start;
}
.st2-chat-msg.user {
  background: var(--red);
  color: var(--btn-text);
  align-self: flex-end;
}
.st2-chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.st2-chat-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-1);
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.st2-chat-input input:focus {
  outline: none;
  border-color: var(--red);
}
.st2-chat-input input::placeholder { color: var(--text-3); }
.st2-chat-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: var(--btn-text);
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st2-chat-send:hover { transform: scale(1.05); background: var(--ember); }

/* === BODY TEXT ============================================= */
.st2-body-text {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}
.st2-body-text strong { color: var(--text-1); }

/* scroll-margin for anchor targets */
.st2-anchor {
  scroll-margin-top: var(--header-height, 64px);
}

/* video placeholder inside non-grid contexts */
.st2-video-placeholder-wrap {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}
.st2-video-placeholder-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st2-video-placeholder-inset {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
}
.st2-video-placeholder-inset svg { width: 48px; height: 48px; fill: rgba(var(--red-rgb), 0.2); }
