/* Modern Documentation Site Styles */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --navbar-height: 60px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navbar Enhancements */
.navbar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1rem;
  height: var(--navbar-height);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
  color: var(--accent-color) !important;
}

/* Main Content */
main.container {
  margin-top: calc(var(--navbar-height) + 0.25rem);
  margin-bottom: 3rem;
  min-height: calc(100vh - var(--navbar-height) - 8rem);
}

/* Header Styles */
.starter-template {
  text-align: center;
  padding: 0.5rem 0 0.5rem;
  margin-bottom: 1rem;
}

.starter-template h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.starter-template h5 {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.25rem;
}

hr {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 2rem 0;
}

/* Section Headers */
h5 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

/* List Group Enhancements */
.list-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.list-group-item {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.3s ease;
  padding: 0.875rem 1.25rem;
}

.list-group-item:hover {
  background: var(--bg-color);
  transform: translateX(5px);
  border-left: 3px solid var(--primary-color);
}

.list-group-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.list-group-item a:hover {
  color: var(--primary-color);
}

/* Card Improvements */
.card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  background: var(--card-bg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: none;
}

.card-body {
  padding: 1.5rem 1.25rem;
  color: var(--text-primary);
}

.card-body ul {
  margin-bottom: 0;
}

.card-body ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.card-body small {
  color: var(--text-secondary);
  font-style: italic;
}

.card-body code {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 8px;
  display: block;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.8;
  border-left: 4px solid var(--primary-color);
}

/* Accordion Buttons */
.btn-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.btn-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.btn-link small {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #cbd5e1;
  text-align: center; 
  margin-top: 4rem;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .starter-template h1 {
    font-size: 2rem;
  }
  
  .starter-template h5 {
    font-size: 1rem;
  }
  
  main.container {
    margin-top: calc(var(--navbar-height) + 1rem);
  }
  
  .card-body code {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}

/* Additional Utility Classes */
.badge-version {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-left: 0.5rem;
}

/* Link Styles */
a:not(.btn):not(.navbar-brand):not(.list-group-item a) {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:not(.btn):not(.navbar-brand):not(.list-group-item a):hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Collapse Animation Enhancement */
.collapse {
  transition: all 0.3s ease-in-out;
}

/* Loading Animation (optional, for future use) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}
