/* ============================================================================
   HAPPY PET - STYLING DESIGN SYSTEM
   ============================================================================ */

/* CSS Variables */
:root {
  /* Premium Palette */
  --primary: #c34a26;          /* Deep warm coral/terracotta */
  --primary-light: #fbece6;    /* Soft peach tint */
  --secondary: #007a78;        /* Teal accent */
  --secondary-light: #e6f5f4;  /* Soft teal tint */
  --bg-color: #faf7f2;         /* Warm cream canvas */
  --surface: #ffffff;          /* Pure white cards */
  --text-main: #2b2523;        /* Charcoal brown for high readability */
  --text-muted: #736b67;       /* Soft warm grey */
  --border-color: #f1eae2;     /* Subtle divider border */
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --danger: #c62828;
  
  /* Fonts */
  --font-family-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --app-max-width: 480px;      /* Standard mobile app shell wrapper */
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-body);
  background-color: #ede7de; /* Outer body environment background */
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Shell (Centered phone-like container) */
.app-shell {
  width: 100%;
  max-width: var(--app-max-width);
  height: 100vh;
  max-height: 920px;
  background-color: var(--bg-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 8px solid #2b2523; /* Phone frame boundary */
}

/* Scrollbar customization */
.app-content::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
  display: none; /* Hide scrollbars for app feel */
}

/* HEADER */
.app-header {
  height: 64px;
  background-color: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--primary-light);
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* MAIN SCROLLABLE CONTENT */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0 100px 0; /* Add bottom padding so navigation item doesn't cover content */
}

