/* ========================================
   MAIN.CSS - Common Styles (Redesigned)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #FF6B2C;
  --primary-dark: #e05520;
  --primary-light: #fff0ea;
  --primary-glow: rgba(255,107,44,0.18);
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --bg: #F2F3F7;
  --bg-card: #ffffff;
  --text-main: #1A1A2E;
  --text-muted: #7a7a9a;
  --text-light: #b0b0c8;
  --border: #e8e9f0;
  --border-strong: #d4d5e0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --navbar-height: 68px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --shadow: 0 8px 32px rgba(26,26,46,0.10);
  --shadow-card: 0 2px 16px rgba(26,26,46,0.07);
  --shadow-hover: 0 12px 40px rgba(26,26,46,0.14);
  --shadow-primary: 0 8px 24px rgba(255,107,44,0.28);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: 0.3s cubic-bezier(0.34,1.56,0.64,1);

  /* Desktop max widths */
  --content-max: 1140px;
  --card-max: 480px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(var(--navbar-height) + 20px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ---- Desktop Layout Wrapper ---- */
@media (min-width: 768px) {
  body {
    background: #e8eaf0;
    padding-bottom: 0;
  }
  .page-wrapper {
    max-width: var(--content-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    box-shadow: 0 0 80px rgba(0,0,0,0.12);
  }

  /* Desktop: hide bottom nav */
  .bottom-nav {
    display: none !important;
  }

  /* Desktop: expand header to show nav links */
  .top-header {
    justify-content: flex-start;
    gap: 0;
    padding: 0 28px;
  }
  .top-header .logo {
    margin-right: 36px;
    flex-shrink: 0;
  }

  /* Desktop nav inside header */
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex: 1;
  }

  .top-header .header-right {
    margin-left: auto;
  }

  /* Desktop nav item styles */
  .desktop-nav .nav-item {
    flex-direction: row;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    min-width: unset;
    transition: all var(--transition);
  }
  .desktop-nav .nav-item span {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
  }
  .desktop-nav .nav-item svg {
    width: 18px;
    height: 18px;
  }
  .desktop-nav .nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
  }
  .desktop-nav .nav-item.active {
    color: #fff;
    background: rgba(255,107,44,0.30);
  }
  .desktop-nav .nav-item.active::before {
    display: none;
  }
  .desktop-nav .nav-item.active span {
    font-weight: 700;
  }
}

/* Mobile: hide desktop nav */
.desktop-nav {
  display: none;
}

/* ---- Typography ---- */
h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.15; }
h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
p  { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }

/* ---- Top Header ---- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1E174A 0%, #2B2166 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

/* ---- Logo ---- */
.top-header .logo { display: flex; align-items: center; }
.top-header .logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.10));
  transition: all 0.3s ease;
}
.top-header .logo img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 18px rgba(255,107,44,0.32));
}

/* ---- Bottom Navbar ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 4px;
  box-shadow: 0 -6px 28px rgba(26,26,46,0.09);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 60px;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
}
.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-item span { font-size: 0.67rem; font-weight: 500; letter-spacing: 0.2px; }
.nav-item.active span { font-weight: 700; }

/* Active indicator dot */
.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 16px rgba(255,107,44,0.30);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); }
.btn-primary:active { transform: scale(0.97); background: var(--primary-dark); }
.btn-secondary {
  background: var(--bg);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  width: 100%;
}
.btn-secondary:hover { border-color: var(--border-strong); background: #fff; }
.btn-secondary:active { transform: scale(0.98); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  width: 100%;
}
.btn-outline:hover { background: var(--primary-light); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef9c3; color: #ca8a04; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ---- Section ---- */
.section { padding: 20px 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Form Fields ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,107,44,0.10);
}
.form-input::placeholder { color: var(--text-light); }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---- Page Content ---- */
.page-content { padding: 16px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Loading Spinner ---- */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 48px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Skeleton Loader ---- */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f1f5 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.25; }
.empty-state h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-main); }
.empty-state p { font-size: 0.85rem; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ---- No select on tap ---- */
.no-select { user-select: none; -webkit-user-select: none; }

/* ---- Ripple Effect ---- */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: scale(0);
  top: 50%; left: 50%;
  margin: -50px 0 0 -50px;
  pointer-events: none;
}
.ripple:active::after { animation: ripple-anim 0.4s ease-out; }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }


/* ========================================
   FINAL GAP FIX
   ======================================== */

/* Remove Extra Bottom Gap */
html,
body{
  margin:0;
  padding:0;
  overflow-x:hidden;
}

/* Body Bottom Space */
body{
  padding-bottom:78px !important;
}

/* Floating Bottom Navbar */
.bottom-nav{
  position:fixed !important;

  left:50%;
  bottom:10px;

  transform:translateX(-50%);

  width:calc(100% - 16px);
  max-width:390px;

  height:auto !important;

  display:flex;
  justify-content:space-around;
  align-items:center;

  padding:10px 6px !important;

  background:rgba(22,28,48,0.92) !important;

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  border:1px solid rgba(255,255,255,0.08);

  border-radius:24px;

  box-shadow:
    0 8px 30px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);

  z-index:9999;
}

/* Nav Items */
.bottom-nav .nav-item{
  position:relative;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:4px;

  min-width:60px;

  color:rgba(255,255,255,0.58) !important;

  text-decoration:none;

  font-size:0.66rem;
  font-weight:600;

  transition:all .25s ease;

  background:none !important;
}

/* Icons */
.bottom-nav .nav-item svg{
  width:20px;
  height:20px;
  stroke-width:2.2;
}

/* Active */
.bottom-nav .nav-item.active{
  color:#60a5fa !important;
}

/* Active Bubble */
.bottom-nav .nav-item.active::before{
  content:"";

  position:absolute;

  width:42px;
  height:42px;

  background:rgba(96,165,250,0.12);

  border-radius:14px;

  z-index:-1;

  top:50%;
  left:50%;

  transform:translate(-50%,-50%);
}

/* Remove Old Active Top Line */
.bottom-nav .nav-item.active::after{
  display:none !important;
}

/* ═══════════════════════════════════════
   FOOTER — Lovish Rental Hub
═══════════════════════════════════════ */
.lr-footer {
  position: relative;
  background: linear-gradient(180deg, #060f1e 0%, #091628 100%);
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

/* Top glow accent line */
.lr-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 2px;
  background: linear-gradient(90deg, transparent, #f97316, #8b5cf6, #f97316, transparent);
  border-radius: 999px;
  opacity: 0.85;
}

/* Bottom bar */
.lr-footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.lr-footer-bottom-bar p {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Jatin Brand Studio — fixed orange highlight */
.lr-footer-credit { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.lr-jatin-link {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.72rem;
  color: #f97316;
  letter-spacing: 0.4px;
}

/* Desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0 !important; }
  .lr-footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 40px 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding-bottom: 0 !important; }
  .bottom-nav { bottom: 0; }

  /* Footer bottom bar mein hi bottom nav ka space dedo */
  .lr-footer-bottom-bar {
    padding-bottom: 90px !important;
  }
}
