/* ===================================================
   RESPONSIVE DESIGN SYSTEM - CENTRALIZED CSS
   HerpesHearts Dating Platform

   This file consolidates all responsive styles across templates.
   Uses CSS variables for single source of truth across all breakpoints.

   Breakpoints:
   - Mobile: < 576px (default)
   - Small: 576px+ (landscape phones)
   - Medium: 768px+ (tablets)
   - Large: 992px+ (desktops)
   - XL: 1200px+ (large desktops)
   - XXL: 1400px+ (very large screens)
   =================================================== */

/* ===================================================
   1. DESIGN SYSTEM - CSS VARIABLES
   Single source of truth for all responsive values
   =================================================== */

:root {
  /* NOTE: Color variables are now injected from base.html (see colors.py)
     This ensures colors can be configured in one place and used everywhere */

  /* --------- TYPOGRAPHY SCALE (Mobile-first) --------- */
  --font-size-base: 1rem;        /* 16px */
  --font-size-small: 0.875rem;   /* 14px */
  --font-size-h1: 2rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.1rem;
  --font-size-h6: 1rem;

  --font-size-profile-headline: 0.9375rem;  /* 15px */
  --font-size-profile-name: 0.8125rem;      /* 13px */
  --font-size-profile-info: 0.8125rem;      /* 13px */

  --font-size-nav-link: 0.75rem;
  --font-size-nav-link-icon: 0.7rem;
  --font-size-nav-button: 0.75rem;
  --font-size-nav-button-icon: 0.85rem;
  --font-size-footer: 0.65rem;
  --font-size-footer-icon: 0.6rem;

  --line-height-base: 1.6;

  /* --------- COMPONENT HEIGHTS (Profile Cards) --------- */
  --profile-card-height: 260px;
  --profile-card-height-with-tag: 292px;
  --profile-card-body-height: 260px;
  --profile-card-body-height-with-tag: 292px;
  --profile-photo-height: 260px;
  --profile-photo-height-with-tag: 292px;

  /* --------- COMPONENT HEIGHTS (Photos) --------- */
  --photo-carousel-height: 300px;
  --logo-height: 35px;
  --action-icon-size: 40px;
  --badge-icon-size: 36px;

  /* --------- SPACING --------- */
  --container-padding: 1rem;
  --container-padding-left: 1rem;
  --container-padding-right: 1rem;
  --card-margin: 1rem;
  --card-padding: 1rem;

  /* Nav Button sizing */
  --nav-button-padding: 0.35rem 0.5rem;
  --nav-button-icon-margin: 0;

  /* Logo sizing */
  --site-tagline-font-size: 0.9rem;
  --site-tagline-desktop-font-size: 1.75rem;

  /* --------- BORDER & SHADOW --------- */
  --hover-card-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Breakpoint: 576px (Landscape phones) */
@media (min-width: 576px) {
  :root {
    --nav-button-padding: 0.35rem 0.5rem;
    --nav-button-icon-margin: 0.25rem;
  }
}

/* Breakpoint: 768px (Tablets) */
@media (min-width: 768px) {
  :root {

    --font-size-profile-headline: 1rem;        /* 16px */
    --font-size-profile-name: 0.875rem;        /* 14px */
    --font-size-profile-info: 0.875rem;        /* 14px */

    --line-height-base: 1.65;

    /* Scale profile cards for tablets */
    --profile-card-height: 290px;              /* 260 * 1.125 ≈ 290 */
    --profile-card-height-with-tag: 322px;     /* 290 + 32 */
    --profile-card-body-height: 290px;
    --profile-card-body-height-with-tag: 322px;
    --profile-photo-height: 290px;
    --profile-photo-height-with-tag: 322px;
    --card-padding: 1.125rem;

    /* Scale photo carousel */
    --photo-carousel-height: 400px;

    /* Scale spacing */
    --container-padding: 1.5rem;
    --container-padding-left: 1.5rem;
    --container-padding-right: 1.5rem;
    --card-margin: 1.5rem;

    /* Badge sizing */
    --badge-icon-size: 36px;
  }
}

/* Breakpoint: 992px (Desktops) */
@media (min-width: 992px) {
  :root {
  }
}

/* Breakpoint: 1200px (Large desktops) */
@media (min-width: 1200px) {
  :root {
    --font-size-base: 1.25rem;     /* 20px */
    --font-size-small: 1.125rem;   /* 18px */
    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 2rem;
    --font-size-h4: 1.75rem;
    --font-size-h5: 1.5rem;
    --font-size-h6: 1.25rem;

    --font-size-profile-headline: 1.125rem;    /* 18px */
    --font-size-profile-name: 1rem;            /* 16px */
    --font-size-profile-info: 1rem;            /* 16px */

    --line-height-base: 1.7;

    /* Scale profile cards for large desktops */
    --profile-card-height: 325px;              /* 260 * 1.25 = 325 */
    --profile-card-height-with-tag: 357px;     /* 325 + 32 */
    --profile-card-body-height: 325px;
    --profile-card-body-height-with-tag: 357px;
    --profile-photo-height: 325px;
    --profile-photo-height-with-tag: 357px;
    --card-padding: 1.25rem;

    /* Scale photo carousel */
    --photo-carousel-height: 500px;

    /* Scale spacing */
    --container-padding: 2rem;
    --container-padding-left: 2rem;
    --container-padding-right: 2rem;
    --card-margin: 1rem;

    /* Button sizing */
    --btn-font-size: 1.125rem;
    --btn-padding: 0.5rem 1.25rem;
    --btn-sm-font-size: 1rem;
    --btn-sm-padding: 0.375rem 1rem;
    --btn-lg-font-size: 1.375rem;
    --btn-lg-padding: 0.75rem 1.75rem;

    /* Form control sizing */
    --form-control-font-size: 1.125rem;
    --form-control-padding: 0.5rem 0.75rem;
    --form-label-font-size: 1.125rem;
    --form-label-margin-bottom: 0.625rem;

    /* Badge sizing */
    --badge-font-size: 1rem;
    --badge-padding: 0.5em 0.875em;
    --badge-icon-size: 36px;
  }
}

/* Breakpoint: 1400px (Very large desktops) */
@media (min-width: 1400px) {
  :root {
    --font-size-base: 1.375rem;    /* 22px */
    --font-size-small: 1.1875rem;  /* 19px */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.75rem;
    --font-size-h3: 2.25rem;
    --font-size-h4: 1.875rem;
    --font-size-h5: 1.625rem;
    --font-size-h6: 1.375rem;

    --font-size-profile-headline: 1.25rem;     /* 20px */
    --font-size-profile-name: 1.0625rem;       /* 17px */
    --font-size-profile-info: 1.0625rem;       /* 17px */

    --line-height-base: 1.75;

    /* Scale profile cards for very large screens */
    --profile-card-height: 360px;              /* 260 * 1.375 ≈ 360 */
    --profile-card-height-with-tag: 392px;     /* 360 + 32 */
    --profile-card-body-height: 360px;
    --profile-card-body-height-with-tag: 392px;
    --profile-photo-height: 360px;
    --profile-photo-height-with-tag: 392px;
    --card-padding: 1.375rem;

    /* Scale photo carousel */
    --photo-carousel-height: 500px;

    /* Scale spacing */
    --container-padding: 2.5rem;
    --container-padding-left: 2.5rem;
    --container-padding-right: 2.5rem;

    /* Site tagline */
    --site-tagline-font-size: 1.75rem;
  }
}

/* ===================================================
   2. BASE TYPOGRAPHY & TEXT
   =================================================== */

body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

h1 { font-size: var(--font-size-h1) !important; }
h2 { font-size: var(--font-size-h2) !important; }
h3 { font-size: var(--font-size-h3) !important; }
h4 { font-size: var(--font-size-h4) !important; }
h5 { font-size: var(--font-size-h5) !important; }
h6 { font-size: var(--font-size-h6) !important; }

small, .small {
  font-size: var(--font-size-small) !important;
}

/* ===================================================
   3. CONTAINER & CARD SPACING
   =================================================== */

.container {
  padding-left: var(--container-padding-left);
  padding-right: var(--container-padding-right);
}

.card {
  margin-bottom: var(--card-margin);
  padding: var(--card-padding);
}

/* ===================================================
   4. NOTIFICATIONS & ALERTS
   =================================================== */

.notification-container {
  position: relative;
  z-index: 1050;
  margin: 0;
  padding: 0;
}

.notification-bar {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 3px solid rgba(0,0,0,0.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notification-icon {
  display: flex;
  align-items: center;
}

.notification-content {
  font-weight: 400;
}

.notification-content strong {
  font-weight: 600;
  margin-right: 0.5rem;
}

.alert-success {
  background-color: var(--alert-success-bg);
  color: var(--alert-success-text);
}

.alert-error, .alert-danger {
  background-color: var(--alert-error-bg);
  color: var(--alert-error-text);
}

.alert-warning {
  background-color: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}

.alert-info {
  background-color: var(--alert-info-bg);
  color: var(--alert-info-text);
}

/* ===================================================
   5. CARD INTERACTIONS
   =================================================== */

.hover-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-card-shadow);
}

/* ===================================================
   6. THEME & BACKGROUND COLORS
   =================================================== */

[data-bs-theme="dark"] .navbar.bg-body-tertiary {
  background-color: var(--primary-dark-bg) !important;
}

footer.bg-dark {
  background-color: var(--primary-dark-bg) !important;
}

.search-bar-section {
  background-color: var(--primary-dark-bg) !important;
}

aside.text-bg-dark {
  background-color: var(--primary-dark-bg) !important;
}

/* ===================================================
   7. LOGO & BRANDING
   =================================================== */

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.site-logo:hover {
  opacity: 0.9;
  text-decoration: none;
}

.logo-image {
  height: var(--logo-height);
  width: auto;
  transition: opacity 0.2s ease;
}

.logo-image:hover {
  opacity: 0.9;
}

.site-tagline {
  font-size: var(--site-tagline-font-size) !important;
  font-weight: bold;
  background: linear-gradient(135deg, #fff 0%, #ffc0cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

/* ===================================================
   8. NAVIGATION
   =================================================== */

.nav-buttons-row {
  gap: 0.35rem !important;
}

.nav-buttons-row .btn {
  white-space: nowrap;
}

.nav-link {
  font-size: var(--font-size-nav-link) !important;
  padding: 0.4rem 0.6rem !important;
}

.nav-link i {
  font-size: var(--font-size-nav-link-icon) !important;
}

/* Reduce vertical padding on 4 anchor buttons only (Browse, Messages, Profile, Sign Out) */
.nav-buttons-row a.btn-sm {
  padding: 0.08rem 0.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}


/* Show text on small screens and up */
@media (min-width: 576px) {
  .nav-buttons-row .btn .btn-text {
    display: inline;
  }

  .nav-buttons-row .btn i {
    margin-right: 0.25rem !important;
  }

  .nav-link {
    font-size: 0.75rem !important;
  }

  .nav-link i {
    font-size: 0.7rem !important;
  }
}

/* ===================================================
   9. FOOTER
   =================================================== */

footer.text-white a,
footer.text-white span {
  font-size: var(--font-size-footer) !important;
}

footer.text-white i {
  font-size: var(--font-size-footer-icon) !important;
}

/* ===================================================
   10. BUTTONS & FORM CONTROLS
   =================================================== */

@media (min-width: 1200px) {
  .btn {
    font-size: var(--btn-font-size);
    padding: var(--btn-padding);
  }

  .btn-sm {
    font-size: var(--btn-sm-font-size);
    padding: var(--btn-sm-padding);
  }

  .btn-lg {
    font-size: var(--btn-lg-font-size);
    padding: var(--btn-lg-padding);
  }

  .form-control, .form-select {
    font-size: var(--form-control-font-size);
    padding: var(--form-control-padding);
  }

  .form-label {
    font-size: var(--form-label-font-size);
    margin-bottom: var(--form-label-margin-bottom);
  }
}

/* Badge responsive sizing */
@media (min-width: 768px) {
  .badge {
    font-size: 0.875rem;
    padding: 0.375em 0.75em;
  }
}

@media (min-width: 1200px) {
  .badge {
    font-size: var(--badge-font-size);
    padding: var(--badge-padding);
  }
}

/* ===================================================
   11. PROFILE CARDS (Browse Page)
   =================================================== */

.profile-card-horizontal {
  transition: transform 0.2s, box-shadow 0.2s;
  height: var(--profile-card-height);
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  border: 2px solid var(--card-border-color);
  border-radius: 8px;
  margin: 0.5rem auto;
}

.profile-card-horizontal.has-primary-tag {
  height: var(--profile-card-height-with-tag);
}

.profile-card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  border-color: #adb5bd;
}

.own-profile-card {
  border: 3px solid #0d6efd;
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.25);
}

.own-profile-card:hover {
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5);
}

