/* Bootstrap Custom Styles for OKBike Mechanic */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --bg-primary: #ffffff;
  --text-primary: #212529;
  --bg-secondary: #f8f9fa;
  --border-color: #dee2e6;
  --accent-color: #0d6efd;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --text-primary: #ffffff;
  --bg-secondary: #2d2d2d;
  --border-color: #495057;
  --accent-color: #6610f2;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  line-height: 1.6;
}

/* Modern Card Styles */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  padding: 5rem 0;
  color: white;
  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 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
  background-size: cover;
}

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

/* Modern Buttons */
.btn {
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.4);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  transform: translateY(-0.125rem);
}

/* Navigation */
.navbar {
  background-color: var(--bg-primary) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color) !important;
}

/* Feature Cards */
.feature-card {
  height: 100%;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

/* App Screenshots */
.app-screenshot {
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
}

.app-screenshot:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-hover);
}

/* Forms */
.form-control {
  border-radius: 0.75rem;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-select {
  border-radius: 0.75rem;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* Social Icons */
.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-0.25rem);
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Dark theme specific adjustments */
[data-theme="dark"] .navbar {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .card {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-card {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .stat-card {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}