/* Modern Social Media Theme for ThePupCircle - MOBILE OPTIMIZED */
:root {
  --bg: #f8fafb;
  --card: #ffffff;
  --muted: #6b7280;
  --text-secondary: #9ca3af;
  --accent: #1fb6ff; /* bright cyan accent */
  --accent-dark: #0ea5e9;
  --primary: #0f1724; /* dark text */
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #8b5cf6;
  --border: #e5e7eb;
  --soft-shadow: 0 6px 18px rgba(15,23,36,0.08);
  --medium-shadow: 0 10px 30px rgba(15,23,36,0.12);
  --round: 14px;
  --transition: 250ms cubic-bezier(.4,0,.2,1);
  --sidebar-width: 280px;
  --sidebar-collapsed: 80px;
}

html { 
  font-size: 15px; 
  scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  background: var(--bg);
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

/* ============================================
   CONTAINER STYLING
   ============================================ */

.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 20px;
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =============================
   TYPOGRAPHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* LAYOUT: sidebar + content */
.app-shell { 
  display: flex; 
  min-height: 100vh; 
  position: relative;
  flex-direction: column;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2332 30%, var(--accent) 100%);
  background-attachment: fixed;
  background-position: center;
  color: white;
  padding: 60px 40px;
  border-radius: 0;
  margin-bottom: 60px;
  margin-top: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 0V4h4v2h-4zm-8 0v4h4V0h-4zm-8 8V6H8v2h20zm24 8h-2V8h2v4zm0 8h-2v-4h2v4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-section h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin-bottom: 12px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-section p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 24px;
  margin-top: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-section > div[style*="display: flex"] {
  position: relative;
  z-index: 2;
}

.hero-section .btn-outline,
.hero-section a.btn-outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

.hero-section .btn-outline .bi,
.hero-section a.btn-outline .bi {
  color: #ffffff !important;
}

.hero-section .btn-outline:hover,
.hero-section a.btn-outline:hover,
.hero-section .btn-outline:focus,
.hero-section a.btn-outline:focus {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.32) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.hero-section .btn-outline:active,
.hero-section a.btn-outline:active {
  transform: translateY(0) !important;
}

.hero-section .btn { 
  box-shadow: 0 8px 20px rgba(15,23,36,0.08); 
}

.hero-section .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  box-shadow: 0 8px 24px rgba(31,182,255,0.35) !important;
}

.hero-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31,182,255,0.45) !important;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 48px 24px;
    margin-bottom: 40px;
  }

  .hero-section h1 {
    font-size: 1.75rem;
    gap: 12px;
  }

  .hero-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 36px 16px;
    margin-bottom: 32px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }
}

/* FEED & SIDEBAR WIDGETS */
.grid { 
  display: grid; 
  grid-template-columns: 1fr 240px; 
  gap: 24px; 
}

@media (max-width: 1200px) {
  .grid { 
    grid-template-columns: 1fr 200px;
    gap: 20px;
  }
}

@media (max-width: 992px) { 
  .grid { 
    grid-template-columns: 1fr; 
  }
}

/* Feed Grid - Larger Sidebar */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 0 40px;
}

@media (max-width: 1200px) {
  .feed-grid {
    grid-template-columns: 1fr 280px;
    gap: 32px;
    padding: 0 32px;
  }
}

@media (max-width: 992px) { 
  .feed-grid { 
    grid-template-columns: 1fr; 
    padding: 0;
  }
}

@media (max-width: 576px) {
  .feed-grid {
    padding: 0;
  }
}

