/*
Title: tech.css
Author: Tango Hunter
Date Created: 4/20/26
Date Modified: 4/20/26
Description: Style Sheet for the Tech Page of the Website
*/

h2 {
  margin-bottom: .5rem;
}

/* CONTROLS */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

#streamSelect {
  width: 50%;
  min-width: 250px;
}

select, .icon-btn {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-main);
  cursor: pointer;
}

/* DROPDOWNS */
.icon-dropdown {
  position: relative;
}

.icon-btn {
  min-width: 50px;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 100;
}

.icon-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu label,
.dropdown-menu div {
  padding: 0.4rem;
  cursor: pointer;
}

input {
  margin: 0 .5rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* CARD */
.card {
  overflow: hidden;
  cursor: pointer;
}

.thumbnail {
  width: 100%;
}

.card-body {
  padding: 1rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  z-index: 1;
}

.modal-content {
  background: var(--bg-main);
  border-radius: 16px;
  width: 95%;
  max-width: 1200px;
  padding: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  text-align: left;
}
.modal-content p {
  margin-bottom: .5rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* VIDEO */
iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}

/* TECH TAGS */
.tech-stack {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #333;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #80B040;
}

/* FALLBACK */
.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  text-align: center;
}

.watch-btn {
  padding: 0.6rem 1rem;
  background: #ff0000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  iframe {
    height: 250px;
  }

  #streamSelect {
    width: 100%;
  }
}
