/* ClawShield Pro - CSS */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-100);
}

/* Header */
header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-800);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
}

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

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-300, #d1d5db);
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

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

.tagline {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Features */
.features {
  background: white;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
  text-align: center;
}

.feature-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

/* Pricing */
.pricing {
  background: white;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
  text-align: center;
}

.pricing-card.featured {
  background: var(--primary);
  color: white;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-card li {
  padding: 0.5rem 0;
}

/* Auth */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
}

.auth-container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--gray-600);
}

/* Dashboard */
.dashboard h1 {
  margin-bottom: 1.5rem;
}

.usage-meter {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.usage-bar {
  height: 10px;
  background: var(--gray-200);
  border-radius: 5px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.usage-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s;
}

.new-scan-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.scan-history {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.scans-table {
  width: 100%;
  border-collapse: collapse;
}

.scans-table th,
.scans-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.scans-table th {
  background: var(--gray-100);
}

.no-scans {
  text-align: center;
  color: var(--gray-600);
  padding: 2rem;
}

/* Verdict badges */
.verdict {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.verdict-pass {
  background: #d1fae5;
  color: #065f46;
}

.verdict-warn {
  background: #fef3c7;
  color: #92400e;
}

.verdict-fail {
  background: #fee2e2;
  color: #991b1b;
}

.verdict-unknown {
  background: var(--gray-200);
  color: var(--gray-600);
}

.verdict-large {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Scan Detail */
.scan-detail {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
}

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.scan-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
}

.summary-item .label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.summary-item .value {
  font-weight: 500;
}

.scan-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.findings-section h2 {
  margin-bottom: 1rem;
}

.no-findings {
  text-align: center;
  padding: 2rem;
  color: var(--success);
  font-size: 1.25rem;
}

.severity-group {
  margin-bottom: 1.5rem;
}

.severity-group h3 {
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.severity-critical h3 { background: #fee2e2; color: #991b1b; }
.severity-high h3 { background: #fee2e2; color: #991b1b; }
.severity-medium h3 { background: #fef3c7; color: #92400e; }
.severity-low h3 { background: #e0e7ff; color: #3730a3; }
.severity-info h3 { background: var(--gray-200); color: var(--gray-600); }

.finding-card {
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.finding-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.finding-type {
  font-weight: 500;
}

.finding-file {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.finding-remediation {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Badge Generator */
.badge-generator {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
}

.badge-preview {
  text-align: center;
  margin-bottom: 2rem;
}

.badge-image {
  margin: 1rem 0;
}

.embed-code {
  margin-bottom: 2rem;
}

.code-block {
  margin-bottom: 1rem;
}

.code-block h3 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.code-block pre {
  background: var(--gray-100);
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

.badge-actions {
  display: flex;
  gap: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 0.5rem;
}

.error-page h1 {
  color: var(--danger);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .scan-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .scan-actions {
    flex-direction: column;
  }
}