.clickable-card {
  cursor: pointer;
}

/* Profile card body */
.profile-card-horizontal .card-body {
  height: var(--profile-card-body-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--card-padding) !important;
}

.profile-card-horizontal.has-primary-tag .card-body {
  height: var(--profile-card-body-height-with-tag);
}

/* Profile photo container */
.profile-photo-horizontal {
  height: var(--profile-photo-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 0.5rem;
}

.profile-card-horizontal.has-primary-tag .profile-photo-horizontal {
  height: var(--profile-photo-height-with-tag);
}

@media (min-width: 768px) {
  .profile-photo-horizontal {
    padding: 0.625rem;
  }
}

@media (min-width: 1200px) {
  .profile-photo-horizontal {
    padding: 0.75rem;
  }
}

@media (min-width: 1400px) {
  .profile-photo-horizontal {
    padding: 0.875rem;
  }
}

.profile-photo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===================================================
   12. PROFILE INFO TEXT
   =================================================== */

.profile-info-compact {
  line-height: 1.6;
  font-size: var(--font-size-profile-info);
}

.profile-info-compact small {
  line-height: 1.6;
  display: block;
  margin-bottom: 0.2rem;
}

.profile-headline {
  font-size: var(--font-size-profile-headline);
  font-weight: 600;
  color: var(--profile-headline-color);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.profile-name {
  font-size: var(--font-size-profile-name);
  font-weight: 400;
  color: var(--profile-name-color);
}

@media (min-width: 768px) {
  .profile-info-compact small {
    margin-bottom: 0.25rem;
  }
}

@media (min-width: 1200px) {
  .profile-info-compact small {
    margin-bottom: 0.3rem;
  }
}

/* ===================================================
   13. BROWSE PAGE SEARCH FORM
   =================================================== */

.badge.bg-orange-subtle {
  background-color: var(--badge-orange-bg) !important;
  color: var(--badge-orange-text) !important;
}

.text-orange-emphasis {
  color: var(--badge-orange-text) !important;
}

.border-orange {
  border-color: var(--badge-orange-border) !important;
}

.search-form-inline {
  background-color: var(--form-bg-light);
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.search-form-inline .d-flex {
  row-gap: 0.5rem;
}

.search-text {
  color: var(--form-text-color);
  font-size: 1rem;
  margin: 0 0.25rem;
  white-space: nowrap;
}

#id_sort {
  background-color: white !important;
  color: #212529 !important;
}

#id_sort:focus,
#id_sort:active {
  background-color: white !important;
  color: #212529 !important;
}

#id_sort option {
  background-color: white;
  color: #212529;
}

