/* Reddit Creator Manager - Onboarding Guide Styles */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: #242424;
  --bg-hover: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-orange: #f97316;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;
  --border-color: #333333;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

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

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 0;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 40px;
  max-width: calc(100% - 260px);
}

/* Navigation */
.nav-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.nav-logo h1 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.nav-logo span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.nav-section {
  padding: 0 12px;
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background-color: var(--accent-blue);
  color: var(--text-primary);
}

.nav-icon {
  width: 20px;
  text-align: center;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-icon.blue { background-color: rgba(59, 130, 246, 0.2); }
.card-icon.green { background-color: rgba(34, 197, 94, 0.2); }
.card-icon.orange { background-color: rgba(249, 115, 22, 0.2); }
.card-icon.purple { background-color: rgba(168, 85, 247, 0.2); }

/* Screenshots */
.screenshot {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin: 24px 0;
  background-color: var(--bg-secondary);
}

.screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.screenshot-placeholder {
  color: var(--text-muted);
}

.screenshot-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.screenshot-placeholder p {
  margin: 0;
  font-size: 0.875rem;
}

.screenshot-placeholder .filename {
  font-family: monospace;
  color: var(--accent-blue);
  margin-top: 8px;
}

/* Lists */
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 48px;
  padding-bottom: 24px;
  border-left: 2px solid var(--border-color);
  margin-left: 16px;
}

.steps li:last-child {
  border-left: none;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--accent-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Callouts */
.callout {
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin: 24px 0;
  display: flex;
  gap: 12px;
}

.callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
}

.callout-content p {
  margin: 0;
}

.callout-content strong {
  color: var(--text-primary);
}

.callout.tip {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.callout.note {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.callout.warning {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.callout.danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.admin { background-color: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.badge.operator { background-color: rgba(249, 115, 22, 0.2); color: var(--accent-orange); }
.badge.creator { background-color: rgba(34, 197, 94, 0.2); color: var(--accent-green); }

/* Code */
code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent-purple);
}

pre {
  background-color: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 16px 0;
}

pre code {
  padding: 0;
  background: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Quick Start Cards */
.quick-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.quick-start-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.quick-start-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.quick-start-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.quick-start-card h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.quick-start-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.feature-item .icon {
  color: var(--accent-green);
  font-size: 1.25rem;
}

.feature-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--accent-blue);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  z-index: 1000;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .screenshot, .callout {
  animation: fadeIn 0.3s ease-out;
}
