/* ========================================
   DTNR Download Page – Sand & Dust Theme
   ======================================== */

/* --- Language Toggle (i18n) --- */
html:not([lang="en"]) .i18n-en { display: none; }
html[lang="en"] .i18n-de { display: none; }

/* --- Nav User / Logout (shared with dashboard) --- */
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-user {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: var(--sand-light);
  opacity: 0.8;
}
.dash-logout-btn {
  background: transparent;
  border: 1px solid rgba(192, 90, 48, 0.4);
  color: var(--terracotta);
  padding: 5px 14px;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.dash-logout-btn:hover {
  background: rgba(192, 90, 48, 0.15);
}

/* --- Layout --- */


.dl-main {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 70vh;
}

.dl-header {
  text-align: center;
  margin-bottom: 56px;
}

.dl-header .section-tag {
  display: block;
  margin-bottom: 12px;
}

.dl-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0 0 16px;
}

.dl-desc {
  color: var(--white-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* --- Sections --- */
.dl-section {
  margin-bottom: 48px;
}

.dl-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sand);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dark-border);
}

/* --- Grid --- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* --- Cards --- */
.dl-card {
  position: relative;
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dl-card:hover {
  border-color: var(--sand);
  box-shadow: 0 0 24px rgba(212, 169, 84, 0.08);
}

.dl-card-primary {
  padding: 48px;
  text-align: center;
  align-items: center;
}

.dl-card-primary .dl-card-icon {
  font-size: 2rem;
  color: var(--sand);
  margin-bottom: 4px;
}

/* Glow on primary card */
.dl-card-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(212, 169, 84, 0.08) 0%,
    rgba(192, 90, 48, 0.04) 40%,
    transparent 60%
  );
  pointer-events: none;
}

.dl-card-icon {
  color: var(--sand);
  flex-shrink: 0;
}

.dl-card-body {
  flex: 1;
}

.dl-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 8px;
}

.dl-card-desc {
  font-size: 0.92rem;
  color: var(--white-muted);
  margin: 0 0 10px;
  line-height: 1.6;
}

.dl-card-meta {
  font-size: 0.82rem;
  color: var(--white-dim);
}

.dl-card-action {
  margin-top: auto;
}

.dl-btn {
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-card-primary {
    padding: 32px 20px;
  }

  .dl-card {
    padding: 24px 20px;
  }
}

/* --- License Hint --- */
.dl-license-hint {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(212, 169, 84, 0.06);
  border: 1px solid rgba(212, 169, 84, 0.15);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  color: var(--white-muted);
  line-height: 1.6;
  text-align: center;
}

.dl-license-icon {
  margin-right: 6px;
}

/* --- License FAQ --- */
.dl-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-faq-item {
  background: var(--dust-card);
  border: 1px solid var(--dust-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.dl-faq-item[open] {
  border-color: var(--sand);
}

.dl-faq-q {
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-faq-q::-webkit-details-marker {
  display: none;
}

.dl-faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--sand);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.dl-faq-item[open] .dl-faq-q::after {
  content: "−";
}

.dl-faq-a {
  padding: 0 24px 18px;
  font-size: 0.92rem;
  color: var(--white-muted);
  line-height: 1.7;
  margin: 0;
}