/* Sticky Sidebar for Feed */
.feed-grid aside {
  position: fixed;
  top: calc(70px + 24px);
  right: 40px;
  width: 350px;
  height: calc(100vh - 70px - 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .feed-grid aside {
    width: 280px;
    right: 24px;
    top: calc(70px + 24px);
    height: calc(100vh - 70px - 48px);
  }
}

@media (max-width: 992px) {
  .feed-grid aside {
    position: static;
    width: 100%;
    height: auto;
    top: auto;
  }
}

/* Search Page - Full Width */
.search-section {
  background: var(--card);
  padding: 32px;
  border-radius: var(--round);
  box-shadow: var(--soft-shadow);
  margin-bottom: 40px;
}

.search-section h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.search-section .form-control-lg {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all var(--transition);
  width: 100%;
}

.search-section .form-control-lg:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
}

@media (max-width: 576px) {
  .search-section {
    padding: 20px;
    margin-bottom: 24px;
  }

  .search-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .search-section .form-control-lg {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

.card-dog { 
  background: var(--card); 
  border-radius: var(--round); 
  box-shadow: var(--soft-shadow); 
  overflow: visible; 
  transition: all var(--transition);
  border: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

.card-dog:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--medium-shadow);
  border-color: var(--accent);
}

.card-header { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 18px 20px; 
  background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
  border-radius: var(--round) var(--round) 0 0 !important;
}

.avatar { 
  width: 56px; 
  height: 56px; 
  border-radius: 10%; 
  object-fit: cover; 
  flex-shrink: 0; 
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(31,182,255,0.2);
}

/* Avatar Gradient Fallback */
.avatar-gradient {
  background: linear-gradient(135deg, #1a2332dc 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Card Media Gradient Fallback */
.card-media-gradient {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a2332 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

/* Stats Preview */
.stats-preview {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  overflow: visible;
}

.stat-item {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
}

.stat-item i {
  display: block;
  margin-bottom: 4px;
}

.stat-value {
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

/* Greyed out stats (teased) */
.stat-item.teased {
  opacity: 0.5;
}

.stat-item.teased i {
  color: var(--text-secondary) !important;
}

/* Tooltip styling */
.stat-tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

.stat-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: normal;
  width: max-content;
  max-width: 150px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: normal;
  pointer-events: none;
  text-align: center;
  line-height: 1.4;
}

.stat-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--primary);
  z-index: 1000;
  pointer-events: none;
}

.owner-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-media img { 
  width: 100%; 
  height: 420px; 
  object-fit: cover; 
  display: block; 
}

@media (max-width: 576px) { 
  .card-media img { 
    height: 240px; 
  }
}

.card-body { 
  padding: 24px; 
  overflow: visible;
}

.card-title { 
  font-weight: 700; 
  font-size: 1.1rem;
  margin-bottom: 8px; 
  color: var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-sub { 
  color: var(--text-secondary); 
  font-size: 0.95rem; 
  margin-bottom: 0;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.action-bar { 
  display: flex; 
  gap: 16px; 
  padding: 18px 24px; 
  border-top: 1px solid #f0f0f0; 
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .action-bar {
    gap: 10px;
    padding: 14px 16px;
  }
}

.btn { 
  background: transparent; 
  border: none; 
  color: var(--muted); 
  font-weight: 600; 
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary { 
  margin-left: auto; 
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white; 
  padding: 12px 18px; 
  border-radius: 10px;
  font-weight: 600;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31,182,255,0.3);
  color: white;
  text-decoration: none;
}

.btn-outline {
    margin-left: auto;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}

    .btn-outline:hover {
        transform: translateY(-2px);
        border: 2px solid var(--accent);
        box-shadow: 0 8px 20px rgba(31,182,255,0.3);
        color: var(--accent);
        text-decoration: none;
    }

.btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .btn-primary {
    padding: 8px 12px;
  }
}

.profile-hero { 
  border-radius: 0px 0px 30px 30px;
  overflow: hidden; 
  margin-bottom: 24px; 
  position: relative;
  box-shadow: var(--medium-shadow);
  height: 300px;
}

.profile-cover { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.profile-avatar { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 200px; 
  height: 200px; 
  border-radius: 50%; 
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  z-index: 10;
}

.upload-cover-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    z-index: 5;
    transition: all var(--transition);
    border: 1px solid #FFF;
}

.upload-cover-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.upload-profile-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: all var(--transition);
  border:1px solid #FFF;
}

.upload-profile-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.profile-meta { 
  padding: 32px 40px 24px 40px;
  margin-bottom: 40px;
}

.profile-meta h2 {
  margin-bottom: 20px;
}

.profile-stats { 
  display: flex; 
  gap: 40px; 
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .profile-meta { 
    padding: 24px 0;
  }

  .profile-stats {
    gap: 20px;
  }
}

.profile-section {
  max-width: 500px;
}

/* Form Elements */
.form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all var(--transition);
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
}

.invalid-feedback {
  display: block;
  color: var(--danger);
  font-size: 0.875em;
  margin-top: 0.5rem;
  margin-bottom: 8px;
}

.form-check {
  margin-bottom: 16px;
}

.form-text {
  font-size: 0.85rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 6px;
  margin-bottom: 12px;
}
.upload-area {
  border: 2px dashed #e5e7eb;
  border-radius: var(--round);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card);
}

