/* AI-Chip Plugin - Clean Design System */

/* ============================================================================
   CSS RESET & BASE
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.content {
  padding: 3rem;
}

.page-header {
  padding: 2rem 3rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
}

/* ============================================================================
   DIVIDERS
   ============================================================================ */

hr,
.divider {
  height: 1px;
  background: #e0e0e0;
  border: none;
  margin: 2rem 0;
}

/* ============================================================================
   LINKS & NAVIGATION
   ============================================================================ */

a {
  color: #ff6b35;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav-link {
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ff6b35;
  background: #fff8f6;
  text-decoration: none;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #e55a2b;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d0d0d0;
}

.btn-secondary:hover:not(:disabled) {
  background: #ebebeb;
  color: #333;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

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

label {
  display: block;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ============================================================================
   LISTS
   ============================================================================ */

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  color: #666;
  margin-bottom: 0.5rem;
}

.clean-list {
  list-style: none;
  padding-left: 0;
}

.clean-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

/* ============================================================================
   CODE BLOCKS
   ============================================================================ */

code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.85rem;
  color: #d63384;
}

pre {
  background: #1a1a1a;
  color: #10b981;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

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

/* ============================================================================
   CARDS & CONTAINERS
   ============================================================================ */

.option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

.option:hover {
  border-color: #ff6b35;
  background: #fff8f6;
}

.option.selected {
  border-color: #ff6b35;
  background: #fff8f6;
}

.info-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.success-box {
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  padding: 2rem 3rem;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff6b35;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .container {
    box-shadow: none;
  }
  
  .page-header,
  .content {
    padding: 2rem 1.5rem;
  }
  
  .footer {
    padding: 2rem 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}