/* === Styles from index.ejs === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  color: white;
  padding: 30px 20px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo span {
  color: #66f0ff;
}
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}
main {
  padding: 20px;
}
.mood-check {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.moods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px; /* or try 20px for more space */
  margin: 20px 0;
}
.mood {
  flex: 0 1 calc(33.333% - 20px); /* auto wrap */
  max-width: 100px;
  height: 100px; /* make it square */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
}
@media (min-width: 600px) {
  .mood {
    flex: 0 1 calc(20% - 20px);
  }
}
.mood.active {
  background: #66f0ff;
  color: white;
}
.tools {
  margin-top: 30px;
}
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === Styles from moodtracker.ejs === */
.log-mood-form, .mood-insights {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.section-title {
  color: #7b2ff7;
  font-weight: 600;
  margin-bottom: 10px;
}
ul {
  padding-left: 20px;
}
.intensity {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}
.intensity button {
  background: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  font-weight: bold;
  cursor: pointer;
}
.intensity button.active {
  background: #f107a3;
  color: white;
  border: none;
}
textarea {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
}
button.save-mood {
  margin-top: 20px;
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

/* === Added Displayed Name Style at Banner === */
.nav-user {
  color: #f4f6f8;
  font-size: larger;
  font-weight: 600;
  margin-bottom: 10px;
}

/* === Added form style for Login and Register === */
.form-group {
  margin-bottom: 15px;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* === Added button style === */
button.log-mood {
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

/* === Added for Grid to be tiled  === */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.support-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* === Updated styles for toolkit grid: 3 cards per row === */
.toolkits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.toolkits-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.toolkits-thumb {
  width: 100%;
  height: auto;
}
.toolkits-content {
  padding: 15px;
}
.toolkits-title {
  font-weight: bold;
  color: #7b2ff7;
  margin-bottom: 5px;
}
.toolkits-desc {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.watch-link {
  color: #7b2ff7;
  font-weight: bold;
  text-decoration: none;
}

/* === Updated styles for video grid: 3 cards per row === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.video-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.video-thumb {
  width: 100%;
  height: 180px;
  background: #ddd;
  position: relative;
}
.video-thumb::after {
  content: '\25B6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 10px;
  border-radius: 50%;
}
.video-content {
  padding: 15px;
}
.video-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.video-desc {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.watch-link {
  color: #7b2ff7;
  font-weight: bold;
  text-decoration: none;
}

/* === Updated styles for mood recommendation === */
.recommendation-list li a {
  text-decoration: none;       /* Removes underline */
  color: #7b2ff7;              /* Branded purple color */
  font-weight: 500;            /* Slight emphasis */
  transition: color 0.3s ease;
}

.recommendation-list li a:hover {
  color: #a26bfa;              /* Lighter shade on hover */
}