
/* Custom CSS Variables */
:root {
  --primary: #e02729;
  --secondary: #f8f8f8;
  --text-color: #333333;
  --background: #ffffff;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
}

.dark {
  --primary: #f43f5e;
  --secondary: #1f2937;
  --text-color: #f9fafb;
  --background: #0f172a;
  --muted: #9ca3af;
  --card-bg: #1e293b;
  --card-border: #334155;
}

/* Base Styles */
body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem;
  transition: background-color 0.3s;
}

/* Footer */
.footer {
  background-color: var(--background);
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
  transition: background-color 0.3s;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid currentColor;
  color: var(--primary);
}

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

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

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

/* Page transitions */
.page {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Theme toggle */
.theme-toggle {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--secondary);
}

/* Section heading */
.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading .heading-line {
  height: 0.25rem;
  width: 33%;
  background-color: var(--primary);
  margin-top: 0.5rem;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-active {
  background-color: #def7ec;
  color: #057a55;
}

.badge-closed {
  background-color: #fde8e8;
  color: #e02424;
}

.dark .badge-active {
  background-color: #065f46;
  color: #d1fae5;
}

.dark .badge-closed {
  background-color: #7f1d1d;
  color: #fee2e2;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  background-color: var(--background);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Tabs */
.tab-btn {
  border-color: transparent;
  color: var(--muted);
}

.tab-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-content {
  display: none;
}

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

/* Hover card effect */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button transition */
.button-transition {
  transition: all 0.3s ease;
}

.button-transition:hover {
  transform: translateY(-2px);
}