/* SECTION CONTAINER */
.section {
  padding: 16px 20px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.view-all-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* BADGE LABELS */
.badge-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.badge-label.green { background-color: var(--secondary-light); color: var(--secondary); }
.badge-label.light-blue { background-color: #e0f2fe; color: #0369a1; }
.badge-label.orange-badge { background-color: #ffedd5; color: #c2410c; }
.badge-label.blog-badge { background-color: #fae8ff; color: #a21caf; }
.badge-label.expert-badge { background-color: #f3e8ff; color: #6b21a8; }
.badge-label.store-badge { background-color: #fef3c7; color: #b45309; }
.badge-label.inline-badge { margin-bottom: 6px; }

/* COMPANION CAROUSEL */
.companion-carousel {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}

.companion-list {
  display: flex;
  gap: 16px;
  align-items: center;
}

.companion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.companion-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.avatar-ring {
  padding: 3px;
  border-radius: 20px;
  border: 2px solid transparent;
  display: inline-block;
  transition: all 0.2s ease;
}

.companion-card.active .avatar-ring {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.companion-card:hover .companion-avatar {
  transform: scale(1.05);
}

.companion-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.companion-card.active .companion-name {
  color: var(--primary);
}

.add-companion-btn {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  border: 2px dashed #d1c7bc;
  background-color: #f6efe6;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-companion-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.plus-icon {
  font-size: 26px;
  color: var(--text-muted);
  font-weight: 300;
}

/* WALK timer BANNER */
.walk-banner {
  position: absolute;
  right: 12px;
  bottom: 92px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  border: 3px solid #ffd8cc;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(242, 79, 19, 0.12);
  gap: 4px;
}

.walk-banner-icon {
  display: none;
}

.walk-banner-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.walk-banner-status {
  font-size: 10px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #736b67;
}

.walk-banner-timer {
  font-family: var(--font-family-title);
  font-size: 20px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.5px;
}

.stop-walk-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.stop-walk-btn:hover {
  background-color: #a83d1c;
  transform: translateY(-1px);
}

/* RECORDS GRID */
.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.record-grid-btn {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.record-grid-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(195, 74, 38, 0.08);
}

.btn-icon {
  font-size: 20px;
}

.btn-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* HORIZONTAL SCROLL */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding: 4px 0 12px 0;
  scroll-snap-type: x mandatory;
}

/* MEALS RECIPES */
.recipe-card {
  flex: 0 0 190px;
  background-color: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  scroll-snap-align: start;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.recipe-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.recipe-info {
  padding: 10px;
}

.recipe-tag {
  font-size: 9px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.recipe-title {
  font-family: var(--font-family-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: normal;
  color: var(--text-main);
}

.recipe-meta-text {
  font-size: 10px;
  color: var(--text-muted);
}

/* BLOG CARD */
.blog-card {
  height: 140px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-card:hover {
  transform: scale(1.01);
}

.blog-info h3 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-family-title);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 10px;
}

.author-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* FIND FURRY FRIENDS */
.dark-bg {
  background-color: #8c3214; /* Deep brick/terracotta */
  border-radius: 24px;
  margin: 16px 20px;
}

.text-white {
  color: white;
}

.furry-card {
  flex: 0 0 160px;
  background-color: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  text-align: center;
  scroll-snap-align: start;
}

.furry-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.furry-name {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.furry-loc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.furry-parent {
  font-size: 9px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.connect-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  width: 100%;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.connect-btn.connected {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.connect-btn:hover {
  transform: scale(1.02);
}

.footer-action-link {
  display: block;
  text-align: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
}

/* CO-PARENTING SECTION */
.coparent-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
}

.coparent-text {
  flex: 1;
}

.coparent-text h3 {
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.coparent-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.invite-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.coparent-image img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

/* SMART PET PARENTING GUIDES */
.guide-card {
  flex: 0 0 190px;
  height: 250px;
  background-color: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.video-thumb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.guide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay on card to make bottom white text readable */
.guide-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff7a45, #f24f13);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: white;
  box-shadow: 0 4px 12px rgba(242, 79, 19, 0.4);
  z-index: 3;
}

.guide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
}

.guide-title {
  font-family: var(--font-family-title);
  font-size: 16px;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  text-transform: uppercase;
  margin: 0;
}

/* PET STORES SECTION */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-name {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 13px;
}

.store-addr {
  font-size: 11px;
  color: var(--text-muted);
}

.store-distance {
  font-size: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.store-action-btn {
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* FOOTER FACTS & PROMO */
.fact-banner {
  text-align: center;
  padding: 24px 20px;
  background-color: #faf4ec;
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
}

.fact-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.fact-body {
  font-family: var(--font-family-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin: 6px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.fact-footer {
  font-size: 10px;
  color: var(--text-muted);
}

.invite-promo-card {
  background-color: #bf3f1b; /* Rich orange red */
  color: white;
  border-radius: 20px;
  margin: 8px 20px 24px 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(191,63,27,0.15);
}

.invite-promo-card h3 {
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.invite-promo-card p {
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 14px;
}

.invite-friends-btn {
  background-color: white;
  color: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invite-friends-btn:hover {
  transform: scale(1.02);
}

/* BOTTOM NAVIGATION */
.app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  height: 100%;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
}

.nav-item.center-item {
  position: relative;
  top: -15px;
  background-color: var(--primary);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-grow: 0;
  flex-basis: 54px;
  box-shadow: 0 4px 12px rgba(195, 74, 38, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

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

.nav-icon-plus {
  font-size: 26px;
  font-weight: 300;
}

/* ==================== MODALS & OVERLAYS ==================== */

.modal {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: flex-end; /* Slide up from bottom */
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background-color: var(--surface);
  width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px;
  max-height: 85%;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-family: var(--font-family-title);
  font-size: 16px;
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-family: var(--font-family-body);
  font-size: 13px;
  background-color: var(--bg-color);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.pet-type-selector {
  display: flex;
  gap: 12px;
}

.type-option {
  flex: 1;
  cursor: pointer;
}

.type-option input {
  display: none;
}

.type-card {
  display: block;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  background-color: var(--bg-color);
  transition: all 0.2s ease;
}

.type-option input:checked + .type-card {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.primary-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  width: 100%;
  padding: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.primary-btn:hover {
  background-color: #a83d1c;
}

.secondary-btn {
  background-color: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  width: 100%;
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.timer-alternative {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  text-align: center;
}

.timer-alternative p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* OVERLAY TAB VIEW (Diary & History) */
.tab-view {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 72px; /* Anchor above bottom nav */
  background-color: var(--bg-color);
  z-index: 50;
  flex-direction: column;
  animation: slideInLeft 0.25s ease;
}

.tab-view.active {
  display: flex;
}

.tab-header {
  height: 64px;
  background-color: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab-header h2 {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
}

.close-tab-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
}

.diary-filters {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

.filter-chip {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.diary-timeline {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Timeline Cards */
.timeline-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  position: relative;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-type {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  width: fit-content;
}

.timeline-type.walk { background-color: var(--secondary-light); color: var(--secondary); }
.timeline-type.vaccine { background-color: #f3e8ff; color: #6b21a8; }
.timeline-type.deworming { background-color: #fae8ff; color: #a21caf; }
.timeline-type.grooming { background-color: #fee2e2; color: #b91c1c; }
.timeline-type.meal { background-color: #e0f2fe; color: #0369a1; }
.timeline-type.weight { background-color: #fef3c7; color: #b45309; }
.timeline-type.expense { background-color: #e2f0d9; color: #385723; }
.timeline-type.general { background-color: #f1eae2; color: var(--text-muted); }

.timeline-time {
  font-size: 10px;
  color: var(--text-muted);
}

.timeline-title {
  font-family: var(--font-family-title);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-notes {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Recipe & Video Modal Additions */
.recipe-detail-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.recipe-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.recipe-modal-body h4 {
  font-family: var(--font-family-title);
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px 0;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.recipe-modal-body ul, 
.recipe-modal-body ol {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
}

.recipe-modal-body li {
  margin-bottom: 4px;
}

/* Video Modal Detail */
.video-content {
  padding: 16px;
}

.video-player-container {
  width: 100%;
  background-color: black;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.mock-video-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: rgba(0,0,0,0.4);
  gap: 10px;
}

.play-big-icon {
  font-size: 32px;
}

.video-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Notifications list styling */
.notification-item {
  display: flex;
  gap: 14px;
  background-color: var(--surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  position: relative;
}

.notification-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #f7f5f0;
  border-radius: 12px;
  flex-shrink: 0;
}

.notification-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notification-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.notification-item-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.notification-item-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notification-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.notification-action-btn {
  background-color: #f24f13; /* Terracotta orange matching image */
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease;
}

.notification-action-btn:hover {
  background-color: #d13d07;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Desktop scaling enhancements */
@media (min-width: 480px) {
  body {
    padding: 20px 0;
  }
}

/* ==================== PET SHOTS SECTION ==================== */
.shots-section {
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
}

.shot-card {
  flex: 0 0 220px;
  background-color: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.shot-img {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

.shot-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.shot-title {
  font-family: var(--font-family-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.shot-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.shot-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.shot-author-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==================== CUSTOM BADGES & WAVY DIVIDERS ==================== */
.tilted-badge {
  display: inline-block;
  background-color: #009fa5; /* Teal / blue-green */
  color: white !important;
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 12px;
  transform: rotate(-3deg);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 6px;
  text-align: center;
}

.badge-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}

.wavy-dotted-line {
  flex: 1;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 C6 12, 12 0, 24 6' fill='none' stroke='%232b2523' stroke-width='2' stroke-dasharray='1 4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.35;
  margin-left: 10px;
  align-self: center;
}

/* Community & Account Overlays Custom Elements */
.community-pill-switcher {
  display: flex;
  background: #f1eae2;
  border-radius: 24px;
  padding: 4px;
}

.community-pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.community-pill-btn.active {
  background: white;
  color: #f24f13 !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.community-pane {
  display: none;
  flex-direction: column;
  flex: 1;
}

.community-pane.active {
  display: flex !important;
}

/* Detail Editing row styles */
.account-detail-row {
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 4px;
}

.account-detail-row:hover {
  background-color: var(--primary-light);
}


