/* Dark Help Center Theme - Based on Modern Bento Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* Import Tabler Icons */
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

/* Tabler Icons Base Style */
.ti {
  font-size: 1.25rem;
  vertical-align: middle;
}

.ti-lg {
  font-size: 1.5rem;
}

.ti-xl {
  font-size: 2rem;
}

.ti-2xl {
  font-size: 3rem;
}

/* CSS Variables */
:root {
  --primary: #137fec;
  --primary-hover: #1a8fff;
  --background-dark: #101922;
  --background-card: #1a2633;
  --border-color: #2a3a4a;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --slack-blue: #36C5F0;
  --slack-green: #2EB67D;
  --slack-red: #E01E5A;
  --slack-yellow: #ECB22E;
  --slack-purple: #4A154B;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(16, 25, 34, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header .container {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.header .logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Header Buttons */
.btn-primary {
  display: flex;
  height: 2.5rem;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.2);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  color: white;
}

.btn-secondary {
  display: none;
  height: 2.5rem;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #1e293b;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .btn-secondary {
    display: flex;
  }
}

.btn-secondary:hover {
  background: #334155;
  color: var(--text-primary);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(19, 127, 236, 0.3);
}

.button-primary:hover {
  filter: brightness(1.1);
}

.button-secondary {
  background: var(--background-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button-secondary:hover {
  background: #2a3a4a;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* Search */
.search-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.search,
.search-full {
  position: relative;
  display: flex;
  align-items: center;
}

.search input[type="search"],
.search-full input[type="search"] {
  width: 100%;
  height: 4rem;
  padding: 0 8rem 0 3.5rem;
  font-size: 1.125rem;
  background: var(--background-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.search input[type="search"]:focus,
.search-full input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(19, 127, 236, 0.2);
}

.search input[type="search"]::placeholder,
.search-full input[type="search"]::placeholder {
  color: var(--text-muted);
}

/* Search Icon */
.search::before,
.search-full::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Search Button */
.search input[type="submit"],
.search-full input[type="submit"] {
  position: absolute;
  right: 0.5rem;
  height: 3rem;
  padding: 0 2rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
}

.search input[type="submit"]:hover,
.search-full input[type="submit"]:hover {
  filter: brightness(1.1);
}

.search input[type="submit"]:focus,
.search-full input[type="submit"]:focus {
  box-shadow: none;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2 .ti {
  color: var(--primary);
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Role Selection Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .role-cards {
    grid-template-columns: 1fr;
  }
}

.role-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--background-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.role-card.active {
  border-color: var(--primary);
  background: rgba(19, 127, 236, 0.1);
}

.role-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.role-card.admin .role-card-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(19, 127, 236, 0.4);
}

.role-card.user .role-card-icon {
  background: var(--border-color);
  color: var(--text-secondary);
}

.role-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.role-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.role-card .cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Category Cards / Bento Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.category-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.category-card-icon.blue { background: rgba(54, 197, 240, 0.1); color: var(--slack-blue); }
.category-card-icon.red { background: rgba(224, 30, 90, 0.1); color: var(--slack-red); }
.category-card-icon.green { background: rgba(46, 182, 125, 0.1); color: var(--slack-green); }
.category-card-icon.yellow { background: rgba(236, 178, 46, 0.1); color: var(--slack-yellow); }
.category-card-icon.purple { background: rgba(74, 21, 75, 0.1); color: var(--slack-purple); }
.category-card-icon.primary { background: rgba(19, 127, 236, 0.1); color: var(--primary); }

.category-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.category-card ul {
  list-style: none;
}

.category-card ul li {
  margin-bottom: 0.5rem;
}

.category-card ul li a {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Categories List (Zendesk default) */
.categories-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-item {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.category-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.category-item a {
  color: var(--text-primary);
  display: block;
}

.category-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(19, 127, 236, 0.1);
  color: var(--primary);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

/* Category SVG Icons */
.category-icon {
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Rocket - Indigo */
.categories-list .category-item:nth-child(12n+1) .category-icon {
  background-color: rgba(99, 102, 241, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3'/%3E%3Cpath d='M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3'/%3E%3Cpath d='M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0'/%3E%3C/svg%3E");
}

/* Shield Lock - Green */
.categories-list .category-item:nth-child(12n+2) .category-icon {
  background-color: rgba(34, 197, 94, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3'/%3E%3Cpath d='M11 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0'/%3E%3Cpath d='M12 12l0 2.5'/%3E%3C/svg%3E");
}

/* Cash - Yellow */
.categories-list .category-item:nth-child(12n+3) .category-icon {
  background-color: rgba(251, 191, 36, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15h-3a1 1 0 0 1 -1 -1v-8a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v3'/%3E%3Cpath d='M7 10a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -8'/%3E%3Cpath d='M12 14a2 2 0 1 0 4 0a2 2 0 0 0 -4 0'/%3E%3C/svg%3E");
}

/* Puzzle - Pink */
.categories-list .category-item:nth-child(12n+4) .category-icon {
  background-color: rgba(236, 72, 153, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f472b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1'/%3E%3C/svg%3E");
}

/* Book - Cyan */
.categories-list .category-item:nth-child(12n+5) .category-icon {
  background-color: rgba(6, 182, 212, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2322d3d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6l0 13'/%3E%3Cpath d='M12 6l0 13'/%3E%3Cpath d='M21 6l0 13'/%3E%3C/svg%3E");
}

/* Settings - Orange */
.categories-list .category-item:nth-child(12n+6) .category-icon {
  background-color: rgba(249, 115, 22, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z'/%3E%3Cpath d='M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/%3E%3C/svg%3E");
}

/* Users - Purple */
.categories-list .category-item:nth-child(12n+7) .category-icon {
  background-color: rgba(168, 85, 247, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0 -3 -3.85'/%3E%3C/svg%3E");
}

/* Bulb - Lime */
.categories-list .category-item:nth-child(12n+8) .category-icon {
  background-color: rgba(132, 204, 22, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2384cc16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7'/%3E%3Cpath d='M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3'/%3E%3Cpath d='M9.7 17l4.6 0'/%3E%3C/svg%3E");
}

/* Chart - Rose */
.categories-list .category-item:nth-child(12n+9) .category-icon {
  background-color: rgba(244, 63, 94, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z'/%3E%3Cpath d='M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z'/%3E%3Cpath d='M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z'/%3E%3C/svg%3E");
}

/* Code - Sky */
.categories-list .category-item:nth-child(12n+10) .category-icon {
  background-color: rgba(14, 165, 233, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8l-4 4l4 4'/%3E%3Cpath d='M17 8l4 4l-4 4'/%3E%3Cpath d='M14 4l-4 16'/%3E%3C/svg%3E");
}

/* Database - Emerald */
.categories-list .category-item:nth-child(12n+11) .category-icon {
  background-color: rgba(16, 185, 129, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0'/%3E%3Cpath d='M4 6v6a8 3 0 0 0 16 0v-6'/%3E%3Cpath d='M4 12v6a8 3 0 0 0 16 0v-6'/%3E%3C/svg%3E");
}

/* Message - Amber */
.categories-list .category-item:nth-child(12n+0) .category-icon {
  background-color: rgba(245, 158, 11, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h6'/%3E%3Cpath d='M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z'/%3E%3C/svg%3E");
}

/* Articles List */
.articles-list {
  list-style: none;
}

.articles-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.articles-list li:last-child {
  border-bottom: none;
}

.articles-list li a {
  font-weight: 500;
}

.articles-list li .ti {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Status Bar */
.status-bar {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--slack-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text h4 {
  font-weight: 700;
}

.status-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.status-uptime {
  text-align: right;
}

.status-uptime .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-uptime .value {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--slack-green);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--background-card);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer h5 .ti {
  font-size: 1.25rem;
  color: var(--primary);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer ul li a .ti {
  font-size: 1rem;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Article Page */
.article-page {
  padding: 2rem 0;
}

.article {
  max-width: 800px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-body h2, .article-body h3, .article-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body code {
  background: var(--background-card);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.article-body pre {
  background: var(--background-card);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.article-vote {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-vote span {
  color: var(--text-secondary);
}

/* Comments */
.comments {
  margin-top: 3rem;
}

.comments h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.comment-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.comment-body {
  color: var(--text-secondary);
}

.comment-form {
  margin-top: 2rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Forms */
input, textarea, select {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-field {
  margin-bottom: 1.5rem;
}

/* Sections List */
.sections-list {
  list-style: none;
}

.section-item {
  margin-bottom: 2rem;
}

.section-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Requests Page */
.requests-list {
  list-style: none;
}

.requests-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.requests-list .status {
  padding: 0.25rem 0.75rem;
  background: var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.requests-list .date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Search Results */
.search-results-page {
  padding: 2rem 0;
}

.results-count {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.results-list {
  list-style: none;
}

.result-item {
  padding: 1.5rem;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.result-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-path {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

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

/* Error Page */
.error-page {
  padding: 4rem 0;
  text-align: center;
}

.error-page h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination a {
  background: var(--background-card);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: white;
}

/* User Profile */
.user-profile-page {
  padding: 2rem 0;
}

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

.user-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--background-card);
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Community Pages */
.posts-list, .topics-list {
  list-style: none;
}

.post-item, .topic-item {
  padding: 1.5rem;
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.post-item h3, .topic-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-meta, .topic-stats {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
