/* ═══════════════════════════════════════════
   infotageed — Tageed Wiki Styles
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --accent: #FF9800;
  --bg: #0A0A0A;
  --card: #1A1A1A;
  --border: rgba(255,255,255,0.06);
  --text: #fff;
  --text-dim: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(255,87,34,0.3); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Page Container ─── */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ─── Headings ─── */
h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
h1 .subtitle,
p.subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 0.3rem;
}
h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 2rem 0 1rem;
  padding-right: 0.8rem;
  border-right: 3px solid var(--primary);
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.8rem;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
p { color: var(--text-dim); line-height: 1.9; font-size: 0.95rem; margin-bottom: 0.5rem; }
strong { color: var(--accent); }

/* ─── Lists ─── */
ul, ol {
  color: var(--text-dim);
  padding-right: 1.5rem;
  line-height: 2;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.3rem; }
li strong { color: var(--accent); }

/* ─── Tip Boxes ─── */
.tip, .tip-box {
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  line-height: 1.8;
  font-size: 0.9rem;
}
.tip .ic, .tip-box .ic { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.tip div, .tip-box div { flex: 1; }
.tip strong, .tip-box strong { display: block; margin-bottom: 0.2rem; }
.tip p, .tip-box p { margin: 0; color: inherit; }

.tip-blue { background: rgba(52,152,219,0.08); border: 1px solid rgba(52,152,219,0.15); color: rgba(255,255,255,0.7); }
.tip-green { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.15); color: rgba(255,255,255,0.7); }
.tip-amber { background: rgba(255,152,0,0.08); border: 1px solid rgba(255,152,0,0.15); color: rgba(255,255,255,0.7); }
.tip-red { background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.15); color: rgba(255,255,255,0.7); }

