/* ============================================================
   Translook Spatial Signage — Main Stylesheet
   Design: Flat / Minimalist Modern
   ============================================================ */

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-primary: #0a0a0a;
  --color-accent: #0066ff;
  --color-accent-hover: #0052cc;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-samsung: #1428a0;
  --color-translook: #0066ff;
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section:nth-child(even) { background: var(--color-surface); }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,249,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--color-primary);
}
.nav-logo span { color: var(--color-accent); }
.lang-switch {
  display: flex; gap: 4px; align-items: center;
  background: var(--color-border); border-radius: 20px; padding: 3px;
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 5px 14px; border-radius: 16px; font-size: 13px;
  font-weight: 500; color: var(--color-muted);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--color-surface); color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 60%, #0f3460 100%);
  color: white;
}
.hero-content { max-width: 720px; }
.hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--color-accent); }
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.65);
  max-width: 560px; margin-bottom: 32px; line-height: 1.7;
}
.hero-entity-def {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-weight: 500;
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: white;
  padding: 14px 32px; border-radius: 8px; font-weight: 600;
  font-size: 15px; transition: var(--transition);
}
.hero-cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 48px;
}
.stat-item .stat-value {
  font-size: 36px; font-weight: 800; color: white;
}
.stat-item .stat-label {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px;
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-eyebrow.samsung { color: var(--color-samsung); }
.section-eyebrow.translook { color: var(--color-translook); }
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--color-muted); max-width: 560px; margin: 0 auto; }

/* ── Product Showcase ── */
.product-showcase {
  margin-bottom: 64px;
}
.product-image-main {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}
.product-image-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.product-image-thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.product-image-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}
.product-image-thumbs img:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}
.samsung-showcase .product-image-thumbs img:hover {
  border-color: var(--color-samsung);
}

/* Samsung gallery active state */
.samsung-showcase .product-image-thumbs img.active {
  border-color: var(--color-samsung);
  box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.2);
}

/* Videos container */
.product-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .product-videos {
    grid-template-columns: 1fr;
  }
}

/* Video container styling */
.product-video-main {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
}

.product-video-main video {
  width: 100%;
  height: auto;
  display: block;
}

.video-label {
  padding: 12px 16px;
  margin: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-align: center;
}

/* Translook gallery specific styles */
.translook-gallery {
  margin-top: 32px;
}

.translook-gallery .product-image-main {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.translook-gallery .product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.translook-gallery .product-image-thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.translook-gallery .product-image-thumbs img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.translook-gallery .product-image-thumbs img:hover {
  border-color: var(--color-translook);
  transform: scale(1.05);
}

.translook-gallery .product-image-thumbs img.active {
  border-color: var(--color-translook);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

/* How To Videos Section */
.howto-videos {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.howto-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-align: center;
}

.howto-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .howto-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .howto-carousel {
    grid-template-columns: 1fr;
  }
}

.howto-video-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.howto-video-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.howto-video-item video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.howto-label {
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* How To Player Section */
.howto-player-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.howto-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  text-align: center;
}

.howto-player-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

@media (max-width: 992px) {
  .howto-player-container {
    grid-template-columns: 1fr;
  }
}

.howto-main-video {
  background: #000;
}

.howto-main-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.howto-current-title {
  padding: 16px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.howto-playlist {
  background: var(--color-bg);
  max-height: 500px;
  overflow-y: auto;
}

.howto-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}

.howto-playlist-item:hover {
  background: var(--color-surface);
}

.howto-playlist-item.active {
  background: rgba(20, 40, 160, 0.08);
  border-left: 3px solid var(--color-samsung);
}

.playlist-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  width: 24px;
  text-align: center;
}

.howto-playlist-item.active .playlist-number {
  color: var(--color-samsung);
}

.playlist-title {
  font-size: 14px;
  color: var(--color-primary);
  line-height: 1.4;
}

.howto-playlist-item.active .playlist-title {
  font-weight: 600;
}

/* Samsung Specs Section */
.samsung-specs-section {
  background: var(--color-surface);
}

.samsung-specs-section .section-eyebrow {
  color: var(--color-samsung);
}

/* Thumbnail scroll container for many images */
.product-image-thumbs {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.product-image-thumbs::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.product-image-thumbs::-webkit-scrollbar-track {
  background: transparent;
}
.product-image-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
.product-image-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* Main image transition */
.product-image-main img {
  transition: opacity 0.2s ease;
}
.translook-showcase .product-image-thumbs img:hover {
  border-color: var(--color-translook);
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-icon.samsung-icon { background: rgba(20,40,160,0.08); }
.feature-icon.translook-icon { background: rgba(0,102,255,0.08); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--color-muted); line-height: 1.6; }

/* ── Comparison Table ── */
.compare-section { background: var(--color-primary); color: white; }
.compare-section .section-title { color: white; }
.compare-section .section-desc { color: rgba(255,255,255,0.5); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; min-width: 580px;
}
.compare-table th {
  padding: 16px 20px; text-align: left;
  font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.compare-table th:nth-child(2) { color: rgba(255,255,255,0.6); }
.compare-table th:nth-child(3) { color: var(--color-accent); }
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.compare-table tr:hover td { background: rgba(255,255,255,0.03); }
.compare-table td:first-child { color: rgba(255,255,255,0.5); font-size: 13px; }
.badge-better {
  display: inline-block;
  background: rgba(0,102,255,0.2); color: #60a5fa;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-left: 8px;
}

/* ── Specs ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.spec-key { font-size: 13px; color: var(--color-muted); }
.spec-val { font-size: 14px; font-weight: 600; }

/* ── Use Cases ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.usecase-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.usecase-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.usecase-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.usecase-body { padding: 20px; }
.usecase-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.usecase-body p { font-size: 13px; color: var(--color-muted); }

/* ── Contact ── */
#contact { background: var(--color-primary); color: white; text-align: center; }
#contact .section-title { color: white; }
#contact .section-desc { color: rgba(255,255,255,0.5); }
.contact-grid {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
}
.contact-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 36px;
  min-width: 200px;
}
.contact-item .contact-icon { font-size: 28px; margin-bottom: 12px; }
.contact-item .contact-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.contact-item .contact-value { font-size: 15px; font-weight: 600; }

/* ── Footer ── */
footer {
  background: #050505; color: rgba(255,255,255,0.3);
  padding: 24px 0; text-align: center; font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .nav-logo { font-size: 15px; }
  .product-image-thumbs img { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .product-image-thumbs img { width: 50px; height: 50px; }
}
