/* Bond Tree Enhanced Friends Layout */

/* Base Layout Adjustments */
body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* Fix for iOS Safari 100vh issue */
}

/* Modal height fix for mobile browsers */
.modal-overlay, 
.note-modal, 
.friend-note-modal {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

/* Friends List Container */
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Bondship Tree Visualization */
.bondship-tree {
  background: linear-gradient(135deg, #4a90e2 0%, #7ed6df 100%);
  padding: 30px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 15px 15px 0 0;
}

.tree-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.tree-pot {
  display: none; /* Removed pot as it's now part of the SVG */
}

/* Bondship Status Bar */
.bondship-status {
  background-color: #f9ca24;
  padding: 15px;
  text-align: center;
}

.bondship-status h3 {
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #000;
  margin: 0;
}

/* Friend Cards Layout */
.friend-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px;
  background-color: #e9f2fc;
  justify-content: center;
  border-radius: 0 0 16px 16px;
}

.friend-card {
  background-color: white;
  border-radius: 12px;
  width: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.friend-name {
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 0 0 15px 0;
  text-align: center;
  color: #333;
}

/* Mood Circle & Information */
.friend-mood-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.friend-mood-name {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

.mood-date-time {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 10px;
  text-align: center;
}

.mood-emojis {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 1.5rem;
}

/* Action Buttons */
.delete-friend-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-friend-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.delete-friend-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Note Indicator */
.mood-note-indicator {
  cursor: pointer;
  margin-left: 5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.mood-note-indicator:hover {
  opacity: 1;
  color: #4a90e2;
}

/* Dashboard Layout */
.dashboard-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.dashboard-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 120px;
  width: 100%;
}

.btn-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Logout Button Layout */
#logout-btn-container {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

#logout-btn {
  max-width: 250px;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .friend-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .friend-card {
    width: 90%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .bondship-tree {
    padding: 20px 10px 0;
  }
  
  .friend-cards-container {
    padding: 15px 10px;
  }
  
  .friend-card {
    width: 100%;
    max-width: none;
  }
  
  .friend-mood-circle {
    width: 100px;
    height: 100px;
  }
  
  .delete-friend-btn {
    min-height: 44px;
    min-width: 44px;
    width: 100%;
  }
}