.tip-blue strong { color: #3498DB; }
.tip-green strong { color: #2ECC71; }
.tip-amber strong { color: #FF9800; }
.tip-red strong { color: #E74C3C; }

/* ─── Image Placeholder ─── */
.img-placeholder {
  background: linear-gradient(135deg, rgba(255,87,34,0.08), rgba(255,152,0,0.04));
  border: 2px dashed rgba(255,87,34,0.2);
  border-radius: var(--radius-sm);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.img-placeholder .ic { font-size: 2rem; }
img { max-width: 100%; border-radius: var(--radius-sm); margin: 1rem 0; }

/* ─── Steps ─── */
.steps-wrap { margin: 1rem 0; }
.step {
  position: relative;
  padding: 1rem 2rem 1rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.step .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.step .desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.step-timeline {
  position: relative;
  padding: 0;
}
.step-timeline .step {
  padding-right: 2.5rem;
  position: relative;
}
.step-timeline .step::before {
  content: '';
  position: absolute;
  right: 10px;
  top: 20px;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: rgba(255,87,34,0.2);
}
.step-timeline .step:last-child::before { display: none; }
.step-timeline .step::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: var(--primary);
  border: 2px solid var(--card);
}

/* ─── Tables ─── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.9rem;
}
th {
  background: linear-gradient(135deg, rgba(255,87,34,0.2), rgba(255,152,0,0.1));
  color: var(--accent);
  padding: 0.8rem 1rem;
  text-align: right;
  font-weight: 700;
}
td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
}
tr:last-child td { border-bottom: none; }

/* ─── Grids ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

/* ─── Flow Diagram ─── */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.flow-step {
  background: rgba(255,87,34,0.1);
  border: 1px solid rgba(255,87,34,0.15);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.flow-arrow { color: var(--text-muted); font-size: 1.2rem; }

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 4px;
}
.badge-required { background: rgba(231,76,60,0.15); color: #E74C3C; }
.badge-optional { background: rgba(46,204,113,0.15); color: #2ECC71; }
.badge-info { background: rgba(52,152,219,0.15); color: #3498DB; }

/* ─── Video ─── */
.video-section { margin: 1.5rem 0; }
.video-section h3 { margin-bottom: 0.8rem; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #111;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-desc {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.video-desc strong { color: var(--accent); display: block; margin-bottom: 0.2rem; }

/* ─── Section Card ─── */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.section-card:hover { border-color: rgba(255,87,34,0.2); }
.section-card .sc-icon {
  width: 44px; height: 44px;
  background: rgba(255,87,34,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.section-card .sc-body { flex: 1; }
.section-card .sc-body h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: #fff; }
.section-card .sc-body p { font-size: 0.82rem; margin: 0; }
.section-card .sc-link {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 2px;
}
.section-card .sc-link:hover { text-decoration: underline; }

/* ─── Homepage Hero ─── */
.wiki-hero {
  padding: 7rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,87,34,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,152,0,0.05) 0%, transparent 50%),
    #0A0A0A;
}
.wiki-hero .hero-logo { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 1rem; }
.wiki-hero h1 { font-size: 2.2rem; }
.wiki-hero p { font-size: 1rem; }
.hero-search {
  max-width: 400px;
  margin: 1.2rem auto 0;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 0.8rem 1.2rem 0.8rem 2.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--card);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search input:focus { border-color: rgba(255,87,34,0.4); }
.hero-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.hero-stats span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── Navbar ─── */
.navbar {
  width: 100%;
  background: #1A1A1A;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}
.navbar .logo img { width: 34px; height: 34px; border-radius: 10px; }
.navbar .logo em { color: #FF5722; font-style: normal; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF5722;
  transition: width 0.3s;
  border-radius: 2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* ─── Tabs ─── */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  margin-top: -0.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 999;
  background: #0A0A0A;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tab-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.tab-btn:hover { border-color: rgba(255,87,34,0.3); color: #fff; }
.tab-btn.active {
  background: linear-gradient(135deg, #FF5722, #FF9800);
  border-color: transparent;
  color: #fff;
}

/* ─── Guide Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,87,34,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.guide-card:hover .guide-card-icon { transform: scale(1.1) rotate(-6deg); }
.guide-card .guide-card-icon {
  width: 40px; height: 40px;
  background: rgba(255,87,34,0.1);
  border: 1px solid rgba(255,87,34,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  transition: transform 0.3s;
}
.guide-card .guide-card-icon.no-bg { background: none; border: none; }
.guide-card .guide-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.guide-card .guide-card-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── Welcome Grid ─── */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.welcome-main {
  background: linear-gradient(135deg, rgba(255,87,34,0.08), rgba(255,152,0,0.04));
  border: 1px solid rgba(255,87,34,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.welcome-main h3 { color: var(--accent); margin-bottom: 0.5rem; }
.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.welcome-steps .ws {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.welcome-steps .ws .num {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #FF5722, #FF9800);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.welcome-side {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.welcome-side .ws-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.3s;
}
.welcome-side .ws-card:hover { border-color: rgba(255,87,34,0.2); }
.welcome-side .ws-card .wsc-icon {
  width: 34px; height: 34px;
  background: rgba(255,87,34,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.welcome-side .ws-card .wsc-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* ─── Tab Content ─── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── All Section ─── */
.all-section {
  margin: 1rem 0;
}
.all-section .page {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* ─── Scroll to Top ─── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #FF5722, #FF9800);
  border: none;
  border-radius: 44px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,87,34,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s;
}
.scroll-top:hover { transform: scale(1.1); }
.scroll-top.visible { display: flex; }

/* ─── Loading ─── */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* ─── Footer ─── */
footer {
  width: 100%;
  background: #1A1A1A;
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer .links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
footer .links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
  font-weight: 500;
}
footer .links a:hover { color: #FF5722; }
footer p { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #2C3E50; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FF5722; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .wiki-hero { padding: 5rem 1rem 2rem; }
  .wiki-hero h1 { font-size: 1.5rem; }
  .page { padding: 1.5rem 1rem 2rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .welcome-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .tab-bar { gap: 0.3rem; top: 64px; }
  .tab-btn { font-size: 0.7rem; padding: 4px 12px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-search input { font-size: 0.8rem; padding: 0.7rem 1rem 0.7rem 2rem; }
}
