/* BrassHelm Design System Styles */
/* Extracted from styles.html for better maintainability */

body {
  background: #f5f7fa;
  padding: 0;
  margin: 0;
}

/* Top Navigation */
.top-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-title h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.nav-title p {
  font-size: 12px;
  opacity: 0.9;
  margin: 2px 0 0 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main Content */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
  font-size: 24px;
  color: #1a202c;
  margin: 0;
}

.section-description {
  font-size: 14px;
  color: #718096;
  margin-bottom: 24px;
}

/* Button Example Grid */
.button-grid {
  display: grid;
  gap: 24px;
}

.button-example {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.button-example:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.example-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.example-info p {
  font-size: 13px;
  color: #718096;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.usage-note {
  font-size: 12px;
  color: #667eea;
  background: #f8f9ff;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-weight: 500;
}

.example-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  position: relative;
}

.example-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Code block (hidden, for copying) */
.code-block {
  display: none;
}

/* State Demo Controls */
.state-controls {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e0e0e0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.state-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #718096;
}

.state-toggle input[type="checkbox"] {
  accent-color: #667eea;
  cursor: pointer;
}

.state-toggle label {
  cursor: pointer;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  border-left: 4px solid #48bb78;
}

.toast-icon {
  width: 20px;
  height: 20px;
  stroke: #48bb78;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
}

/* Tabs */
.tabs-container {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  background: #f8f9fa;
}

.tab {
  padding: 16px 32px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
  margin-bottom: -2px;
}

.tab:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.tab.active {
  color: #667eea;
  background: white;
  border-bottom-color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Toast container for live demos */
#demoToastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

#demoToastContainer .toast {
  pointer-events: all;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from {
    transform: translateX(450px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(450px);
    opacity: 0;
  }
}

@keyframes shrinkProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.toast.hiding {
  animation: slideOut 0.3s ease-out forwards;
}

/* Shimmer animation for skeleton loaders */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
