/* ===================================================
   GUIDELINES.CSS — UIverse Guidelines Page
   Import AFTER style.css AND home.css
   =================================================== */

   
/* ============================================================
   HERO
   ============================================================ */
.gl-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  overflow: hidden;
  position: relative;
}

.gl-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(235,104,53,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.gl-hero-left { flex: 1; min-width: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; }

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 28px;
}

/* Quick-jump pills */
.gl-toc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--body-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.gl-pill:hover { border-color: var(--accent); color: var(--accent); }

/* Hero right — stats */
.gl-hero-right { flex-shrink: 0; }

.gl-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gl-stat {
  background: var(--body-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gl-stat-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.gl-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.gl-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

/* ============================================================
   STICKY TOC
   ============================================================ */
.gl-toc {
  position: sticky;
  top: calc(var(--navbar-h, 64px) + 20px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.gl-toc-heading {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gl-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gl-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.gl-toc-link:hover { color: var(--accent); background: rgba(235,104,53,0.06); border-left-color: rgba(235,104,53,0.4); }
.gl-toc-link.active { color: var(--accent); background: rgba(235,104,53,0.08); border-left-color: var(--accent); font-weight: 600; }

.gl-toc-num {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: #aaa;
  min-width: 20px;
}

.gradient-generator {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 2rem;
  margin: 3rem 0;
  backdrop-filter: blur(20px);
}

.gradient-preview {
  height: 260px;
  border-radius: 20px;
  margin: 1.5rem 0;
  background: linear-gradient(
    135deg,
    #7c3aed,
    #06b6d4
  );
}

.gradient-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.control-group input[type="color"] {
  width: 70px;
  height: 45px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.control-group input[type="range"] {
  width: 220px;
}

.gradient-output {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gradient-output textarea {
  flex: 1;
  min-height: 100px;
  border-radius: 12px;
  padding: 1rem;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  resize: none;
}

#copyGradient {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.gl-toc-link.active .gl-toc-num { color: var(--accent); }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.gl-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   SECTION
   ============================================================ */
.gl-section {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 48px 0;
  border-bottom: 1px solid var(--card-border);
  scroll-margin-top: calc(var(--navbar-h, 64px) + 24px);
  animation: fadeUp 0.4s ease both;
}

.reading-progress{
position:fixed;
top:0;
left:0;
width:100%;
height:4px;
z-index:9999;
}

.progress-bar{
height:100%;
width:0%;
background:linear-gradient(
90deg,
#7c3aed,
#06b6d4
);
}

.gl-section:last-child { border-bottom: none; padding-bottom: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section icon */
.gl-section-icon {
  width: 46px;
  height: 46px;
  background: rgba(235,104,53,0.08);
  border: 1px solid rgba(235,104,53,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.accent-icon {
  background: linear-gradient(135deg, rgba(235,104,53,0.15), rgba(108,92,231,0.12));
  border-color: rgba(108,92,231,0.25);
  color: #6c5ce7;
}

/* Section body */
.gl-section-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gl-section-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  opacity: 0.7;
}

.gl-section-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.gl-section-body h3.gl-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0 0;
}

.gl-section-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   INLINE CODE
   ============================================================ */
.gl-inline-code {
  background: rgba(235,104,53,0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   CODE BLOCK
   ============================================================ */
.gl-code-block {
  background: #0f1117;
  color: #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  font-family: 'Fira Code', 'Courier New', monospace;
  border: 1px solid #2a2a2a;
  white-space: pre;
}

.gl-code-block code { background: none; padding: 0; font-size: inherit; }

/* ============================================================
   CALLOUTS
   ============================================================ */
.gl-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.gl-callout i { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.gl-callout p { font-size: 14px; line-height: 1.6; margin: 0; }

.gl-callout-info {
  background: rgba(9,132,227,0.08);
  border: 1px solid rgba(9,132,227,0.25);
  border-left: 4px solid #0984e3;
}
.gl-callout-info i { color: #0984e3; }

.gl-callout-tip {
  background: rgba(0,184,148,0.08);
  border: 1px solid rgba(0,184,148,0.25);
  border-left: 4px solid #00b894;
}
.gl-callout-tip i { color: #00b894; }

.gl-callout-warning {
  background: rgba(253,203,110,0.1);
  border: 1px solid rgba(253,203,110,0.3);
  border-left: 4px solid #fdcb6e;
}
.gl-callout-warning i { color: #d98e00; }
.gl-callout-warning p { color: var(--text-primary); }

/* ============================================================
   STEPS
   ============================================================ */
.gl-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gl-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
}

.gl-step:last-child { border-bottom: none; }

.gl-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(235,104,53,0.1);
  border: 2px solid rgba(235,104,53,0.3);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gl-step-github {
  background: rgba(108,92,231,0.1);
  border-color: rgba(108,92,231,0.3);
  color: #6c5ce7;
  font-size: 15px;
}

.gl-step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.gl-step-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ============================================================
   COLOUR GRID
   ============================================================ */
.gl-colour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.gl-colour-swatch {
  border-radius: var(--radius-sm);
  padding: 36px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform var(--transition);
}

.gl-colour-swatch:hover { transform: translateY(-3px); }

.gl-colour-swatch span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.gl-colour-swatch small {
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   TYPOGRAPHY TABLE
   ============================================================ */
.gl-type-table {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gl-type-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 2fr;
  gap: 0;
}

.gl-type-row > span {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  line-height: 1.5;
}

.gl-type-row > span:last-child { border-right: none; }
.gl-type-row:last-child > span { border-bottom: none; }

.gl-type-header > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: var(--body-bg);
}

.gl-mono {
  font-family: 'Fira Code', monospace;
  font-size: 12px !important;
  color: var(--accent) !important;
}

/* ============================================================
   TOKEN GRID
   ============================================================ */
.gl-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gl-token-card {
  background: var(--body-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.gl-token-preview {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, rgba(235,104,53,0.2), rgba(108,92,231,0.15));
  border: 1px solid var(--card-border);
}

.gl-token-card code {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(235,104,53,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.gl-token-card span { font-size: 11px; color: var(--text-secondary); }

/* ============================================================
   NAMING RULES
   ============================================================ */
.gl-rule-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gl-rule {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gl-rule-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.gl-rule-do { background: rgba(0,184,148,0.12); color: #00b894; }

.gl-rule h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.gl-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gl-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gl-badge-do   { background: rgba(0,184,148,0.12); color: #00b894; }
.gl-badge-dont { background: rgba(214,48,49,0.1);  color: #d63031; }

.gl-mini-code {
  background: #0f1117;
  color: #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  font-family: 'Fira Code', monospace;
  margin: 0;
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  white-space: pre;
}

/* ============================================================
   ACCESSIBILITY CHECKLIST
   ============================================================ */
.gl-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gl-check-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--card-border);
}

.gl-check-item:last-child { border-bottom: none; }

.gl-check-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,184,148,0.1);
  border: 1.5px solid rgba(0,184,148,0.35);
  color: #00b894;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gl-check-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.gl-check-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.gl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gl-faq-item {
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: background var(--transition);
}

.gl-faq-item:last-child { border-bottom: none; }
.gl-faq-item:hover { background: rgba(235,104,53,0.03); }

.gl-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  gap: 12px;
}

.gl-faq-icon {
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.gl-faq-item.open .gl-faq-icon { transform: rotate(180deg); color: var(--accent); }
.gl-faq-item.open .gl-faq-q { color: var(--accent); }

.gl-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}

.gl-faq-item.open .gl-faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

.gl-faq-a p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.gl-cta {
  margin-top: 8px;
  background: linear-gradient(130deg, #eb6835 0%, #6c5ce7 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gl-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.gl-cta-inner { position: relative; z-index: 1; }

.gl-cta h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}

.gl-cta p { font-size: 15px; opacity: 0.85; margin: 0 0 24px; }

.gl-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.gl-cta-primary {
  background: #fff;
  color: var(--accent);
}
.gl-cta-primary:hover { background: #f5f5f5; transform: translateY(-2px); }

.gl-cta-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.gl-cta-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ============================================================
   LINK STYLE
   ============================================================ */
.gl-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gl-link:hover { opacity: 0.8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .gl-layout { grid-template-columns: 1fr; }
  .gl-toc { display: none; }
}

@media (max-width: 768px) {
  .gl-hero { flex-direction: column; padding: 32px 24px; }
  .gl-hero-right { display: none; }

  .gl-section { grid-template-columns: 1fr; gap: 12px; }
  .gl-section-icon { display: none; }

  .gl-do-dont { grid-template-columns: 1fr; }
  .gl-type-row { grid-template-columns: 1fr 1fr; }
  .gl-type-row > span:nth-child(3),
  .gl-type-row > span:nth-child(4) { display: none; }

  .gl-colour-grid { grid-template-columns: repeat(3, 1fr); }
  .gl-cta { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .gl-toc-pills { flex-direction: column; }
  .gl-stats-grid { grid-template-columns: 1fr 1fr; }
  .gl-colour-grid { grid-template-columns: repeat(2, 1fr); }
  .gl-rule { flex-direction: column; }
}

/* =========================
   SECTION HEADER
========================= */

.section-heading{
  text-align:center;
  max-width:700px;
  margin:auto auto 70px;
}

.section-badge{
  display:inline-block;
  padding:10px 20px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#7c5cff;
  font-size:.9rem;
  margin-bottom:18px;
}

.section-heading h2{
  font-size:clamp(2rem,5vw,3.5rem);
  margin-bottom:18px;
}

.section-heading p{
  color:#9ca3af;
  line-height:1.8;
}

/* =========================
   GRID
========================= */

.guideline-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

/* =========================
   CARD
========================= */

.guide-card{
  position:relative;
  overflow:hidden;
  padding:35px;
  border-radius:28px;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);

  transition:.4s ease;
}

.guide-card:hover{
  transform:translateY(-12px);
  border-color:#7c5cff;
  box-shadow:0 25px 50px rgba(124,92,255,.25);
}

.guide-number{
  position:absolute;
  top:18px;
  right:20px;

  font-size:4rem;
  font-weight:800;

  color:rgba(255,255,255,.05);
}

.guide-icon{
  width:70px;
  height:70px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:20px;

  background:linear-gradient(
    135deg,
    #7c5cff,
    #00d4ff
  );

  color:white;
  font-size:1.5rem;

  margin-bottom:25px;
}

.guide-card h3{
  margin-bottom:15px;
  font-size:1.4rem;
}

.guide-card p{
  color:#a1a1aa;
  line-height:1.8;
  margin-bottom:20px;
}

.guide-card ul{
  list-style:none;
}

.guide-card li{
  padding:10px 0;
  color:#e5e7eb;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* =========================
   TIMELINE
========================= */

.workflow{
  margin-top:120px;
}

.timeline{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.step{
  text-align:center;
  padding:35px;
  border-radius:24px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);

  transition:.3s;
}

.step:hover{
  transform:translateY(-8px);
}

.step span{
  width:65px;
  height:65px;

  display:flex;
  align-items:center;
  justify-content:center;

  margin:auto auto 18px;

  border-radius:50%;

  background:linear-gradient(
    135deg,
    #7c5cff,
    #00d4ff
  );

  color:white;
  font-size:1.2rem;
  font-weight:700;
}

.step h4{
  font-size:1.1rem;
}