/* ============================================
   LetMeK - Custom Styles
   Bootstrap 5.3 Override & Extensions
   ============================================ */

/* ---------- Root Variables ---------- */
:root {
  --nh-primary: #0d6efd;
  --nh-primary-dark: #0a58ca;
  --nh-accent: #fd7e14;
  --nh-success: #198754;
  --nh-gradient-start: #0d6efd;
  --nh-gradient-end: #6610f2;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #212529;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.92) !important;
  transition: box-shadow 0.3s ease;
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: #495057 !important;
  transition: color 0.2s ease;
}

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

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-mockup {
  max-width: 380px;
  margin: 0 auto;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.mockup-screen {
  border: 1px solid #dee2e6;
  text-align: left;
}

.notification-item {
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  filter: brightness(0.95);
}

/* ---------- Features ---------- */
.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ---------- Step Numbers ---------- */
.step-number {
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* ---------- Pricing ---------- */
.card.border-primary {
  border-width: 2px !important;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.05);
  color: var(--nh-primary);
  font-weight: 600;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

/* ---------- CTA Section ---------- */
.bg-primary .btn-outline-light:hover {
  color: var(--nh-primary) !important;
}

/* ---------- Footer ---------- */
footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* ---------- Checkout Page ---------- */
.checkout-container {
  max-width: 500px;
}

#payment-element {
  margin-bottom: 1rem;
}

.stripe-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 12px 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-card:focus-within {
  border-color: var(--nh-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Stripe Element overrides */
.StripeElement {
  width: 100%;
}

.StripeElement--focus {
  outline: none;
}

.StripeElement--invalid {
  border-color: #dc3545 !important;
}

/* ---------- Admin Dashboard ---------- */
.sidebar {
  min-height: calc(100vh - 56px);
  background: #212529;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 0.375rem;
  padding: 0.6rem 1rem;
  margin-bottom: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.stat-card {
  border-left: 4px solid var(--nh-primary);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-label {
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-entities td,
.table-users td {
  vertical-align: middle;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25em 0.65em;
}

/* ---------- Modals ---------- */
.modal-content {
  border: none;
  border-radius: 1rem;
}

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

/* ---------- Toast / Alert ---------- */
.alert-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 450px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---------- Loading Spinner ---------- */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-mockup {
    transform: rotate(0);
    max-width: 300px;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .sidebar {
    min-height: auto;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }
}

/* ---------- Dark Mode Support (deneysel) ---------- */
@media (prefers-color-scheme: dark) {
  /* Placeholder for future dark mode */
}

/* ---------- Print ---------- */
@media print {
  .navbar, footer, .btn, #langSwitcher {
    display: none !important;
  }
}