/* Global Font and Reset */
@font-face {
  font-family: "GilroyMN";
  src: url("../fonts/Gilroy/Gilroy Bold MonoNums.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@import url('https://solargentinotv.com.ar/assets/fonts/Gilroy/Gilroy.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gilroy', sans-serif;
}

/* General Body */
body {
  background: #101418;
  color: #f1f1f1;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

/* Header */
header {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  padding: 40px 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.6);
  background-color: #1b1f2b;
  border-radius: 12px;
  margin-bottom: 40px;
  border-bottom: 4px solid #e42052;
}

/* Topbar (for day button and clock) */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 10px 20px;
}

/* Day Button */
#dayBtn {
  background: #e42052;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
}

#dayBtn:hover {
  background: #bf1844;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

#clock {
  font-size: 1.2rem;
  color: #e42052;
  padding: 10px 20px;
  background: #252938;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 55px;
  background: #252938;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dropdown-menu div {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 1rem;
  color: #f1f1f1;
  text-align: center;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu div:hover {
  background: #e42052;
  color: white;
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* Timeline */
.timeline {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 0;
  margin-bottom: 40px;
  border-bottom: 2px solid #222;
}

.timeline div {
  min-width: 180px;
  opacity: 0.9;
  text-align: center;
  font-size: 1rem;
  color: #f1f1f1;
  background: #1c1f2b;
  padding: 18px;
  border-radius: 8px;
  transition: opacity 0.3s, transform 0.3s;
}

.timeline div:hover {
  opacity: 1;
  transform: scale(1.1);
  background: #e42052;
  cursor: pointer;
}

/* EPG (Program Grid) */
.epg {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 0;
}

.program {
  background: #1c1f2b;
  border-radius: 16px;
  padding: 25px;
  width: 240px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.program:hover {
  background: #252938;
  transform: scale(1.05);
}

.program h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
}

.program span {
  opacity: 0.7;
  font-size: 1rem;
  color: #ccc;
}

.program-description {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.4;
  margin-top: 12px;
}

/* Live Indicator */
.live {
  margin-top: 12px;
  background: #e42052;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  color: white;
  display: inline-block;
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #252938;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  color: #f1f1f1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#closeModal {
  background: #e42052;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
}

#closeModal:hover {
  background: #bf1844;
}

/* Responsive */
@media(max-width: 800px) {
  .timeline div {
    min-width: 160px;
    font-size: 0.95rem;
  }

  .program {
    width: 200px;
    padding: 18px;
  }

  #dayBtn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  #clock {
    font-size: 1rem;
  }
}

@media(max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 20px;
  }

  .epg {
    flex-direction: column;
    gap: 15px;
  }

  .timeline {
    gap: 20px;
  }

  .program {
    width: 170px;
  }

  #dayBtn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .program h4 {
    font-size: 1.2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #e42052;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #252938;
  border-radius: 10px;

}

/* Firefox scrollbar */
@-moz-document url-prefix() {

  .epg,
  .timeline,
  .dropdown-menu {
    scrollbar-color: #e42052 #252938;
    scrollbar-width: thin;
  }
}