.form-control-borderless {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--form-border-color);
  border-radius: 0;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  color: var(--form-text-color);
  min-width: 120px;
}

.form-control-borderless:focus {
  background-color: transparent;
  border-bottom-color: var(--form-focus-color);
  box-shadow: none;
  outline: none;
}

.form-control-underline {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--form-border-color);
  border-radius: 0;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  color: var(--form-text-color);
  width: 3rem;
  text-align: center;
}

#id_zip_code.form-control-underline {
  width: 5rem;
}

.form-control-underline:focus {
  background-color: transparent;
  border-bottom-color: var(--form-focus-color);
  box-shadow: none;
  outline: none;
}

.form-control-underline::placeholder {
  color: #adb5bd;
}

/* ===================================================
   14. ACTION ICONS (Like, Block)
   =================================================== */

.profile-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--action-icon-size);
  height: var(--action-icon-size);
  background-color: var(--action-icon-bg);
  border-radius: 50%;
  color: var(--action-icon-text);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.action-icon:hover {
  background-color: white;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.heart-icon {
  color: var(--heart-color);
}

.heart-icon.liked {
  color: var(--heart-color);
  background-color: rgba(220, 53, 69, 0.1);
}

.heart-icon.liked i {
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(0.95); }
}


/* ===================================================
   15. PROFILE BADGES OVERLAY
   =================================================== */

