/* ============================================
   Brand Verification & Integrity System
   7slots-protection.tech — v1.0
   ============================================ */

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

:root {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-dark: #1e2a38;
  --bg-sidebar: #263243;
  --text-primary: #1e2a38;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #dbeafe;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #6366f1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: .2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

/* --- Layout --- */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar Navigation --- */
.sidebar {
  width: 260px;
  background: var(--bg-dark);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
}

.sidebar-logo .logo-text {
  font-size: .85rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.sidebar-logo .logo-text span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-light);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section-label {
  padding: .5rem 1.25rem;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  font-weight: 600;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  color: #94a3b8;
  font-size: .85rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.04);
}

.sidebar-nav a.active {
  color: #fff;
  background: rgba(59,130,246,.12);
  border-left-color: var(--accent);
}

.sidebar-nav a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .7rem;
  color: #475569;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Top Bar --- */
.topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: .85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-light); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.version-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--success);
}

.status-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
}

/* --- Page Content --- */
.page-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
}

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

.page-header h1 {
  margin-bottom: .4rem;
}

.page-header .page-desc {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 0;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.card-header .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-icon.blue { background: #dbeafe; color: #2563eb; }
.card-icon.green { background: #d1fae5; color: #059669; }
.card-icon.amber { background: #fef3c7; color: #d97706; }
.card-icon.red { background: #fee2e2; color: #dc2626; }
.card-icon.purple { background: #ede9fe; color: #7c3aed; }
.card-icon.slate { background: #e2e8f0; color: #475569; }

.card-header h3 {
  font-size: 1rem;
  margin: 0;
}

.card-header h3 small {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* --- Grid --- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Quick Action Buttons --- */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.action-btn-primary {
  background: var(--accent);
  color: #fff;
}
.action-btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.action-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.action-btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.action-btn-ghost {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.action-btn-ghost:hover {
  background: var(--border-light);
  border-color: var(--text-light);
  color: var(--text-primary);
}

/* --- Steps / Workflow --- */
.steps {
  counter-reset: step-counter;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-number {
  counter-increment: step-counter;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: .35rem;
  font-size: 1rem;
}

.step-content p {
  font-size: .875rem;
  margin-bottom: 0;
}

.step-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 auto;
}

/* --- Risk Levels --- */
.risk-card {
  border-left: 4px solid transparent;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.risk-card.low { border-left-color: var(--success); }
.risk-card.medium { border-left-color: var(--warning); }
.risk-card.high { border-left-color: var(--danger); }

.risk-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}

.risk-badge.low { background: #d1fae5; color: #065f46; }
.risk-badge.medium { background: #fef3c7; color: #92400e; }
.risk-badge.high { background: #fee2e2; color: #991b1b; }

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .35rem;
}

.form-group .helper {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.form-control {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}

/* --- Info Box --- */
.info-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.info-box.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.info-box.green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.info-box.amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.info-box.red { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.info-box .info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.data-table th, .data-table td {
  padding: .65rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--bg-primary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* --- Stat Cards --- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: .35rem;
}

.stat-card .stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* --- How It Works --- */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.how-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
}

.how-step .how-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto .85rem;
}

.how-step h4 {
  font-size: .95rem;
  margin-bottom: .35rem;
}

.how-step p {
  font-size: .8rem;
  margin-bottom: 0;
}

/* --- Timestamp Block --- */
.timestamp-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.timestamp-block .ts-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.timestamp-block .ts-item strong {
  color: var(--text-secondary);
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- Documentation Style --- */
.doc-section {
  margin-bottom: 2rem;
}

.doc-section h2 {
  font-size: 1.15rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.doc-section h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  margin-top: 1.25rem;
}

.doc-section ul, .doc-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc-section li {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}

.doc-section code {
  background: var(--bg-primary);
  padding: .15rem .4rem;
  border-radius: 3px;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* --- Contact Items --- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  transition: border-color var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
}

.contact-item .contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item .contact-info h4 {
  font-size: .9rem;
  margin-bottom: .1rem;
}

.contact-item .contact-info p {
  font-size: .8rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: .25rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 90;
}

/* --- 404 Page --- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.error-page .error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: .5rem;
}

.error-page h2 {
  margin-bottom: .5rem;
}

.error-page p {
  margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .page-content {
    padding: 1.25rem;
  }

  .topbar {
    padding: .75rem 1.25rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .timestamp-block {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }
}
