/* ================================================
   ASTM A694 SPECIFICATIONS PAGE
   Glassmorphism Data Tables & Layouts
   ================================================ */

/* ── PAGE HERO ── */
.spec-hero {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.spec-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}
.spec-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, var(--bg) 80%);
}
.spec-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.spec-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── SPECIFICATIONS LAYOUT ── */
.spec-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Glass Panels for tables */
.spec-panel {
  background: rgba(8, 16, 32, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.spec-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  border-bottom: 1px solid var(--line-accent);
  padding-bottom: 16px;
}
.spec-panel-title svg {
  stroke: var(--accent-soft);
  width: 24px;
  height: 24px;
}

/* ── DATA TABLES (Glassmorphism) ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.05);
}
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}
.glass-table th, .glass-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  white-space: nowrap;
}
.glass-table th:first-child { border-top-left-radius: 8px; }
.glass-table th:last-child { border-top-right-radius: 8px; }

.glass-table tbody tr {
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.01);
}
.glass-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.05);
}
.glass-table td {
  color: var(--text-secondary);
  line-height: 1.6;
}
.glass-table td strong {
  color: var(--text);
  font-weight: 600;
}

/* ── TWO COLUMN LISTS ── */
.spec-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.spec-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.spec-list-item:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--line-accent);
  color: var(--text);
  transform: translateX(4px);
}
.spec-list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
  flex-shrink: 0;
}

/* ── TYPES OF FLANGES GRID ── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.type-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  text-align: left;
  transition: all 0.4s;
  cursor: pointer;
  background-color: var(--bg-card);
}
.type-card.has-bg {
  background-size: cover;
  background-position: center;
}
.type-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 28, 0.95) 0%, rgba(37, 99, 235, 0.4) 50%, rgba(6, 12, 28, 0.1) 100%);
  transition: all 0.4s;
  z-index: 1;
  mix-blend-mode: multiply;
}
.type-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 28, 1) 0%, transparent 60%);
  z-index: 2;
  transition: all 0.4s;
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(37,99,235,0.2);
  border-color: var(--accent);
}
.type-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(6, 12, 28, 0.9) 0%, rgba(37, 99, 235, 0.6) 100%);
}
.type-card .premium-title {
  position: relative;
  z-index: 3;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.type-card .view-text {
  position: relative;
  z-index: 3;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.type-card .view-text i {
  transition: transform 0.3s;
}
.type-card:hover .view-text i {
  transform: translateX(4px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .spec-panel { padding: 20px 16px; }
  .spec-panel-title { font-size: 18px; }
  .glass-table { font-size: 13px; }
  .glass-table th, .glass-table td { padding: 12px 14px; }
  .spec-hero h1 { font-size: 28px; }
}

/* ── HORIZONTAL PRODUCT GALLERY ── */
.gallery-section {
  padding: 60px clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-container {
  position: relative;
  width: 100%;
}
.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 4px 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.03);
}
.gallery-track::-webkit-scrollbar {
  height: 6px;
}
.gallery-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}
.gallery-track::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.gallery-card {
  flex: 0 0 clamp(290px, 35vw, 360px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.gallery-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 16, 0.95) 0%, rgba(2, 8, 16, 0.4) 60%, transparent 100%);
  z-index: 1;
}
.gallery-card-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}
.gallery-card-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.gallery-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover effects */
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 99, 235, 0.2);
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}

/* Placeholders */
.gallery-card--placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  gap: 16px;
  cursor: default;
}
.gallery-card--placeholder:hover {
  transform: none;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: none;
}
.placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 20px;
  transition: all 0.3s;
}
.gallery-card--placeholder:hover .placeholder-icon {
  color: var(--accent-soft);
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--line-accent);
}
.placeholder-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.placeholder-desc {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.4;
}

/* Adjustments for responsive mobile swipe indicator/help text */
.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -10px;
  margin-bottom: 24px;
}
.gallery-hint i {
  animation: swipeHint 1.5s infinite ease-in-out;
}
@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