.profile-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-icon-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--badge-icon-size);
  height: var(--badge-icon-size);
  font-size: 1rem;
  opacity: 0.85;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.badge-icon-overlay:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.profile-badge-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.profile-badge-label:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Badge color variants */
.badge.bg-info-subtle {
  background-color: var(--badge-info-bg) !important;
  color: var(--badge-info-text) !important;
}

.badge.bg-danger-subtle {
  background-color: var(--badge-danger-bg) !important;
  color: var(--badge-danger-text) !important;
}

.badge.bg-warning-subtle {
  background-color: var(--badge-warning-bg) !important;
  color: var(--badge-warning-text) !important;
}

.badge.bg-success-subtle {
  background-color: var(--badge-success-bg) !important;
  color: var(--badge-success-text) !important;
}

/* ===================================================
   16. HOME PAGE - HERO & FEATURES
   =================================================== */

.page-background {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.content-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.footer-section {
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 3rem;
}

.feature-cards-inline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  font-family: 'Inter', sans-serif;
}

.feature-card-inline {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card-inline:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 1);
  text-decoration: none;
}

.feature-card-highlight {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--feature-highlight-color);
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.3);
}

.feature-card-highlight:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px rgba(216, 67, 21, 0.4);
}

.feature-card-highlight .feature-title {
  color: var(--feature-highlight-color);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-card-highlight .feature-icon {
  color: var(--feature-highlight-color);
  font-size: 3rem;
}

.feature-link {
  color: var(--feature-link-color);
  text-decoration: underline;
  cursor: pointer;
}

.feature-link:hover {
  color: var(--feature-link-hover-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--feature-link-color);
}

.feature-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--feature-title-color);
}

