/* ==========================================================================
   Matcha Lab 🍵 - Profile & Saved Screens CSS
   ========================================================================== */

/* Sub-Tab Switcher Component */
.tab-switcher-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  width: fit-content;
  margin: 1.5rem 0 2.5rem 0;
  backdrop-filter: blur(8px);
}

.sub-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sub-tab-btn:hover {
  color: var(--color-forest);
}

.sub-tab-btn.active {
  background: var(--color-forest);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 46, 32, 0.2);
}

/* Profile Header Card */
.profile-card-header {
  background: var(--color-cream-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: var(--color-matcha-pale);
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-details h2 {
  font-size: 1.7rem;
  color: var(--color-forest);
  margin-bottom: 0.35rem;
}

.profile-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-stat-box {
  text-align: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-forest);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Custom Blend Saved Card */
.custom-blend-card {
  background: var(--color-cream-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.custom-blend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 107, 83, 0.3);
}

.blend-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.blend-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-matcha-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.blend-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.35rem;
}

.blend-ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}

.blend-instructions-box {
  background: var(--color-cream);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.blend-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Activity Feed Items */
.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}

.activity-feed-item {
  background: var(--color-cream-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.activity-feed-item:hover {
  transform: translateX(4px);
  border-color: var(--color-matcha-light);
}

.activity-main-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.activity-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.activity-icon-bubble.like {
  background: #FEE2E2;
  color: #DC2626;
}

.activity-icon-bubble.comment {
  background: #E0E7FF;
  color: #4F46E5;
}

.activity-icon-bubble.rate {
  background: #FEF3C7;
  color: #D97706;
}

.activity-icon-bubble.created {
  background: var(--color-matcha-pale);
  color: var(--color-forest);
}

.activity-text-wrap h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.activity-text-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activity-timestamp {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .profile-card-header {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }
  .profile-user-info {
    flex-direction: column;
  }
  .profile-stats-row {
    width: 100%;
    justify-content: space-around;
  }
}
