/*==========================================================
   RAEBARELI LOCAL MARKETPLACE - THEME V7
   Works WITH Bootstrap - not against it
==========================================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1a56db;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #6b7280;
  --success: #059669;
  --info: #0891b2;
  --warning: #d97706;
  --danger: #dc2626;
  --dark: #111827;
  --darker: #0f172a;
  --light: #f9fafb;
  --gradient-primary: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/*===== ANNOUNCEMENT BAR =====*/
.announcement-bar {
  background: var(--gradient-primary);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

/*===== TOP HEADER =====*/
.top-header {
  background: var(--darker);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 6px 0;
}
.top-header a { color: rgba(255,255,255,0.7); }
.top-header a:hover { color: #fff; }
.weather-mini i { color: var(--warning); }
.weather-mini .temp { font-weight: 600; color: #fff; }

/*===== MAIN HEADER =====*/
.main-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.main-header.scrolled { box-shadow: var(--shadow-md); }
.main-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { background: rgba(26,86,219,0.08); color: var(--primary); }
.btn-header {
  padding: 7px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-header-primary { background: var(--primary); color: #fff; border: none; }
.btn-header-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-header-outline { background: transparent; color: var(--dark); border: 1.5px solid #e5e7eb; }
.btn-header-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Notification Bell */
.notif-bell { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.notif-bell:hover { background: #f3f4f6; }
.notif-badge {
  position: absolute; top: 2px; right: 2px; background: var(--danger);
  color: #fff; font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/*===== HERO SECTION =====*/
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,64,175,0.7) 50%, rgba(0,0,0,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 40px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15); padding: 6px 18px;
  border-radius: var(--radius-full); font-size: 13px; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title span { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: clamp(14px, 1.3vw, 17px); opacity: 0.85; max-width: 600px; margin-bottom: 24px; }

/* Hero Search */
.hero-search-box {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  max-width: 680px;
  margin-bottom: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.hero-search-box .input-group { flex-wrap: nowrap !important; }
.hero-search-box .form-control {
  border: none; padding: 14px 16px; font-size: 15px;
  box-shadow: none !important;
}
.hero-search-box .btn {
  padding: 12px 28px; border-radius: 10px !important; font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .hero-search-box .btn { width: 100%; margin-top: 4px; }
  .hero-search-box .input-group { flex-wrap: wrap !important; }
}

/* Quick Links */
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 13px; font-weight: 500;
}
.quick-link:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Weather Hero */
.weather-hero-widget {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 14px 22px;
  display: inline-flex; align-items: center; gap: 14px;
  color: #fff; margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.weather-hero-widget .weather-icon { font-size: 32px; }
.weather-hero-widget .weather-temp { font-size: 24px; font-weight: 700; }

/* Wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }

/*===== SECTION TITLES =====*/
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 16px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.section-badge-blue { background: rgba(26,86,219,0.1); color: var(--primary); }
.section-badge-green { background: rgba(5,150,105,0.1); color: var(--success); }
.section-badge-orange { background: rgba(217,119,6,0.1); color: var(--warning); }
.section-badge-purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.section-badge-teal { background: rgba(8,145,178,0.1); color: var(--info); }
.section-badge-red { background: rgba(220,38,38,0.1); color: var(--danger); }

/*===== CATEGORIES =====*/
.cat-card {
  text-align: center; padding: 16px 8px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card .cat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin: 0 auto 8px;
}
.cat-card .cat-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.cat-card .cat-count { font-size: 11px; color: var(--secondary); }

/*===== CARDS =====*/
.card-modern {
  background: #fff; border: none; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition); height: 100%;
}
.card-modern:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-modern .card-img-top { height: 180px; object-fit: cover; }
.card-modern .card-body { padding: 14px; }
.card-modern .card-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.card-modern .card-text { font-size: 12px; color: var(--secondary); }

/* Premium Card */
.premium-section-bg {
  background: linear-gradient(135deg, #312e81 0%, #7c3aed 50%, #6d28d9 100%);
}
.premium-card {
  background: #fff; border: 2px solid #fbbf24;
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); height: 100%;
}
.premium-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(251,191,36,0.25); }
.premium-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 4px 14px; display: inline-block;
}
.premium-card .card-img-top { height: 180px; object-fit: cover; }
.premium-card .card-body { padding: 14px; }

/*===== JOB LIST =====*/
.job-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  margin-bottom: 8px;
}
.job-list-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); text-decoration: none; }
.job-list-item .job-logo { width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.job-list-item .job-info { flex: 1; }
.job-list-item .job-title { font-size: 14px; font-weight: 700; color: var(--dark); }
.job-list-item .job-meta { font-size: 12px; color: var(--secondary); display: flex; gap: 12px; flex-wrap: wrap; }

/*===== EVENT ITEM =====*/
.event-item {
  display: flex; gap: 14px; padding: 14px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.event-item:hover { box-shadow: var(--shadow-md); }
.event-date-box {
  text-align: center; min-width: 50px;
  background: rgba(26,86,219,0.08); border-radius: var(--radius-sm);
  padding: 8px; flex-shrink: 0;
}
.event-date-box .day { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }
.event-date-box .month { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--secondary); }

/*===== WEATHER CARD =====*/
.weather-card-modern {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: var(--radius-lg); padding: 28px; color: #fff;
}
.weather-card-modern .w-icon { font-size: 48px; }
.weather-card-modern .w-temp { font-size: 42px; font-weight: 300; }
.weather-forecast { display: flex; gap: 8px; justify-content: space-between; margin-top: 20px; }
.weather-forecast .day { text-align: center; padding: 8px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); min-width: 60px; }

/*===== STATS =====*/
.stat-number { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; color: var(--secondary); margin-top: 4px; }

/*===== AD SPACES =====*/
.ad-space {
  background: #f1f5f9; border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md); display: flex;
  align-items: center; justify-content: center;
  color: var(--secondary); font-size: 12px; text-align: center;
  width: 100%;
}
.ad-banner { min-height: 90px; }
.ad-sidebar { min-height: 300px; }

/*===== NEWSLETTER =====*/
.newsletter-bg { background: var(--gradient-primary); }

/*===== FOOTER =====*/
.footer-modern {
  background: var(--darker); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-modern h5 { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.footer-modern p { font-size: 13px; line-height: 1.7; }
.footer-modern ul { list-style: none; padding: 0; margin: 0; }
.footer-modern ul li { margin-bottom: 8px; }
.footer-modern ul li a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-modern ul li a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; margin-top: 40px; font-size: 13px; }

/*===== MOBILE BOTTOM NAV =====*/
@media (max-width: 768px) {
  body { padding-bottom: 65px; }
}
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
  z-index: 1050; padding: 4px 0;
  border-radius: 16px 16px 0 0;
}
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } }
.mobile-bottom-nav .mnav-item { flex: 1; text-align: center; padding: 4px; position: relative; }
.mobile-bottom-nav .mnav-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; color: var(--secondary); font-size: 10px;
}
.mobile-bottom-nav .mnav-link i { font-size: 20px; }
.mobile-bottom-nav .mnav-link.active { color: var(--primary); }
.mobile-bottom-nav .mnav-link.add-btn {
  background: var(--gradient-primary); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  justify-content: center; margin-top: -16px;
  display: flex !important;
  box-shadow: 0 4px 15px rgba(26,86,219,0.4);
}

/*===== BUTTONS =====*/
.btn-modern {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px; border: none;
}
.btn-modern.btn-primary { background: var(--primary); color: #fff; }
.btn-modern.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-modern.btn-white { background: #fff; color: var(--primary); }
.btn-modern.btn-white:hover { color: var(--primary); }

/*===== SHOW ON MOBILE ONLY =====*/
@media (min-width: 769px) { .mobile-only { display: none !important; } }
@media (max-width: 768px) { .desktop-only { display: none !important; } }