/* NOOWIA Design System - Premium Modern */
:root {
  /* Colors - Light Theme */
  --primary: #2563EB;
  /* Royal Blue */
  --primary-dark: #1E40AF;
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --danger: #EF4444;
  --gold: #F59E0B;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Spacing */
  --header-height: 70px;
}

/* Dark Mode Override */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flex-1 {
  flex: 1;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.input-group:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.input-group input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  flex: 1;
  color: var(--text-main);
  outline: none;
}

.input-group .icon {
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* Header */
.app-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Hero / Landing */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-body) 100%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Badge */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.premium {
  background: var(--gold);
  color: black;
}

.badge.verified {
  background: #E0F2FE;
  color: #0284C7;
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mobile-only-icon {
  display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 1rem;
    max-width: 100% !important;
  }

  .row {
    flex-wrap: wrap;
  }

  .row.no-wrap-mobile {
    flex-wrap: nowrap;
  }

  .col-mobile {
    flex-direction: column;
    width: 100%;
  }

  .hidden-mobile {
    display: none !important;
  }

  .w-100-mobile {
    width: 100% !important;
  }

  .show-mobile {
    display: inline-flex !important;
  }

  .hide-desktop {
    display: none !important;
  }

  .mobile-only-icon {
    display: inline-flex !important;
  }

  .text-center-mobile {
    text-align: center !important;
  }

  .mt-1-mobile {
    margin-top: 0.25rem !important;
  }

  .mt-2-mobile {
    margin-top: 0.5rem !important;
  }

  .mt-4-mobile {
    margin-top: 1rem !important;
  }

  /* Buttons on mobile */
  .btn.mobile-full {
    width: 100%;
    justify-content: center;
  }

  /* Font adjustments */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }
}

/* Toggle Switch */
.switch-container {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
  background-color: var(--success);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--success);
}

input:checked+.slider:before {
  transform: translateX(24px);
}


/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+span::before {
  /* This targets the slider if structured as input + span(slider) */
  /* But our HTML structure is: input + span (text) ?? No, wait. */
  /* Structure in home.php: label.switch > input + span(text) */
  /* Wait, standard toggle usually has an empty span for the slider. */
  /* In home.php I have: <label class="switch"> <input> <span>Text</span> </label> */
  /* This is WRONG for a pure CSS toggle without correct markup. */
  /* I need to adjust home.php OR make this CSS work with the existing markup. */
  /* Better: Update home.php to standard toggle structure OR use a "Checkbox that looks like a toggle" */
}

/* Let's fix home.php structure first, OR use a simpler "Switch" style that works on the input directly via appearance? No, inconsistent. */
/* Let's Try to target the INPUT directly if possible, or add a proper slider span in home.php */