/* Favorites page styling */

.favorite-card {
  background-color: var(--mango-blue);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.favorite-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.favorite-card .card-body {
  padding: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.3rem;
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  
  .content {
    overflow-x: hidden;
  }
  
  .col-md-12 {
    padding-left: 0;
    padding-right: 0;
  }

  .favorite-card .card-body {
    padding: 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.2rem;
  }
  
  .favorite-card-content {
    min-height: 50px;
  }
  
  .favorite-card {
    border-radius: 8px;
    margin-top: 8px;
    padding-top: 6px;
  }
  
  .content .favorites-card-wrapper {
    background: transparent;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
  }
  
  .content .favorites-card-wrapper .card-header {
    background: transparent;
    padding: 0.5rem 0.5rem;
  }
  
  .content .favorites-card-wrapper .card-body {
    padding: 0.5rem 0.5rem;
  }
  
  #favorites-container .row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .col-6 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* Icon styling */
.favorite-icon-wrapper {
  position: absolute;
  top: -20px;
  left: 15px;
  z-index: 2;
}

.favorite-icon { 
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--mango-blue-dark, #171723);
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.stock-icon {
  font-size: 1.6rem;
  color: #e14eca;
  background-color: var(--mango-blue-dark, #171723);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .favorite-icon {
    width: 35px;
    height: 35px;
  }
}

.favorite-card-content {
  display: flex;
  flex-direction: column;
  margin-top: 0.4rem;
  margin-left: 0;
  position: relative;
  min-height: 60px;
}

.favorite-card-left {
  text-align: left;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.symbol-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
}

.price-value {
  font-size: 1rem;
  font-weight: 500;
}

.sr-label,
.support-value,
.resistance-value {
  white-space: nowrap;
}

.sr-row {
  display: flex;
  align-items: center;
  gap: 0.2em;
  max-width: 100%;
  overflow: hidden;
}

.support-value,
.resistance-value {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 5.5em;
  display: inline-block;
  vertical-align: bottom;
}

/* Trend badges */
.trend-badge {
  padding: 0.25rem 0.6rem;
  font-weight: 600;
  font-size: 0.7rem;
  align-self: flex-start;
  margin-bottom: 0.1rem;
}

.trend-position-top-right {
  position: relative;
  top: auto;
  right: auto;
}

/* BBWP circle */
.bbwp-container {
  display: flex;
  justify-content: flex-start;
}

.gradient-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.decorators-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.symbol-decorators {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.bbwp-position-bottom-left {
  margin-left: 0;
}

.symbol-decorator {
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .decorators-row {
    margin-top: 0.2rem;
  }
  
  .symbol-decorators {
    gap: 0.25rem;
  }
  
  .symbol-decorator {
    font-size: 0.8rem;
  }
  
  .gradient-circle {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  
  .badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
  }
  
  hr {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
  }
}

/* Delete button styling */
.favorite-delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.favorite-card:hover .favorite-delete-btn {
  opacity: 1;
}

.support-value {
  color: var(--mango-green); /* Same green as trend-long */
}

.resistance-value {
  color: var(--mango-red); /* Same red as trend-short */
}


/* For mobile, show on active state instead of hover */
@media (max-width: 767px) {
  .favorite-card .favorite-delete-btn {
    opacity: 0;
  }
  
  .favorite-card.active .favorite-delete-btn {
    opacity: 1;
  }
  
  .favorite-delete-btn {
    width: 28px;
    height: 28px;
    top: 3px;
    right: 3px;
  }
}