/* new_guide/style.css */
:root {
  /* Font & Utilities */
  --font-title: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Dark Theme (Default) */
  --bg-app: #090d16;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(24, 31, 48, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #0ea5e9;
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.15);
  --warning: #fbbf24;
  --warning-glow: rgba(251, 191, 36, 0.15);
  --danger: #f43f5e;
  --danger-glow: rgba(244, 63, 94, 0.15);
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 10px 20px -8px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(12px);
}

[data-theme="light"] {
  /* Light Theme */
  --bg-app: #f4f6fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(226, 232, 240, 0.8);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #0ea5e9;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.1);
  --danger: #e11d48;
  --danger-glow: rgba(225, 29, 72, 0.1);
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(79, 70, 229, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(79, 70, 229, 0.08), 0 10px 20px -8px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Mesh Background Gradient */
.bg-gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-gradient-mesh::before,
.bg-gradient-mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  will-change: filter;
  opacity: 0.12;
  transition: all var(--transition-normal);
}
.bg-gradient-mesh::before {
  background: var(--primary);
  top: -10%;
  right: -5%;
}
.bg-gradient-mesh::after {
  background: var(--accent);
  bottom: -10%;
  left: -5%;
}

/* Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-app);
  backdrop-filter: var(--glass-blur);
  transition: border-color var(--transition-normal);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 0.15rem 0.65rem;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}

.header-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
}

.nav-tab {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Icon Buttons */
.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur);
}
.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3.5rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-go {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Page Section & Cards */
.section {
  margin-bottom: 4.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-num {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Screenshot Wrapper */
.screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
}

.screenshot-browser-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  letter-spacing: 0.01em;
}

.screenshot-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.screenshot-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.01);
}

/* Steps List */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.step:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow), var(--shadow-sm);
  transform: translateY(-1px);
}

.step-num {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-glow);
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.12rem 0.5rem;
  margin-top: 0.6rem;
  margin-right: 0.35rem;
}
.tag-blue { color: var(--primary); background: var(--primary-glow); }
.tag-teal { color: var(--accent); background: rgba(14, 165, 233, 0.12); }
.tag-green { color: var(--success); background: var(--success-glow); }
.tag-warn { color: var(--warning); background: var(--warning-glow); }
.tag-danger { color: var(--danger); background: var(--danger-glow); }

/* Notice Box */
.notice-box {
  border-left: 4px solid var(--warning);
  background: var(--warning-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  backdrop-filter: var(--glass-blur);
}

.notice-box strong {
  color: var(--warning);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
  display: block;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Info Table Style (Inside manual content) */
.info-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.info-table th, .info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.info-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-weight: 600;
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table td strong {
  color: var(--primary-hover);
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3.5rem 0;
}

/* Visitor Counter: Type B (Minimal Inline Badge) */
.counter-b {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 30px;
  padding: 0.5rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  backdrop-filter: var(--glass-blur);
}

.counter-b-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.counter-b-item.today {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 1.25rem;
}

.counter-b-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.counter-b-item.today .counter-b-icon {
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.counter-b-item.total .counter-b-icon {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.counter-b span {
  color: var(--text-muted);
  font-weight: 500;
}

.counter-b strong {
  font-family: var(--font-title);
  color: var(--text-main);
  font-weight: 700;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3.5rem;
}
footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
footer a:hover {
  color: var(--primary-hover);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .app-container {
    padding: 0 1rem 3rem;
  }
  header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem 0;
  }
  .header-right {
    justify-content: space-between;
  }
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  .step {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.2rem;
  }
  .step-num {
    margin: 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
