/* ============================================
   Ungoogle Sync - PPT-style Slide Guide
   ============================================ */

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

:root {
  --bg-color: #0f0f0f;
  --text-color: #e0e0e0;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --card-bg: #1a1a1a;
  --border-color: #2a2a2a;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   Slide Container
   ============================================ */

.slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 2rem;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  max-width: 720px;
  width: 100%;
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.slide-content.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   Slide Elements
   ============================================ */

.slide-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 2px;
}

.slide-indicator {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.title-gradient {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #a855f7);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.slide-content.center .divider {
  margin: 1rem auto 1.5rem;
}

.desc {
  color: #aaa;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0.5rem 0;
}

.slide-content.center .desc {
  margin: 0.5rem auto;
}

/* ============================================
   Step List
   ============================================ */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.step-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.step-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), #a855f7);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.step-text strong {
  font-size: 1rem;
  color: var(--text-color);
}

.step-text span {
  font-size: 0.9rem;
  color: #888;
}

.step-text code {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-color);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ============================================
   Tip Box
   ============================================ */

.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: #bbb;
}

.tip-icon {
  font-size: 1.1rem;
  min-width: 1.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #a855f7);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  margin: 0.5rem 0;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.final-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============================================
   Extension Grid
   ============================================ */

.ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.ext-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 1rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.ext-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.ext-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.ext-id {
  font-size: 0.75rem;
  color: #666;
  word-break: break-all;
  user-select: all;
}

.more-exts {
  margin: 0.75rem 0;
}

.more-exts summary {
  cursor: pointer;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

.more-exts summary:hover {
  color: #a855f7;
}

.ext-full-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ext-full-list .ext-item {
  padding: 0.5rem 0.75rem;
}

.ext-full-list .ext-item code {
  font-size: 0.7rem;
}

/* ============================================
   ID List (Expandable)
   ============================================ */

.id-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.id-line {
  display: block;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.78rem;
  color: var(--accent-color);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  user-select: all;
  line-height: 1.4;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.id-line:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}

/* ============================================
   Keyboard Hint
   ============================================ */

.keyboard-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 10;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .slide {
    padding: 0.75rem;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .title-gradient {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

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

  .ext-full-list {
    grid-template-columns: 1fr;
  }

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

  .nav-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .final-links {
    flex-direction: column;
  }

  .final-links .btn {
    width: 100%;
    justify-content: center;
  }
}
