/* =========================================================
   LICENSE.CSS — UIverse License Page
   ========================================================= */

/* =========================
   HERO
========================= */
.license-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 60px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #ffffff 55%, #fff5ef 100%);
  border: 1px solid var(--card-border);
  text-align: center;
  color: #fff;
}

body.dark-mode .license-hero {
  background:
    linear-gradient(135deg, #1a1a1e 55%, #1e1714 100%);
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(235,104,53,0.08);
  border: 1px solid rgba(235,104,53,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}

.license-title {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.license-title span {
  background: linear-gradient(90deg, var(--accent), #ff9b73);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.license-desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* =========================
   HERO MINI CARDS
========================= */
.hero-license-cards {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition);
}

.hero-mini-card i {
  color: #00b894;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235,104,53,0.25);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

/* =========================
   LICENSE GRID
========================= */
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.license-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 30px;
  transition: all var(--transition);
}

.license-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
}

body.dark-mode .license-card:hover {
  box-shadow: 0 18px 34px rgba(0,0,0,0.3);
}

.license-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.license-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.allowed .license-icon {
  background: rgba(0,184,148,0.12);
  color: #00b894;
}

.restricted .license-icon {
  background: rgba(255,107,107,0.12);
  color: #ff6b6b;
}

.license-card-top h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.license-card-top p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.license-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.license-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-primary);
}

.allowed .license-list li i {
  color: #00b894;
}

.restricted .license-list li i {
  color: #ff6b6b;
}

/* =========================
   DETAILS SECTION
========================= */
.license-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.details-header {
  text-align: center;
}

.details-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.details-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--card-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
}

.detail-left i {
  color: var(--accent);
  width: 18px;
}

.detail-right {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
}

.success {
  background: rgba(0,184,148,0.12);
  color: #00b894;
}

.neutral {
  background: rgba(116,185,255,0.12);
  color: #0984e3;
}

.danger {
  background: rgba(255,107,107,0.12);
  color: #ff6b6b;
}

/* =========================
   CTA
========================= */
.license-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      #eb6835 0%,
      #d65c2b 45%,
      #6c5ce7 100%
    );
  color: #fff;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.license-cta h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 14px;
}

.license-cta p {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.license-cta .btn-primary {
  background: #fff;
  color: var(--accent);
}

.license-cta .btn-primary:hover {
  background: #f5f5f5;
}

.license-cta .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.license-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .license-grid {
    grid-template-columns: 1fr;
  }

  .license-hero {
    padding: 50px 28px;
  }

  .license-cta {
    padding: 54px 26px;
  }

}

@media (max-width: 600px) {

  .license-title {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .hero-license-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-mini-card {
    justify-content: center;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cta-buttons {
    flex-direction: column;
  }

}


.cta-glow{
  position:absolute;
  inset:auto;
  width:300px;
  height:300px;
  background:rgba(99,102,241,.3);
  filter:blur(120px);
}



/* ========== GLOBAL ENHANCEMENTS ========== */
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

/* smooth reveal animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.license-hero,
.license-grid,
.license-details,
.license-cta {
  animation: fadeUp 0.8s ease both;
}

/* HERO SECTION */
.license-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 55%, #fff5ef 100%);
  border: 1px solid var(--card-border);
  text-align: center;
  color: #111; /* fallback for light mode */
}

body.dark-mode .license-hero {
  background: linear-gradient(135deg, #1a1a1e 55%, #1e1714 100%);
  color: #fff; /* ensure text visible */
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(235,104,53,0.08);
  border: 1px solid rgba(235,104,53,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}

.license-title {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 18px;
  color: var(--text-primary, #fff); /* fallback white */
  text-shadow: 0 0 6px rgba(255,255,255,0.6); /* glow for visibility */
}

.license-title span {
  background: linear-gradient(90deg, var(--accent), #ff9b73);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.license-desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary, #e0e0e0); /* fallback light gray */
  font-size: 16px;
  line-height: 1.8;
}

/* HERO MINI CARDS */
.hero-license-cards {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 18px;
  background: var(--card-bg, #2a2a2a); /* fallback dark gray */
  border: 1px solid var(--card-border, #444);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  transition: all var(--transition);
}

.hero-mini-card i {
  color: #00b894;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235,104,53,0.25);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

/* LICENSE GRID */
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.license-card {
  background: var(--card-bg, #2a2a2a);
  border: 1px solid var(--card-border, #444);
  border-radius: 24px;
  padding: 30px;
  transition: all var(--transition);
  color: var(--text-primary, #fff);
}

.license-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.25);
}

.license-card-top h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary, #fff);
}

.license-card-top p {
  color: var(--text-secondary, #e0e0e0);
  font-size: 14px;
  margin: 0;
}

.license-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-primary, #f5f5f5);
}

/* RESPONSIVE FIXES */
@media (max-width: 992px) {
  .license-grid {
    grid-template-columns: 1fr;
  }
  .hero-license-cards {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-mini-card {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .license-title {
    font-size: 1.8rem;
  }
  .license-desc {
    font-size: 1rem;
  }
  .license-card {
    padding: 20px;
  }
}


/* ========== DETAILS BOX ========== */
.license-details {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.details-header {
  text-align: center;
  margin-bottom: 25px;
}

.section-tag {
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

.details-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: 0.2s;
}

.detail-row:hover {
  background: rgba(255,255,255,0.03);
}

.detail-right.success { color: #2ecc71; }
.detail-right.danger { color: #e74c3c; }
.detail-right.neutral { color: #f1c40f; }

/* ========== CTA IMPROVEMENT ========== */
.license-cta {
  margin: 80px 20px;
  padding: 60px 30px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,255,0.08));
  backdrop-filter: blur(10px);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-primary,
.btn-ghost {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: #6c63ff;
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
}

/* ========== FOOTER POLISH ========== */
.footer {
  padding-top: 60px;
}

.footer-col ul li a {
  opacity: 0.7;
  transition: 0.2s;
}

.footer-col ul li a:hover {
  opacity: 1;
  padding-left: 5px;
}

.faq-section {
  margin: 3rem auto;
  max-width: 800px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6); /* darker base for clarity */
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: #fff;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #00e0ff;
  text-shadow: 0 0 8px rgba(0,224,255,0.7); /* glow for visibility */
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #ffffff; /* pure white */
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
  text-shadow: 0 0 6px rgba(255,255,255,0.6); /* glow for visibility */
}

.faq-question:hover {
  background: rgba(0, 224, 255, 0.25);
  color: #00e0ff;
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
}

.faq-answer p {
  margin: 0.8rem 0;
  font-size: 1rem;
  color: #f5f5f5; /* brighter gray */
  line-height: 1.5;
}