/* Enhanced Styles for Proday Sosedu */

/* Global Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
  --secondary-gradient: linear-gradient(135deg, #0ea5e9, #0d9488);
  --accent-gradient: linear-gradient(135deg, #ec4899, #f43f5e);
  --light-bg: #f8fafc;
  --dark-bg: #0f172a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--light-bg);
  color: #334155;
}

/* Header Styles */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form Elements */
.form-input {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* Typography */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transform {
  transition: transform 0.3s ease;
}

.transform:hover {
  transform: translateY(-2px);
}

/* Category Sidebar */
.category-sidebar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.category-sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar li {
  margin-bottom: 8px;
}

.category-sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-sidebar a:hover {
  background-color: #eff6ff;
  color: #3b82f6;
}

.category-sidebar a.active {
  background-color: #dbeafe;
  color: #3b82f6;
  font-weight: 600;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
}

/* Search Bar */
.search-bar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
}

.search-bar form {
  display: flex;
  gap: 16px;
}

.search-bar input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 32px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: 48px 0 24px;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #3b82f6;
}

.footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 12px;
}

/* Mobile Footer */
.mobile-footer {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 16px 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: #f1f5f9;
}

.pagination a.active {
  background: var(--primary-gradient);
  color: white;
}

/* Ad Card */
.ad-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ad-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.ad-card-content {
  padding: 20px;
}

.ad-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ad-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3b82f6;
}

.ad-card-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary-gradient);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ad-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Favorite Button */
.favorite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.favorite-button:hover {
  transform: translateY(-2px);
}

.favorite-button.favorited {
  background-color: #fee2e2;
  color: #dc2626;
}

