/* Lemonade Lab Feed Styles v5.3.0 */

/* =========================================================
   Variables
   ========================================================= */
:root {
  --ll-orange: #F5A623;
  --ll-orange-dark: #E8951A;
  --ll-yellow: #FDE047;
  --ll-yellow-dark: #FACC15;
  --ll-teal: #6BA5A8;
  --ll-teal-dark: #4E8B8E;
  --ll-green-check: #34C759;
  --ll-star: #FFC107;
  --ll-heart: #E74C4C;
  --ll-bg: #FFFBEB;
  --ll-card-bg: #FFFFFF;
  --ll-text: #2D3436;
  --ll-text-muted: #9E9E9E;
  --ll-text-secondary: #636E72;
  --ll-border: #E8E8E8;
  --ll-radius-card: 20px;
  --ll-radius-img: 14px;
  --ll-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --ll-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Feed Wrapper
   ========================================================= */
.lemonade-feed-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.lemonade-feed-wrapper.is-playful {
  background: var(--ll-bg);
  border-radius: var(--ll-radius-card);
  padding: 2rem;
}

/* =========================================================
   Filters
   ========================================================= */
.lemonade-feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-pill {
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #D1D5DB;
  background: white;
  color: var(--ll-text);
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: var(--ll-yellow);
  transform: translateY(-2px);
}

.filter-pill.is-active {
  background: var(--ll-yellow);
  border-color: var(--ll-yellow-dark);
  font-weight: 600;
  box-shadow: var(--ll-shadow);
}

/* =========================================================
   Cards Grid
   ========================================================= */
.lemonade-feed-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .lemonade-feed-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .lemonade-feed-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .lemonade-feed-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =========================================================
   Individual Card
   ========================================================= */
.lemonade-card {
  display: flex;
  flex-direction: column;
  background: var(--ll-card-bg);
  border-radius: var(--ll-radius-card);
  overflow: visible;
  text-decoration: none;
  color: var(--ll-text);
  box-shadow: var(--ll-shadow);
  transition: all 0.3s ease;
}

.lemonade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-hover);
}

.lemonade-card.is-hidden {
  display: none;
}

/* =========================================================
   Card Media / Image Area
   ========================================================= */
.lemonade-card-media {
  position: relative;
  padding: 12px 12px 0;
}

.lemonade-card-media-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--ll-radius-img);
  overflow: hidden;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lemonade-card-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lemonade-card-placeholder {
  font-family: 'Fredoka', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   Discovery Badge (Top Left on Image)
   ========================================================= */
.lemonade-discovery-badge {
  position: absolute;
  top: 24px;
  left: -6px;
  padding: 7px 18px 7px 16px;
  border-radius: 0 20px 20px 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #FFFFFF;
  z-index: 5;
  letter-spacing: 0.02em;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.25);
}

/* Small folded-back triangle behind the sticker */
.lemonade-discovery-badge::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #c47a10 50%, transparent 50%);
}

.lemonade-discovery-badge.new {
  background: var(--ll-orange);
}

.lemonade-discovery-badge.new::before {
  background: linear-gradient(135deg, #c47a10 50%, transparent 50%);
}

.lemonade-discovery-badge.trending {
  background: #E74C4C;
}

.lemonade-discovery-badge.trending::before {
  background: linear-gradient(135deg, #a13232 50%, transparent 50%);
}

.lemonade-discovery-badge.smart-idea {
  background: var(--ll-teal);
}

.lemonade-discovery-badge.smart-idea::before {
  background: linear-gradient(135deg, #3d6e70 50%, transparent 50%);
}

/* =========================================================
   Business Identity (Bottom Left on Image)
   ========================================================= */
/* Pill-shaped container that holds the logo + business name together.
   Matches the Explore page card style. */
.lemonade-business-identity {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 4px 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  max-width: calc(100% - 24px);
  z-index: 3;
}

.lemonade-business-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lemonade-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lemonade-business-logo span {
  font-size: 1.5rem;
  line-height: 1;
}

.lemonade-business-name-pill {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* =========================================================
   Status Badge (Bottom Right on Image)
   ========================================================= */
.lemonade-status-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 0 0 0 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 3;
}

.lemonade-status-badge .status-icon {
  font-size: 0.8rem;
  line-height: 1;
}

/* =========================================================
   Category Row (Divider Line + Category Pill)
   ========================================================= */
.lemonade-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 4px;
}

.lemonade-category-line {
  flex: 1;
  height: 1px;
  background: var(--ll-border);
}

.lemonade-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* =========================================================
   Trust Indicators
   ========================================================= */
.lemonade-trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px 6px;
}

.lemonade-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ll-text-secondary);
}