.upload-area:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(31,182,255,0.04) 0%, rgba(31,182,255,0.02) 100%);
}

.upload-area i {
  font-size: 3rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.upload-area p {
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 8px 0;
  font-size: 1rem;
}

.upload-area small {
  color: var(--text-secondary);
  display: block;
}

.progress {
  background: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#uploadStatus {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
  display: block;
}

#uploadSuccess {
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
  border-radius: 8px;
}

#uploadSuccess p {
  color: var(--success);
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

#uploadSuccess i {
  margin-right: 6px;
}

@media (max-width: 576px) {
  .upload-area {
    padding: 30px 16px;
  }

  .upload-area i {
    font-size: 2.5rem;
  }

  .upload-area p {
    font-size: 0.95rem;
  }

  .upload-area small {
    font-size: 0.8rem;
  }
}

/* ============================================
   PHOTO GALLERY STYLING
   ============================================ */

.gallery-section {
  background: var(--card);
  border-radius: var(--round);
  padding: 40px;
  box-shadow: var(--soft-shadow);
  border: 1px solid #f0f0f0;
  margin-bottom: 40px;
  margin-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--round);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,36,0.08);
  transition: all var(--transition);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover {
  box-shadow: var(--medium-shadow);
  transform: translateY(-4px);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  color: white;
  padding: 16px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .gallery-caption {
    padding: 12px;
    font-size: 0.8rem;
  }
}

/* ============================================
   NOTIFICATIONS PAGE STYLING
   ============================================ */
.notifications-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.notifications-header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 2rem;
}

.notifications-header h1 i {
  color: var(--accent);
  font-size: 2.2rem;
}

.notifications-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: var(--round);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--soft-shadow);
}

.notification-card.unread {
  background: linear-gradient(135deg, rgba(31,182,255,0.04) 0%, rgba(31,182,255,0.02) 100%);
  border-color: rgba(31,182,255,0.3);
  box-shadow: 0 2px 8px rgba(31,182,255,0.1);
}

