/* =============================================
   SNIPHUB — style.css
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #0F1117;
  --surface:  #1A1D2E;
  --card:     #1E2235;
  --border:   #2A2D45;
  --accent:   #00D4FF;
  --accent2:  #7C3AED;
  --text:     #E8EDF5;
  --muted:    #8B92B3;
  --success:  #10B981;
  --danger:   #EF4444;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}
.logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0F1117;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 4px 4px 18px;
  max-width: 480px;
  margin: 0 auto;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--accent);
  color: #0F1117;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ── SECTION HEADERS ─────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}
.see-all {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* ── TRENDING SLIDER ─────────────────────── */
.trending-section {
  padding: 40px 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-arrows {
  display: flex;
  gap: 8px;
}
.arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.trend-track-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.trend-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}
.trend-track:active { cursor: grabbing; }

.trend-slide {
  min-width: calc(33.333% - 14px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.trend-slide:hover { border-color: rgba(0,212,255,0.35); }

.trend-preview {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.trend-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.trend-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.trend-name {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-copies {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.trend-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, width 0.2s;
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* ── CATEGORY SCROLL ─────────────────────── */
/* دۆخی گشتی بەشی پۆلەکان */
.cat-scroll-wrap {
  overflow: hidden; /* سکرۆڵباری بنەڕەتی وێبەکە دەشارینەوە */
  border-radius: 14px;
}

.cat-scroll {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* جوڵەیەکی نەرم وەک سلايد شۆکە */
  cursor: grab;
  user-select: none;
}
.cat-scroll:active { cursor: grabbing; }

.cat-card {
  width: 120px; /* کەمێک قەبارەکەی جێگیر دەکەین بۆ ئەوەی حیساباتی ماتماتیکی دروست بێت */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
/* ── SNIPPETS SECTION ────────────────────── */
.snippets-section {
  padding: 8px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 10px 15px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-weight: 600;
  font-size: 0.70rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}
.tab:hover { color: var(--text); border-color: var(--text); }
.tab.active {
  border-color: #ff007f;
  color: #ff007f;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.5), inset 0 0 12px rgba(255, 0, 127, 0.2);
  background: rgba(255, 0, 127, 0.05);
}

/* ── SNIPPET GRID ────────────────────────── */
.snippet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.snippet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.snippet-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-2px);
}

.card-preview {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-bottom: 1px solid var(--border);
}


.card-body { padding: 14px 16px; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-title { font-size: 0.9rem; font-weight: 600; }
.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgba(124,58,237,0.15);
  color: #A78BFA;
  border: 1px solid rgba(124,58,237,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-actions { display: flex; gap: 8px; }
.btn-copy,
.btn-view {
  flex: 1;
  padding: 7px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-copy {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.25);
}
.btn-copy:hover { background: rgba(0,212,255,0.2); }
.btn-copy.copied {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border-color: rgba(16,185,129,0.3);
}
.btn-view {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-view:hover { color: var(--text); background: rgba(255,255,255,0.08); }

/* ── BUTTON PREVIEW STYLES ───────────────── */
.btn-neon {
  padding: 10px 24px; border-radius: 8px;
  border: 2px solid #00D4FF; background: transparent;
  color: #00D4FF; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; text-shadow: 0 0 8px #00D4FF;
  box-shadow: 0 0 14px rgba(0,212,255,0.4), inset 0 0 14px rgba(0,212,255,0.05);
  transition: all 0.3s;
}
.btn-neon:hover {
  background: #00D4FF; color: #0F1117;
  box-shadow: 0 0 28px rgba(0,212,255,0.7);
}
.btn-glass {
  padding: 10px 24px; border-radius: 12px;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); color: #fff;
  font-weight: 500; font-size: 0.88rem; cursor: pointer; transition: all 0.3s;
}
.btn-glass:hover {
  background: #00D4FF;
  color: #0F1117;
  box-shadow: 0 0 28px rgba(0,212,255,0.7);
}

.btn-gradient {
  padding: 10px 24px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  background-size: 200% 200%; color: #fff;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background-position 0.4s, transform 0.2s;
}
.btn-gradient:hover { background-position: right center; transform: scale(1.04); }


.btn-cyber-glass {
  padding: 12px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-cyber-glass:hover {
  border-color: #ff007f;
  color: #ff007f;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.5), inset 0 0 12px rgba(255, 0, 127, 0.2);
  background: rgba(255, 0, 127, 0.05);
}



.btn-neumorphic {
  padding: 10px 24px; border-radius: 10px; border: none;
  background: #1E2235; color: #8B92B3;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  box-shadow: 4px 4px 10px #0d0f1a, -4px -4px 10px #2f3350;
  transition: all 0.2s;
}
.btn-neumorphic:hover {
  box-shadow: 2px 2px 6px #0d0f1a, -2px -2px 6px #2f3350;
  color: var(--accent);
}

.btn-sweep {
  padding: 10px 24px; border-radius: 8px;
  border: 2px solid #7C3AED; background: transparent;
  color: #A78BFA; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; position: relative; overflow: hidden; transition: color 0.3s;
}
.btn-sweep::before {
  content: ''; position: absolute; inset: 0;
  background: #7C3AED; transform: translateX(-100%);
  transition: transform 0.3s; z-index: -1;
}
.btn-sweep:hover::before { transform: translateX(0); }
.btn-sweep:hover { color: #fff; }

.btn-3d {
  padding: 10px 24px; border-radius: 8px; border: none;
  background: #00D4FF; color: #0F1117; font-weight: 700;
  font-size: 0.88rem; cursor: pointer;
  box-shadow: 0 6px 0 #0098b8; transition: all 0.1s;
  transform: translateY(0);
}
.btn-3d:hover { transform: translateY(3px); box-shadow: 0 3px 0 #0098b8; }
.btn-3d:active { transform: translateY(6px); box-shadow: none; }

.btn-pill {
  padding: 10px 28px; border-radius: 100px; border: none;
  background: #10B981; color: #fff;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-pill:hover { opacity: 0.85; transform: scale(1.03); }

.btn-shimmer {
  padding: 10px 24px; border-radius: 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  border: 1px solid var(--border); color: var(--text);
  font-weight: 500; font-size: 0.88rem; cursor: pointer;
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.btn-icon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; border: none;
  background: #7C3AED; color: #fff;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background 0.2s;
}
.btn-icon:hover { background: #6D28D9; }

.btn-danger {
  padding: 10px 24px; border-radius: 8px;
  border: 2px solid #EF4444; background: transparent;
  color: #EF4444; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-danger:hover { 
  background: #transparent;
  color: #EF4444;
  box-shadow: 0 0 28px rgba(255, 0, 0, 1);
}

.btn-retro {
  padding: 10px 20px; border-radius: 0;
  border: 2px solid var(--text); background: transparent;
  color: var(--text); font-weight: 700; font-size: 0.78rem;
  cursor: pointer; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px; text-transform: uppercase; transition: all 0.2s;
}
.btn-retro:hover { background: var(--text); color: var(--bg); }

.btn-gradborder {
  padding: 10px 24px; border-radius: 8px;
  background: var(--card); color: var(--text);
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.btn-gradborder::before {
  content: ''; position: absolute; inset: -2px; border-radius: 10px;
  background: linear-gradient(135deg, #00D4FF, #7C3AED); z-index: -1;
  
}


/*Cards Preview */

.fx-glow-card {
  width: 100%; /* لێرەدا دەبێتە ١٠٠٪ بۆ ئەوەی بە تەواوی ناو باکسەکە بگرێت */
  max-width: 100%;
  padding: 16px;
  background: #13151f;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  text-align: left;
  box-sizing: border-box;
}
.fx-glow-card h3 {
  color: #00d4ff; 
  font-size: 0.95rem; 
  margin: 0 0 6px 0;
}
.fx-glow-card p {
  color: #94a3b8; 
  font-size: 0.75rem; 
  margin: 0; 
  line-height: 1.4;
}
.fx-glow-card:hover {
  border-color: #ff007f;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.25);
  transform: translateY(-3px);
}


/* Inputs */

.fx-input-group {
  position: relative;
  width: 100%;
  max-width: 220px;
}
.fx-input-neon {
  width: 100%;
  padding: 12px 14px;
  background: #1A1D2E;
  border: 1px solid #2A2D45;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
}
.fx-label-neon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8B92B3;
  font-size: 0.85rem;
  pointer-events: none;
  transition: all 0.3s ease;
}
.fx-input-neon:focus,
.fx-input-neon:valid {
  border-color: #00D4FF;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}
.fx-input-neon:focus ~ .fx-label-neon,
.fx-input-neon:valid ~ .fx-label-neon {
  top: 0;
  font-size: 0.72rem;
  color: #00D4FF;
  background: #0F1117;
  padding: 0 4px;
}

/* ── MODAL ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-weight: 600; font-size: 0.95rem; }
.modal-close {
  background: none; border: none;
  color: var(--muted); font-size: 1.4rem;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

.code-block {
  background: #0d0f1a;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #A8B4D0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
  max-height: 360px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.modal-copy-btn {
  padding: 9px 22px; border-radius: 8px;
  background: var(--accent); color: #0F1117;
  border: none; font-weight: 600;
  font-size: 0.875rem; cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer span { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 14px 18px; }
  .nav-links { display: none; }

  .hero { padding: 48px 18px 36px; }

  .trending-section,
  .categories-section,
  .snippets-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .trend-slide { min-width: calc(80% - 10px); }

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

@media (max-width: 480px) {
  .trend-slide { min-width: calc(90% - 10px); }
}

/* ── FOOTER MODERN STYLE ─────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  background: #090b0f; /* کەمێک تۆختر بۆ جیاکردنەوەی فووتەرەکە */
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between; /* دەقەکە دەخاتە چەپ و ئایکۆنەکان دەخاتە ڕاست */
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-text span {
  color: var(--accent);
  font-weight: 600;
}

/* ستایلی ئایکۆنەکانی خۆمان وەک ناو وێنەکە */
.site-socials {
  display: flex;
  gap: 12px;
}

.s-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ئەنیمەیشنی چوونە سەرەوە و درەوشانەوەی ڕەنگی براندەکان */
.s-link:hover {
  transform: translateY(-4px);
  color: #fff;
}

.s-link.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  box-shadow: 0 0 15px rgba(214, 36, 159, 0.4);
  border-color: transparent;
}

.s-link.facebook:hover {
  background: #1877F2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
  border-color: transparent;
}

.s-link.telegram:hover {
  background: #229ED9;
  box-shadow: 0 0 15px rgba(34, 158, 217, 0.4);
  border-color: transparent;
}

.s-link.github:hover {
  background: #24292e;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* بۆ مۆبایل - ئەگەر شاشەکە بچووک بوو بچنە ناوەڕاست */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


/* FONTS */

/* ناساندنی فۆنتی ڕابەر بۆ ئەوەی وێبگەرەکە بیدۆزێتەوە */
/* ناساندنی فۆنتەکە لە ڕێگەی لینکە ئۆنلاینەکەوە */
@font-face {
  font-family: 'Rabar';
  src: url('https://www.kurdfonts.com/dl/tmp/251338/Rabar_019.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* جێبەجێکردنی فۆنتەکە لەسەر پێشبینی کارتی فۆنت */
.fx-font-preview {
  font-family: 'Rabar', sans-serif !important;
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
}