.lemonade-trust-item .trust-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

/* =========================================================
   Action Buttons
   ========================================================= */
.lemonade-actions {
  display: flex;
  gap: 10px;
  padding: 8px 4px 0;
}

.lemonade-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.lemonade-btn span {
  font-size: 0.95rem;
  line-height: 1;
}

.lemonade-btn-primary {
  background: var(--ll-yellow);
  color: var(--ll-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lemonade-btn-primary:hover {
  background: var(--ll-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lemonade-btn-secondary {
  background: #FFFFFF;
  color: var(--ll-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lemonade-btn-secondary:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   Card Footer
   ========================================================= */
.lemonade-card-footer {
  padding: 12px 4px 2px;
}

.lemonade-footer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.lemonade-footer-divider::before,
.lemonade-footer-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ll-border);
}

.lemonade-footer-divider span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ll-text-muted);
  white-space: nowrap;
}

.lemonade-footer-message {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ll-text);
  margin: 4px 0 6px;
  line-height: 1.3;
}

.lemonade-safe-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ll-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
  padding-bottom: 0;
}

.lemonade-safe-badge span {
  font-size: 0.75rem;
}

/* =========================================================
   Card Body (container)
   ========================================================= */
.lemonade-card-body {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* =========================================================
   Load More Button
   ========================================================= */
.lemonade-feed-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.lemonade-feed-more {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  background: var(--ll-yellow);
  color: var(--ll-text);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--ll-shadow);
}

.lemonade-feed-more:hover {
  background: var(--ll-yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-hover);
}

.lemonade-feed-more.is-hidden {
  display: none;
}

/* =========================================================
   Stats Section
   ========================================================= */
.lemonade-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.lemonade-stats .stat {
  text-align: center;
}

.lemonade-stats .stat-num {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.lemonade-stats .stat-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .lemonade-stats {
    gap: 2rem;
  }

  .lemonade-stats .stat-num {
    font-size: 3rem;
  }

  .lemonade-stats .stat-label {
    font-size: 0.9rem;
  }
}

/* =========================================================
   Error & Empty States
   ========================================================= */
.lemonade-feed-error,
.lemonade-feed-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--ll-card-bg);
  border-radius: var(--ll-radius-card);
  color: var(--ll-text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
}

/* =========================================================
   Toast Notification
   ========================================================= */
.lemonade-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ll-card-bg);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 320px;
}

.lemonade-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lemonade-toast-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ll-text);
  margin-bottom: 2px;
}

.lemonade-toast-message {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--ll-text-secondary);
}

/* =========================================================
   Theme Variations
   ========================================================= */
.theme-citrus {
  --ll-yellow: #FDE047;
  --ll-yellow-dark: #FACC15;
}

.theme-berry {
  --ll-yellow: #F472B6;
  --ll-yellow-dark: #EC4899;
}

.theme-ocean {
  --ll-yellow: #60A5FA;
  --ll-yellow-dark: #3B82F6;
}

.theme-mint {
  --ll-yellow: #4ADE80;
  --ll-yellow-dark: #22C55E;
}

/* =========================================================
   Playful Mode
   ========================================================= */
.is-playful .lemonade-card:hover {
  transform: translateY(-6px);
}

/* =========================================================
   Explorer Account Modal
   ========================================================= */
.lemonade-explorer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.lemonade-explorer-modal.is-visible {
  display: flex;
}

.lemonade-explorer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lemonade-explorer-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: explorerSlideUp 0.3s ease;
}

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

.lemonade-explorer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9CA3AF;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.lemonade-explorer-close:hover {
  color: #374151;
}

.lemonade-explorer-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.lemonade-explorer-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 10px;
  line-height: 1.3;
}

.lemonade-explorer-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6B7280;
  margin: 0 0 24px;
  line-height: 1.5;
}

.lemonade-explorer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lemonade-explorer-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.lemonade-explorer-btn-primary {
  background: #FDE047;
  color: #1F2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lemonade-explorer-btn-primary:hover {
  background: #FACC15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lemonade-explorer-btn-ghost {
  background: transparent;
  color: #6B7280;
  font-size: 0.85rem;
  padding: 8px 20px;
}

.lemonade-explorer-btn-ghost:hover {
  color: #4B5563;
}

/* Saved button state */
.lemonade-save-btn.is-saved {
  background: #FFF1F2;
}

.lemonade-save-btn.is-saved:hover {
  background: #FFE4E6;
}