.notification-card:hover {
  box-shadow: var(--medium-shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.notification-card.read {
  opacity: 0.7;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1fb6ff 0%, #0ea5e9 100%);
  color: white;
  font-weight: 600;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(31, 182, 255, 0.2);
}

/* Notification Avatar Badge */
.notification-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1fb6ff 0%, #0ea5e9 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(31,182,255,0.3);
}

/* Red badge for likes */
.notification-card:has(i.bi-heart-fill) .notification-avatar-badge {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.notification-card:has(i.bi-heart-fill) .notification-avatar-badge i {
  color: #ef4444;
}

/* Green badge for follows */
.notification-card:has(.notification-avatar-badge i.bi-person-plus-fill) .notification-avatar-badge {
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
}

.notification-card:has(.notification-avatar-badge i.bi-person-plus-fill) .notification-avatar-badge i {
  color: #16a34a;
}

/* Yellow badge for comments */
.notification-card:has(i.bi-chat-fill) .notification-avatar-badge {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
}

.notification-card:has(i.bi-chat-fill) .notification-avatar-badge i {
  color: #ca8a04;
}

.notification-username {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(31,182,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.notification-dog-tag {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(31,182,255,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0 0 4px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.notification-comment-preview {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(31,182,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.notification-comment-preview i {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-comment-preview p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.notification-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.notification-unread-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: 8px;
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-actions .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.notification-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.notification-actions .btn-outline {
  border-color: #d1d5db;
}

.notification-actions .btn-outline:hover {
  border-color: var(--accent);
}

/* Empty State */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: var(--card);
  border-radius: var(--round);
  border: 1px solid #e5e7eb;
  box-shadow: var(--soft-shadow);
}

.empty-state i {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 300px;
  text-align: center;
}

/* About Section */
.about-section {
  background: var(--card);
  border-radius: var(--round);
  padding: 40px;
  box-shadow: var(--soft-shadow);
  border: 1px solid #f0f0f0;
  margin-bottom: 40px;
  margin-top: 40px;
}

.about-section .card-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.about-section .card-title i {
  color: var(--accent);
  font-size: 1.8rem;
}

.about-section .card-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 576px) {
  .about-section {
    padding: 24px;
    margin-bottom: 24px;
  }

  .about-section .card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .about-section .card-sub {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ============================================
   FOOTER STYLING
   ============================================ */
/* Footer removed */

/* Engagement Stats Cards */
.engagement-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 36, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.engagement-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #1fb6ff);
  box-shadow: 0 8px 20px rgba(31, 182, 255, 0.15);
}

.engagement-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1fb6ff 0%, #0ea5e9 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(31, 182, 255, 0.25);
  flex-shrink: 0;
}

.engagement-stat {
  flex: 1;
  width: 100%;
}

.engagement-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary, #1f1617);
  line-height: 1;
  margin-bottom: 6px;
}

.engagement-label {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
  display: block;
}

/* ============================================
   HOME PAGE LANDING STYLES
   ============================================ */

.hero-landing {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2332 30%, var(--accent) 100%);
    background-attachment: fixed;
    padding: 80px 20px;
    border-radius: 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.hero-landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM36 0V4h4v2h-4zm-8 0v4h4V0h-4zm-8 8V6H8v2h20zm24 8h-2V8h2v4zm0 8h-2v-4h2v4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-landing-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.landing-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.landing-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.landing-title img {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.landing-title h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0 40px 0;
  font-weight: 500;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 60px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card-landing {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.feature-card-landing:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(31, 182, 255, 0.25);
}

.feature-icon-landing {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #1fb6ff;
  display: block;
}

.feature-title-landing {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.feature-desc-landing {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.cta-buttons-landing {
  display: inline;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.featured-section {
  padding: 80px 20px;
  background: var(--bg);
}

.featured-title {
  text-align: center;
  margin-bottom: 48px;
}

.featured-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.featured-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

.featured-dogs-grid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .landing-title h1 {
    font-size: 2.5rem;
  }

  .landing-title img {
    width: 70px;
    height: 70px;
  }

  .landing-subtitle {
    font-size: 1.2rem;
  }

  .landing-features {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 40px 0;
  }

  .featured-title h2 {
    font-size: 2rem;
  }

  .hero-landing {
    padding: 60px 16px;
  }

  .featured-section {
    padding: 60px 16px;
  }
}

@media (max-width: 576px) {
  .hero-landing {
    padding: 40px 16px;
  }

  .landing-title {
    flex-direction: column;
    gap: 12px;
  }

  .landing-title h1 {
    font-size: 2rem;
  }

  .landing-title img {
    width: 60px;
    height: 60px;
  }

  .landing-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .landing-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0;
  }

  .cta-buttons-landing {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .cta-buttons-landing .btn {
    width: 100%;
  }

  .featured-section {
    padding: 40px 16px;
  }

  .featured-title h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   SIMPLE PAGE HEADERS
   ============================================ */

.page-header {
  padding-top:24px;
  margin-top:40px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
}

.page-header h1 i {
  color: var(--accent);
  font-size: 2.4rem;
}

.page-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .page-header {
    margin-bottom: 32px;
    padding-bottom: 18px;
  }

  .page-header h1 {
    font-size: 1.75rem;
    gap: 12px;
  }

  .page-header h1 i {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header h1 i {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }
}

/* ============================================
   SECTION HEADERS (h2 + description)
   ============================================ */

.section-header {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: var(--primary);
}

.section-header i {
  color: var(--accent);
  font-size: 1.8rem;
}

.section-header p {
  margin: 6px 0 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-header i {
    font-size: 1.5rem;
  }
}

/* ============================================
   SEARCH PAGE - FILTER STYLING
   ============================================ */

.search-filters {
  background: var(--card);
  padding: 20px;
  border-radius: var(--round);
  box-shadow: var(--soft-shadow);
  border: 1px solid #f0f0f0;
  margin-bottom: 40px;
}

.search-filters-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-filters-header i {
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.1rem;
}

.search-filters-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.search-filter-group {
  display: flex;
  flex-direction: column;
}

.search-filter-group .form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
  gap: 4px;
}

.search-filter-group .form-label i {
  color: var(--accent);
  margin-right: 0;
}

.search-filter-group .form-control,
.search-filter-group .select2-container--default .select2-selection--single {
  font-size: 0.9rem;
}

/* ============================================
   SIDEBAR CARDS - FEED PAGE
   ============================================ */

.sidebar-card {
  background: var(--card);
  border: 1px solid #f0f0f0;
  border-radius: var(--round);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--soft-shadow);
  transition: all var(--transition);
}

.sidebar-card:hover {
  box-shadow: var(--medium-shadow);
  border-color: var(--accent);
}

.sidebar-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card p.lead {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   SELECT2 CUSTOM STYLING - Matches form-control
   ============================================ */

.select2-container--default .select2-selection--single {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  height: auto;
  padding: 0;
  background-color: white;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--primary);
  padding: 12px 14px;
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: auto;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 0;
  border: solid var(--muted);
  border-width: 1px 1px 0 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  background-color: white;
  color: var(--primary);
  font-size: 1rem;
  font-family: inherit;
  margin: 8px;
  transition: all var(--transition);
  min-height: 44px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
}

.select2-dropdown {
  background-color: white;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--soft-shadow);
}

.select2-container--default .select2-results__option {
  color: var(--primary);
  padding: 12px 14px;
  font-size: 1rem;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
  background-color: rgba(31, 182, 255, 0.1);
  color: var(--primary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(31, 182, 255, 0.08);
  color: var(--primary);
}

.select2-container--default .select2-results__group {
  color: var(--text-secondary);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.select2-container .select2-selection--single .select2-selection__clear {
  color: var(--muted);
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-right: 10px;
  transition: color var(--transition);
}

.select2-container .select2-selection--single .select2-selection__clear:hover {
  color: var(--accent);
}

/* Select2 Disabled State */
.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #e5e7eb;
}

.select2-container--default.select2-container--disabled .select2-selection__rendered {
  color: var(--text-secondary);
}

/* Select2 Mobile Optimizations (768px) */
@media (max-width: 768px) {
  .select2-container--default .select2-selection--single {
    border-radius: 10px;
    min-height: 44px;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .select2-dropdown {
    border-radius: 0 0 10px 10px;
  }

  .select2-container--default .select2-results__option {
    padding: 12px 14px;
    font-size: 1rem;
    min-height: 44px;
  }

  .select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 10px 14px;
    font-size: 1rem;
    min-height: 44px;
  }
}

/* Select2 Mobile Optimizations (576px and below) */
@media (max-width: 576px) {
  .select2-container--default .select2-selection--single {
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 14px 14px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 30px;
    height: 30px;
    right: 8px;
  }

  .select2-dropdown {
    border-radius: 0 0 10px 10px;
    max-height: 300px;
  }

  .select2-container--default .select2-results__option {
    padding: 12px 14px;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 12px 14px;
    font-size: 1rem;
    margin: 8px;
    min-height: 44px;
  }

  .select2-container--default .select2-results__group {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* Select2 Extra Small Devices (480px and below) */
@media (max-width: 480px) {
  .select2-container--default .select2-selection--single {
    min-height: 48px;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 13px 12px;
    font-size: 0.95rem;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 6px;
  }

  .select2-container--default .select2-results__option {
    padding: 11px 12px;
    min-height: 44px;
  }

  .select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 11px 12px;
    font-size: 0.95rem;
    margin: 6px;
  }
}

/* Ad Placeholder */
.ad-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ecf1 100%);
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-content {
  text-align: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.ad-content i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ad-content p {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  opacity: 0.7;
}

.ad-content small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 4px;
}

/* Small Ad Placeholder */
.ad-placeholder-small {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ecf1 100%);
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-content-small {
  text-align: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.ad-content-small i {
  font-size: 2rem;
  display: block;
  opacity: 0.5;
}

.ad-content-small p {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 6px 0 0 0;
  opacity: 0.7;
}

/* ============================================
   ADVANCED FILTERS - COLOR-CODED SLIDERS
   ============================================ */

.search-advanced-filters {
  background: linear-gradient(135deg, rgba(31,182,255,0.03) 0%, rgba(31,182,255,0.01) 100%);
  padding: 28px;
  border-radius: var(--round);
  border: 1px solid rgba(31,182,255,0.15);
  margin-top: 20px;
  margin-bottom:20px;
}

.search-range-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

/* Energy Level - Orange/Amber */
.search-range-label-energy {
  color: #f59e0b;
}

.search-range-label-energy i {
  color: #f59e0b;
  font-size: 1.1rem;
}

/* Friendliness - Red */
.search-range-label-friendliness {
  color: #ef4444;
}

.search-range-label-friendliness i {
  color: #ef4444;
  font-size: 1.1rem;
}

/* Intelligence - Purple */
.search-range-label-intelligence {
  color: #8b5cf6;
}

.search-range-label-intelligence i {
  color: #8b5cf6;
  font-size: 1.1rem;
}

/* Loyalty - Teal */
.search-range-label-loyalty {
  color: #14b8a6;
}

.search-range-label-loyalty i {
  color: #14b8a6;
  font-size: 1.1rem;
}

/* Range Slider Styling */
.search-range-slider {
  position: relative;
  margin-bottom: 16px;
  padding: 8px 0;
}

.search-range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  pointer-events: none;
}

.search-range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 3px;
  pointer-events: none;
  transition: all var(--transition);
}

/* Energy - Orange gradient */
.search-range-fill-energy {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  left: 0;
  right: 0;
}

/* Friendliness - Red gradient */
.search-range-fill-friendliness {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  left: 0;
  right: 0;
}

/* Intelligence - Purple gradient */
.search-range-fill-intelligence {
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
  left: 0;
  right: 0;
}

/* Loyalty - Teal gradient */
.search-range-fill-loyalty {
  background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
  left: 0;
  right: 0;
}

/* Range Input Styling */
input[type="range"].search-range-energy,
input[type="range"].search-range-friendliness,
input[type="range"].search-range-intelligence,
input[type="range"].search-range-loyalty {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 5;
  position: relative;
}

/* Chrome/Safari slider thumb */
input[type="range"].search-range-energy::-webkit-slider-thumb,
input[type="range"].search-range-friendliness::-webkit-slider-thumb,
input[type="range"].search-range-intelligence::-webkit-slider-thumb,
input[type="range"].search-range-loyalty::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Energy thumb */
input[type="range"].search-range-energy::-webkit-slider-thumb {
  border-color: #f59e0b;
}

input[type="range"].search-range-energy::-webkit-slider-thumb:hover {
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Friendliness thumb */
input[type="range"].search-range-friendliness::-webkit-slider-thumb {
  border-color: #ef4444;
}

input[type="range"].search-range-friendliness::-webkit-slider-thumb:hover {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Intelligence thumb */
input[type="range"].search-range-intelligence::-webkit-slider-thumb {
  border-color: #8b5cf6;
}

input[type="range"].search-range-intelligence::-webkit-slider-thumb:hover {
  background: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Loyalty thumb */
input[type="range"].search-range-loyalty::-webkit-slider-thumb {
  border-color: #14b8a6;
}

input[type="range"].search-range-loyalty::-webkit-slider-thumb:hover {
  background: #14b8a6;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Firefox slider thumb */
input[type="range"].search-range-energy::-moz-range-thumb,
input[type="range"].search-range-friendliness::-moz-range-thumb,
input[type="range"].search-range-intelligence::-moz-range-thumb,
input[type="range"].search-range-loyalty::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Energy moz thumb */
input[type="range"].search-range-energy::-moz-range-thumb {
  border-color: #f59e0b;
}

input[type="range"].search-range-energy::-moz-range-thumb:hover {
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Friendliness moz thumb */
input[type="range"].search-range-friendliness::-moz-range-thumb {
  border-color: #ef4444;
}

input[type="range"].search-range-friendliness::-moz-range-thumb:hover {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Intelligence moz thumb */
input[type="range"].search-range-intelligence::-moz-range-thumb {
  border-color: #8b5cf6;
}

input[type="range"].search-range-intelligence::-moz-range-thumb:hover {
  background: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Loyalty moz thumb */
input[type="range"].search-range-loyalty::-moz-range-thumb {
  border-color: #14b8a6;
}

input[type="range"].search-range-loyalty::-moz-range-thumb:hover {
  background: #14b8a6;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Range Labels */
.search-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.search-range-labels span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.search-range-labels span:first-child {
  text-align: left;
}

.search-range-labels span:last-child {
  text-align: right;
}

.search-range-value {
  flex: 0 0 auto !important;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 50px;
}

/* Energy value color */
.search-range-slider-energy .search-range-value {
  color: #f59e0b;
}

/* Friendliness value color */
.search-range-slider-friendliness .search-range-value {
  color: #ef4444;
}

/* Intelligence value color */
.search-range-slider-intelligence .search-range-value {
  color: #8b5cf6;
}

/* Loyalty value color */
.search-range-slider-loyalty .search-range-value {
  color: #14b8a6;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .search-advanced-filters {
    padding: 20px;
    margin-top: 16px;
  }

  .search-range-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .search-range-labels {
    margin-top: 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .search-advanced-filters {
    padding: 16px;
    margin-top: 12px;
  }

  .search-range-label {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  input[type="range"].search-range-energy,
  input[type="range"].search-range-friendliness,
  input[type="range"].search-range-intelligence,
  input[type="range"].search-range-loyalty {
    height: 8px;
  }

  .search-range-track {
    height: 8px;
  }

  .search-range-fill {
    height: 8px;
  }

  input[type="range"].search-range-energy::-webkit-slider-thumb,
  input[type="range"].search-range-friendliness::-webkit-slider-thumb,
  input[type="range"].search-range-intelligence::-webkit-slider-thumb,
  input[type="range"].search-range-loyalty::-webkit-slider-thumb,
  input[type="range"].search-range-energy::-moz-range-thumb,
  input[type="range"].search-range-friendliness::-moz-range-thumb,
  input[type="range"].search-range-intelligence::-moz-range-thumb,
  input[type="range"].search-range-loyalty::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .search-range-labels {
    margin-top: 6px;
    gap: 6px;
  }

  .search-range-value {
    font-size: 0.85rem;
    min-width: 40px;
  }
}