.favorite-button.not-favorited {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-bar form {
    flex-direction: column;
  }
  
  .search-bar button {
    padding: 16px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .category-sidebar {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .pagination {
    flex-wrap: wrap;
  }
  
  .ad-card-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* =============================
   Global UI Theme v2 (shared)
   ============================= */

/* Header glass effect and subtle border */
header.bg-white.shadow-sm,
header.bg-white {
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #eef2f7;
}

/* Universal card look for Tailwind combos */
.bg-white.rounded-xl.shadow-sm,
.bg-white.rounded-2xl.shadow-lg,
.card,
.ad-card,
.product-card,
.category-sidebar {
  border: 1px solid #eef2f7;
}

/* Inputs and selects - consistent look */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background-color: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.06s ease;
}

input[type], textarea, select:focus {
  outline: none !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* Elevate primary blue buttons visually (keeps Tailwind colors) */
.bg-blue-600 {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.15);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.bg-blue-600:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

/* Secondary neutral buttons */
.bg-gray-100 {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.bg-gray-100:hover {
  background-color: #eceff3;
}

/* Badges and chips */
.badge { display: inline-block; padding: 4px 10px; border-radius: 9999px; font-weight: 600; font-size: 12px; }
.badge-yellow { background: #fde68a; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #166534; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; line-height: 1.2; border: 1px solid #e5e7eb; background: #fff; color: #334155; }

/* Alerts */
.alert { border-radius: 12px; padding: 12px 14px; border: 1px solid; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.alert-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.alert-error { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }

/* Tables */
.table-styled { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eef2f7; }
.table-styled thead th { background: #f8fafc; color: #475569; text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
.table-styled tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.table-styled tbody tr:hover { background: #f8fafc; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 14px; }
.breadcrumbs a { color: #475569; text-decoration: none; }
.breadcrumbs a:hover { color: #2563eb; }
.breadcrumbs .sep { color: #cbd5e1; }

/* Section helpers */
.section { margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }

/* Line clamp utilities (shared) */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 8px; }
.toolbar .btn { padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.toolbar .btn-ghost { background: transparent; color: #334155; }
.toolbar .btn-ghost:hover { background: #f1f5f9; }

/* Modal base */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); display: none; align-items: center; justify-content: center; z-index: 60; }
.modal.active { display: flex; }
.modal-card { background: #fff; border-radius: 16px; border: 1px solid #eef2f7; box-shadow: 0 20px 50px rgba(2, 6, 23, 0.2); width: 100%; max-width: 520px; }

/* Profile & list helpers */
.list-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.list-card .thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.list-card .title { font-weight: 700; color: #0f172a; }
.list-card .meta { color: #64748b; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer polishing */
.footer { background: #0f172a; }
.footer .border-t { border-color: rgba(148, 163, 184, 0.18); }

/* Mobile footer elevation */
.md\:hidden.fixed.bottom-0 { box-shadow: 0 -6px 15px rgba(2, 6, 23, 0.06); }

/* Small utility: soft separators */
.hr-soft { height: 1px; background: #eef2f7; width: 100%; border: 0; }

/* Map teaser tile */
.map-teaser { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 16px; }

/* VIP ribbon */
.vip-ribbon { position: absolute; top: 12px; right: -32px; transform: rotate(45deg); background: #facc15; color: #111827; font-weight: 800; font-size: 12px; padding: 4px 48px; box-shadow: 0 8px 16px rgba(234, 179, 8, 0.25); }

/* Responsive tweaks */
@media (max-width: 768px) {
  header.bg-white.shadow-sm .max-w-7xl { padding-left: 12px; padding-right: 12px; }
  .list-card { grid-template-columns: 72px 1fr; }
}

/* =============================
   Global UI Theme v3 (new look)
   ============================= */

/* Subtle background texture with radial gradient */
body {
  background: radial-gradient(1000px 500px at 10% -10%, #eef2ff 0%, transparent 60%),
              radial-gradient(1200px 600px at 110% -10%, #ecfeff 0%, transparent 60%),
              #f7fafc;
}

/* Links */
a { color: #1e40af; transition: color .2s ease; text-decoration: none; }
a:hover { color: #1d4ed8; text-decoration: none; }

/* New hero gradient (used by .hero-gradient containers) */
.hero-gradient {
  background: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 50%, #f472b6 100%);
}

/* Softer card corners and stronger shadow */
.bg-white.rounded-xl.shadow-sm {
  border-radius: 18px;
  box-shadow: 0 10px 25px -10px rgba(2, 6, 23, 0.12), 0 8px 10px -8px rgba(2, 6, 23, 0.06);
}

/* Header polish */
header.bg-white.shadow-sm {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px -15px rgba(2,6,23,.15);
}

/* Inputs refinement */
input[type], textarea, select {
  background: #fff;
  border-color: #e5e7eb;
}
input[type]:hover, textarea:hover, select:hover { border-color: #cbd5e1; }

/* Primary CTA variations */
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-600:hover { background-color: #1d4ed8 !important; }

/* Outline-style helpers */
.btn-outline { border: 1px solid #e5e7eb; background: #fff; color: #111827; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.btn-outline:hover { background: #f8fafc; }

/* Ghost buttons */
.btn-ghost { background: transparent; color: #334155; border-radius: 10px; padding: 8px 12px; }
.btn-ghost:hover { background: #f1f5f9; }

/* Pagination pill style */
.pagination a { border: 1px solid #e5e7eb; border-radius: 9999px; padding: 0 14px; height: 36px; min-width: 36px; }
.pagination a.active { border-color: transparent; }

/* Selection and scrollbar */
::selection { background: rgba(59,130,246,.2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c7d2fe, #bae6fd); border-radius: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }

/* Toggle switch */
.toggle { position: relative; width: 44px; height: 26px; background: #e5e7eb; border-radius: 9999px; transition: background .2s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform .2s ease; }
.toggle.active { background: #60a5fa; }
.toggle.active::after { transform: translateX(18px); }

/* Shimmer skeletons */
.skeleton { position: relative; overflow: hidden; background: #e2e8f0; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
  animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Soft hover for list items in mobile menu */
#mobileMenu a { transition: background .15s ease; }
#mobileMenu a:hover { background: #f8fafc; }

/* Mobile menu panel elevation */
#mobileMenu > div { box-shadow: -8px 0 24px rgba(2,6,23,.1); }

/* Footer tone */
.footer { background: linear-gradient(180deg, #0b1220, #0f172a); }

/* Badge styles v3 */
.badge { border-radius: 9999px; padding: 4px 10px; font-weight: 700; letter-spacing: .01em; }
.badge-info { background: #e0e7ff; color: #3730a3; }
.badge-success { background: #dcfce7; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }

/* Minimal shadows for images */
img { image-rendering: auto; }

/* Improve hero CTA contrast */
.hero-gradient a { box-shadow: 0 8px 20px -8px rgba(255,255,255,.5); }
.hero-gradient a:hover { transform: translateY(-1px); }

/* Mobile Uplift: stronger visual hierarchy and tap targets */
@media (max-width: 640px) {
  /* Hero adjustments */
  .hero-gradient { height: 220px !important; padding: 16px !important; border-radius: 16px; }
  /* Card spacing and typography */
  .p-5 { padding: 14px !important; }
  .line-clamp-2 { -webkit-line-clamp: 3; }
  .chip { font-size: 0.9rem; padding: 6px 12px; }
  /* Buttons: larger tap area */
  .btn-outline, .bg-blue-600 { min-height: 44px; font-size: 0.95rem; }
  /* Reduce heavy shadows for small screens */
  .bg-white.rounded-xl.shadow-sm { box-shadow: 0 8px 18px -10px rgba(2,6,23,.12), 0 6px 8px -8px rgba(2,6,23,.06); }
  /* Tighten footer nav icons */
  .md\:hidden.fixed.bottom-0 span { font-size: 11px; }
}