.feature-text {
  font-weight: 300;
  color: var(--feature-text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

.welcome-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 400;
}

.beta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  color: white;
}

.copyright-text {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  color: white;
}

/* Home page mobile responsiveness */
@media (max-width: 992px) {
  .page-background {
    min-height: calc(100vh - 56px);
  }

  .content-section {
    padding: 1.5rem 1rem 0.5rem 1rem;
  }

  .footer-section {
    padding: 0.75rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .background-image {
    opacity: 0.2;
    width: 100%;
    height: 100%;
    top: 0;
  }

  .feature-cards-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .feature-card-inline {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    flex: 0 0 auto;
  }

  .feature-icon {
    font-size: 1rem;
    margin-bottom: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  .feature-title {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .feature-text {
    display: none;
  }

  .beta-badge {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Mobile: "Connect with Google" button - match feature card visual weight */
@media (max-width: 992px) {
  .mobile-auth-btn {
    font-size: 1.15rem !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 600;
  }
}

/* ===================================================
   17. PROFILE DETAIL PAGE - PHOTO CAROUSEL
   =================================================== */

.photo-container {
  height: var(--photo-carousel-height);
  overflow: hidden;
  position: relative;
}

.carousel-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 20px 20px;
}

/* Responsive button sizing on profile detail */
@media (max-width: 767px) {
  .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
}


/* ===================================================
   18. MOBILE PROFILE DETAIL - COMPACT LAYOUT
   =================================================== */

/* Top-left overlay on photo (primary tag, sex, referrals) */
.profile-photo-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  pointer-events: none;
}

/* Top-right overlay on photo (badges) */
.profile-photo-overlay-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  pointer-events: none;
}

/* Bottom gradient overlay on photo (name, age, location) */
.profile-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.65) 100%);
  padding: 2.5rem 1rem 0.75rem;
  z-index: 5;
  pointer-events: none;
}

.profile-photo-overlay h5 {
  font-size: 1.2rem !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.profile-photo-overlay p {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Move photo counter above overlay on mobile */
@media (max-width: 767px) {
  .mobile-photo-counter-adjust {
    bottom: 2.5rem !important;
  }
}

/* Mobile profile section spacing */
.mobile-profile-section {
  padding: 0.5rem 0;
}

/* Mobile details - centered items without boxes */
.mobile-details-section {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.mobile-details-section div.mb-1 {
  font-size: 0.85rem;
}

/* ===================================================
   END OF RESPONSIVE DESIGN SYSTEM
   =================================================== */
