/* --- GLOBAL STYLES --- */
body {
  margin: 0;
  font-family: sans-serif;
  background: url('images/fondo_moodlift.svg') no-repeat center center fixed;
  background-size: center;
  color: white;
  text-align: center;
}

form {
  margin-top: 2rem;
}

input,
button {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem;
  width: 80%;
  max-width: 300px;
}

/* --- HOME PAGE --- */
body.home {
  overflow-x: hidden;
}

/* --- GREETING STYLES --- */
.greeting {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0px;
}
.greeting-phrase{
  margin-top: 10px;
  text-align: center;
  font-size: 1.5rem;
}

/* --- EMOTION CIRCLES LAYOUT --- */
.emotion-layout {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 50px;
  margin-bottom: 60px;
}

/* Estilo base de todos los círculos */
.emotion-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  color: #2d2d2d;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  background-color: gray;
}

.emotion-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}


/* Posiciones personalizadas */
#circle-1 { top: 200px; left: 15%; background-color: #BFBFBF; }
#circle-2 { top: 100px; left: 25%; background-color: #C6B6D8; }
#circle-3 { top: 200px; left: 35%; background-color: #A8C3D3; }
#circle-4 { top: 0px; left: 50%; } 
#circle-5 { top: 200px; right: 27%; background-color: #D0EFD4; }
#circle-6 { top: 300px; right: 17%; background-color: #FFDAB9; }
#circle-7 { top: 200px; right: 7%; background-color: #F28B82; }

/* --- MINI CALENDARIO EMOCIONAL --- */
.calendar {
  margin: auto;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 1rem 2rem;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 90%;
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.calendar h3 {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: white;
}

.week-tracker {
  display: flex;
  gap: 10px;
}

.day-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #2d2d2d;
  background-color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.3s;
}

.day-bubble.today {
  border: 2px solid white;
}

.day-label{
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 6px;
  color: white;
}

.calendar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
  transition: all 0.2s ease;
}



/* Colores emocionales para calendario */
.Sad { background-color: #A8C3D3 !important; }
.Anxious { background-color: #D0EFD4 !important; }
.Angry { background-color: #F28B82 !important; }
.Stressed { background-color: #FFDAB9 !important; }
.Lonely { background-color: #C6B6D8 !important; }
.Empty { background-color: #BFBFBF !important; }

/* --- TEXT MODIFIERS --- */
#emotion-description {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

#emotion-description h2,
#emotion-description h3 {
  color: #ffffff;
  margin-top: 1.5rem;
}

#emotion-description p {
  margin: 1rem 0;
}

#emotion-description ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

#emotion-description li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

#emotion-description em {
  font-style: italic;
  color: #dddddd;
}

/* Accessibility */
a:focus {
  outline: none;
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin: 20px 0;
}


.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin: 20px 0;
}

.emotion-circle-modal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #2d2d2d;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
  border: 2px solid transparent;
  position: static; /* evita que floten */
}

.emotion-circle-modal:hover {
  transform: scale(1.1);
}

.emotion-circle-modal.selected {
  border: 2px solid black;
}

.center-label {
  color: #2d2d2d;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
}

#center-link {
  text-decoration: none;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

#center-link:hover #circle-4 {
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

#circle-4 .center-label {
  pointer-events: none;
}

/* Círculo central como botón */
#center-link {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 10;
}

#circle-4.center-circle {
  width: 170px;
  height: 170px;
  background-color: #ccc;
  background-image: url('images/central-avatar.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#center-link:hover .center-circle {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #a2a2a2;
}

/* ERD */
.centered-image {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  height: auto;
  border-radius: 16px;
}

