/* Modern Theme CSS */
:root {
  --theme-primary: #2563eb;
  --theme-secondary: #64748b;
  --theme-accent: #06b6d4;
  --theme-success: #10b981;
  --theme-danger: #ef4444;
  --theme-warning: #f59e0b;
  --theme-info: #06b6d4;
  --theme-background: #ffffff;
  --theme-text: #1e293b;
  --theme-border: #e2e8f0;
  --theme-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --theme-radius: 8px;
  --font-family-heading: 'Inter', sans-serif;
  --font-family-body: 'Inter', sans-serif;
}

/* Dark mode support */
[data-color-scheme="dark"] {
  --theme-background: #0f172a;
  --theme-text: #f1f5f9;
  --theme-border: #334155;
  --theme-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Base styles */
body {
  font-family: var(--font-family-body);
  background-color: var(--theme-background);
  color: var(--theme-text);
  line-height: 1.6;
}

/* Header styles */
.theme-header {
  background: var(--theme-background);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--theme-primary) !important;
}

.nav-link {
  color: var(--theme-text) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--theme-primary) !important;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  border-radius: var(--theme-radius);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--theme-primary) 80%, black);
  border-color: color-mix(in srgb, var(--theme-primary) 80%, black);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
  border-radius: var(--theme-radius);
  font-weight: 500;
}

/* Footer */
.theme-footer {
  background: var(--theme-background);
  border-top: 1px solid var(--theme-border);
  margin-top: auto;
}

.footer-main {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

[data-color-scheme="dark"] .footer-main {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.footer-bottom {
  background: var(--theme-primary);
  color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  color: var(--theme-text);
}

/* Forms */
.form-control {
  border-radius: var(--theme-radius);
  border: 1px solid var(--theme-border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

/* Modern accents */
.modern-accent {
  position: relative;
}

.modern-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
  border-radius: 2px;
}

/* Blog post styles */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-meta {
  color: var(--theme-secondary);
  font-size: 0.875rem;
}

.blog-tag {
  background: var(--theme-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}