/* ============================================================
   TuneX — extra.css
   Page-specific styles (features, ECUs, download, support, about)
   ============================================================ */

/* ===================== PAGE HERO (sub-pages) ===================== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.page-title em {
  color: var(--red-bright);
  font-weight: 700;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.6;
  margin: 0 auto;
}

/* ===================== DETAILED FEATURE CELLS ===================== */
.feature-cell.feature-detailed {
  padding: 40px 32px;
}

.feature-tags {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  background: var(--bg);
  border-radius: 3px;
}

/* ===================== PLATFORM GRID ===================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.platform-card {
  background: var(--bg-2);
  padding: 36px 32px;
  position: relative;
  transition: background var(--t-base);
}

.platform-card:hover {
  background: var(--bg-card);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.platform-icon {
  font-size: 32px;
  margin-bottom: 16px;
  filter: grayscale(0.2);
}

.platform-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===================== ECU SEARCH PAGE ===================== */
.ecu-controls {
  display: grid;
  grid-template-columns: 1fr 240px 240px auto;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: end;
}

.ecu-controls label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ecu-controls input,
.ecu-controls select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color var(--t-fast);
  border-radius: 4px;
}

.ecu-controls input:focus,
.ecu-controls select:focus {
  border-color: var(--red);
}

.ecu-controls .refresh-btn {
  white-space: nowrap;
  padding: 10px 16px;
}

.ecu-stats {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ecu-stats .num {
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.brand-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--t-fast);
  cursor: pointer;
  border-radius: 4px;
}

.brand-card:hover {
  border-color: var(--red);
  background: var(--bg-card);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
}

.brand-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
}

.ecu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ecu-table th {
  background: var(--bg-elev);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.ecu-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}

.ecu-table td:first-child {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.ecu-table tr:hover td {
  background: var(--bg-card);
}

/* ===================== DOWNLOAD PAGE ===================== */
.download-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
  text-align: center;
  border-radius: 8px;
}

.download-card::before, .download-card::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid var(--red);
}

.download-card::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}

.download-card::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.download-version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-name {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.download-meta .sep {
  color: var(--red);
}

.download-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.download-note .red {
  color: var(--red);
  font-weight: 700;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
  border-radius: 8px;
  overflow: hidden;
}

.req-cell {
  background: var(--bg-2);
  padding: 28px;
  position: relative;
}

.req-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.req-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.req-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
}

.version-history {
  margin-top: 64px;
}

.version-row {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.version-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.version-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.version-changes {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.version-changes ul {
  list-style: none;
  padding: 0;
}

.version-changes li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.version-changes li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===================== SUPPORT PAGE ===================== */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-fast);
  position: relative;
  border-radius: 8px;
}

.channel:hover {
  border-color: var(--red);
  background: var(--bg-card);
}

.channel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--red);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border-radius: 8px;
}

.channel-icon.whatsapp { background: rgba(37, 211, 102, 0.08); border-color: #25d366; color: #25d366; }
.channel-icon.email { background: var(--red-soft); }
.channel-icon.phone { background: var(--red-soft); }

.channel-content {
  flex: 1;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

.support-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  border-radius: 8px;
}

.support-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--red);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
  border-radius: 4px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--red);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-sans);
}

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--red);
  font-style: normal;
  transition: transform var(--t-fast);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base), margin-top var(--t-base);
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 14px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  margin-top: 14px;
}

/* ===================== ABOUT PAGE ===================== */
.about-block {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-block p strong {
  color: var(--text);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
  border-radius: 8px;
  overflow: hidden;
}

.value-cell {
  background: var(--bg-2);
  padding: 36px 32px;
  position: relative;
}

.value-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--red);
}

.value-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 700;
}

.value-cell h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.value-cell p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .platform-grid,
  .requirements,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecu-controls {
    grid-template-columns: 1fr 1fr;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }
  .platform-grid,
  .requirements,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .ecu-controls {
    grid-template-columns: 1fr;
  }
  .ecu-stats {
    flex-direction: column;
    gap: 8px;
  }
  .download-card {
    padding: 32px 20px;
  }
  .download-name {
    font-size: 40px;
  }
  .version-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .channel {
    padding: 16px 20px;
    gap: 14px;
  }
  .channel-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
