/**
 * @file
 * Styles for My Stream Artists view
 */

/* Group header styling with color */
.view-my-stream-artists .views-group-title {
  background-color: #c5eefd;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Horizontal line after each group */
.view-my-stream-artists .views-view-grid {
  border-bottom: 2px solid #c5eefd;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 1.4rem;
    font-weight: 700;
}

/* Remove border from last group */
.view-my-stream-artists .views-group:last-child {
  border-bottom: none;
}

/* Optional: Style the grid items */
.view-my-stream-artists .views-view-grid {
  width: 100%;
}

.view-my-stream-artists .views-col {
  padding: 5px 10px;
}

/* Artist name links */
.view-my-stream-artists .views-field-title a {
  text-decoration: none;
  color: #c5eefd;
}

.view-my-stream-artists .views-field-title a:hover {
  text-decoration: underline;
  color: #c5eefd;
}

/* Header section styling */
.view-my-stream-artists .my-stream-artists-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .view-my-stream-artists .my-stream-artists-header {
    flex-direction: row;
  }
}

/* Stream link button */
.view-my-stream-artists .my-stream-artists-header .stream-link-button a {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.1;
  border: 2px solid #ffffff;
  padding: 0.45rem 2rem 0.25rem 2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .view-my-stream-artists .my-stream-artists-header .stream-link-button a {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

.view-my-stream-artists .my-stream-artists-header .stream-link-button a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

/* Exposed form styling */
.view-my-stream-artists .my-stream-artists-header .artist-search-form {
  position: unset;
}

@media (min-width: 576px) {
  .view-my-stream-artists .my-stream-artists-header .artist-search-form {
    position: relative;
  }
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details {
  margin: 0;
  margin-bottom: 1rem;
  border: none;
}

@media (min-width: 768px) {
  .view-my-stream-artists .my-stream-artists-header .artist-search-form form details {
    margin-left: 0;
    margin-bottom: 0;
  }
}

/* Details summary (button) */
.view-my-stream-artists .my-stream-artists-header .artist-search-form form details summary {
  padding: 0.45rem 2rem 0.25rem 2rem;
  border: 2px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details summary:after {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #ffffff;
  content: "\2b";
  font-size: 1.2rem;
  margin-left: 1rem;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details summary[aria-expanded="true"]:after {
  content: "\f068";
}

/* Details wrapper (dropdown content) */
.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper {
  position: absolute;
  background: #c5eefd;
  z-index: 9;
  width: 90%;
  padding: 2rem;
  border: 2px solid white;
  border-radius: 1rem;
  margin-top: 0.5rem;
  left: 0;
  margin: 0.5rem 5%;
}

@media (min-width: 576px) {
  .view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper {
    width: 60rem;
    right: 0;
    left: auto;
    margin-right: 0;
  }
}

/* Form textfield */
.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-type-textfield {
  display: flex;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-type-textfield label {
  font-size: 1.6rem;
  color: #8a8c8f;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 0.5rem;
  width: 20%;
  display: flex;
  align-items: center;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-type-textfield input {
  border: 2px solid #8a8c8f;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  color: #8a8c8f;
  flex: 1;
}

/* Form actions (submit button) */
.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-actions {
  margin-top: 1rem;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-actions button {
  background: #3bc7f4;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 0;
  padding: 0.45rem 4rem 0.25rem 4rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  margin: 0 0.25rem;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-actions button[type="submit"]:after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f002";
  font-size: 1.4rem;
  padding-left: 0.5rem;
}

.view-my-stream-artists .my-stream-artists-header .artist-search-form form details .details-wrapper .form-actions button:hover {
  background: #00aeef;
  color: #ffffff;
}
