/* SolaRayEffect.com shared shop rails + phone strips.
   Rails (desktop side columns) show only when /assets/rails.js finds at least
   224px free beside the page content; otherwise the strip shows instead.
   Markup is generated at deploy from data/master/products.csv. */

/* ============================================
   AFFILIATE LEFT RAIL
   Shop Miners Rail &mdash; 14 row affiliate directory
   ============================================ */
.affiliate-rail {
  position: absolute;
  top: 0;
  left: 12px;
  width: 200px;
  z-index: 900;
  overflow-y: visible;
}

.affiliate-rail .rail-header { text-align: center; margin-bottom: 8px; padding: 6px 0 4px; }
.affiliate-rail .rail-site-label {
  color: rgba(212,175,55,0.5);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.affiliate-rail .rail-title {
  color: rgba(232,240,247,0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.affiliate-rail .rail-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
  margin-bottom: 6px;
}

.mine-row {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 8px;
  margin-bottom: 4px;
  border-radius: 10px;
  min-height: 44px;
  background: linear-gradient(135deg, rgba(8,26,21,0.75), rgba(5,10,12,0.88));
  border: 1px solid rgba(212,175,55,0.28);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mine-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(90deg, rgba(232,240,247,0.4) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232,240,247,0.25) 1px, transparent 1px);
  background-size: 18px 18px;
}
.mine-row:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,0.65);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 14px rgba(212,175,55,0.08);
}

.mine-left, .mine-right {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine-left img, .mine-right img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 5px rgba(212,175,55,0.5));
}
.mine-left .rail-emoji, .mine-right .rail-emoji {
  font-size: 1.4rem;
  line-height: 1;
}
.mine-info {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mine-name {
  color: rgba(232,240,247,0.92);
  font-size: 0.70rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.mine-hash {
  color: rgba(212,175,55,0.75);
  font-size: 0.58rem;
  font-weight: 700;
  margin-top: 2px;
  text-align: center;
  min-height: 0.7rem;
}
.affiliate-rail .rail-footer {
  text-align: center;
  margin-top: 6px;
  color: rgba(90,106,122,0.7);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
}

/* ============================================
   AFFILIATE RIGHT RAIL (INDEX ONLY)
   Shop Gear Rail &mdash; 14 row Amazon directory
   ============================================ */
.affiliate-rail-right {
  position: absolute;
  top: 0;
  right: 12px;
  width: 200px;
  z-index: 900;
  overflow-y: visible;
}
.affiliate-rail-right .rail-header { text-align: center; margin-bottom: 8px; padding: 6px 0 4px; }
.affiliate-rail-right .rail-site-label {
  color: rgba(212,175,55,0.5);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.affiliate-rail-right .rail-title {
  color: rgba(232,240,247,0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.affiliate-rail-right .rail-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
  margin-bottom: 6px;
}
.affiliate-rail-right .rail-footer {
  text-align: center;
  margin-top: 6px;
  color: rgba(90,106,122,0.7);
  font-size: 0.58rem;
  letter-spacing: 0.10em;
}

/* Rail rows link to eBay/Amazon; the left/right icons are files in /assets/rail/ */
.affiliate-rail .mine-left img, .affiliate-rail .mine-right img,
.affiliate-rail-right .mine-left img, .affiliate-rail-right .mine-right img { display: block; }

/* ============================================
   SHOP STRIPS (phones, tablets, and desktops without room for rails)
   ============================================ */
.mobile-affiliate-strip {
  display: block;
  margin: 1.5rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(212,175,55,0.2);
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.mobile-affiliate-strip .strip-header {
  text-align: center;
  margin-bottom: 0.5rem;
}
.mobile-affiliate-strip .strip-title {
  color: rgba(232,240,247,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mobile-affiliate-strip .strip-label {
  color: rgba(212,175,55,0.5);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mobile-affiliate-strip .strip-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 8px;
  justify-content: center;
}
.mobile-affiliate-strip .strip-btn {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(0,206,209,0.06);
  border: 1px solid rgba(0,206,209,0.15);
  border-radius: 6px;
  color: rgba(232,240,247,0.85);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-affiliate-strip .strip-btn:active {
  background: rgba(0,206,209,0.15);
}
.mobile-affiliate-strip .strip-footer {
  text-align: center;
  margin-top: 0.4rem;
  color: rgba(232,240,247,0.78);
  font-size: 0.5rem;
  line-height: 1.3;
  padding: 0 1rem;
}

/* Visibility switch (rails.js adds .rails-on to <html> when there is room) */
.affiliate-rail, .affiliate-rail-right { display: none; }
html.rails-on .affiliate-rail, html.rails-on .affiliate-rail-right { display: block; }
html.rails-on .mobile-affiliate-strip { display: none; }
