/* Programs Page Styles */

.programs-page-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  min-height: calc(100vh - 300px);
  margin-top: 40px;
}

/* Coluna da esquerda */
.programs-page-left {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.programs-page-header {
  background: #020146;
  padding: 15px 0;
  margin-bottom: 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(2, 1, 70, 0.3);
  z-index: 20;
}

.programs-page-title-container {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding-left: 40px;
}

.programs-icon-large {
  position: absolute;
  left: -70px;
  top: 0;
  transform: translateY(-55%);
  width: 220px;
  height: 220px;
  object-fit: contain;
  z-index: 10;
}

.programs-page-title {
  font-weight: 950;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin: 0;
  margin-left: 80px;
}

/* Tabs dos dias da semana */
.programs-schedule {
  background-color: transparent;
  margin-top: 0;
}

.programs-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background-color: transparent;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.programs-tabs::-webkit-scrollbar {
  display: none;
}

.programs-tab {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.programs-tab:hover {
  background-color: transparent;
}

.programs-tab.active {
  background-color: #2EA9E3;
  color: white;
}

/* Conteúdo dos dias */
.programs-day-content {
  display: none;
  background-color: white;
  position: relative;
  z-index: 15;
}

.programs-day-content.active {
  display: block;
}

.programs-list {
  padding: 0;
}

/* Item de programa */
.program-item {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s;
  position: relative;
}

.program-item:first-child {
  padding-top: 12px;
}

.program-item:last-child {
  border-bottom: none;
}

.program-item:hover {
  background-color: #fafafa;
}

.program-time-range {
  font-size: 10px;
  color: #999;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: lowercase;
  -webkit-text-stroke: 0.3px #999;
  letter-spacing: 0.2px;
}

.program-content {
  margin-left: 0;
  padding-right: 100px;
  max-width: 100%;
  overflow: hidden;
}

/* Badge NO AR */
.program-live-badge {
  position: absolute;
  top: 12px;
  right: 10px;
  background-color: #4CAF50;
  color: white;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-icon {
  width: 12px;
  height: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Cor customizada para header de notícias */
.about-news-header {
  background: #0052a1 !important;
  box-shadow: 0 4px 12px rgba(0, 82, 161, 0.3) !important;
}

.about-news-header .about-promotions-megafone {
  left: -80px !important;
}

.about-news-header .about-promotions-add-btn {
  border-color: #ff8570 !important;
  color: #ff8570 !important;
}

.about-news-header .about-promotions-add-btn:hover {
  background: white !important;
  color: #ff8570 !important;
  border-color: white !important;
}

/* Estilos dos cards de notícias */
.programs-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: transparent;
}

.programs-news-item {
  display: flex;
  flex-direction: row;
  gap: 0;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  padding: 16px;
}

.programs-news-item-link {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;
  width: 100%;
  align-items: center;
}

.programs-news-item-image {
  width: 90px;
  min-width: 90px;
  height: 90px;
  overflow: hidden;
  position: relative;
}

.programs-news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs-news-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.programs-news-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.programs-news-item-cta {
  color: #ff8570;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.programs-news-item-cta .arrow {
  font-size: 16px;
  margin-left: 4px;
}

.program-title {
  font-size: 13px;
  font-weight: 900;
  color: #0066a1;
  margin: 0 0 2px 0;
  line-height: 1.2;
  -webkit-text-stroke: 0.3px #0066a1;
  letter-spacing: 0.2px;
}

.program-description {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Conteúdo dos dias */
.programs-day-content {
  display: none;
}

.programs-day-content.active {
  display: block;
}

/* Item de programa */
.program-item {
  padding: 20px 30px;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s;
}

.program-item:last-child {
  border-bottom: none;
}

.program-item:hover {
  background-color: #fafafa;
}

.program-time-range {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.program-content {
  margin-left: 0;
}

.program-title {
  font-size: 16px;
  font-weight: 700;
  color: #0066a1;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.program-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Coluna da direita - reutiliza estilos de about.css */
.programs-page-right {
  position: static;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .programs-page-layout {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }

  .programs-page-title {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .programs-page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .programs-page-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .programs-page-layout {
    padding: 0 !important;
    margin-top: 0 !important;
  }

  .programs-page-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .programs-page-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 15px 15px !important;
  }

  .programs-schedule {
    margin-top: 0 !important;
    padding: 10px 0 !important;
  }

  .programs-day-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .programs-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .programs-page-title-container {
    justify-content: flex-start;
    padding-left: 0;
  }

  .programs-icon-large {
    display: none;
  }

  .programs-page-title {
    font-size: 0.95rem;
    margin-left: 0;
    padding-right: 15px;
  }

  .programs-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .programs-tab {
    padding: 10px 12px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 70px;
  }

  .program-item {
    padding: 10px 6px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-content {
    padding-right: 45px;
    max-width: calc(100% - 45px);
  }

  .program-time-range {
    font-size: 12px;
  }

  .program-title {
    font-size: 15px;
    word-break: break-word;
  }

  .program-description {
    font-size: 13px;
    word-break: break-word;
  }

  .program-live-badge {
    right: 5px;
    padding: 4px 6px;
    font-size: 9px;
  }
}

@media (max-width: 576px) {
  .programs-page-layout {
    padding: 0;
    margin-top: 15px;
  }

  .programs-page-header {
    margin-top: 70px;
    padding: 12px 0;
  }

  .programs-page-title {
    font-size: 0.85rem;
  }

  .programs-tabs {
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .programs-tab {
    padding: 8px 10px;
    font-size: 10px;
    min-width: 50px;
  }

  .program-item {
    padding: 8px 5px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-content {
    padding-right: 40px;
    max-width: calc(100% - 40px);
  }

  .program-time-range {
    font-size: 10px;
  }

  .program-title {
    font-size: 13px;
    word-break: break-word;
  }

  .program-description {
    font-size: 11px;
    word-break: break-word;
  }

  .program-live-badge {
    right: 3px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .live-icon {
    width: 10px;
    height: 10px;
  }

  .programs-news-item {
    padding: 12px;
  }

  .programs-news-item-image {
    width: 70px;
    min-width: 70px;
    height: 70px;
  }

  .programs-news-item-title {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .programs-page-layout {
    padding: 0;
  }

  .programs-page-header {
    margin-top: 60px;
  }

  .programs-page-title {
    font-size: 0.75rem;
  }

  .programs-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .programs-tab {
    padding: 6px 8px;
    font-size: 9px;
    min-width: 42px;
  }

  .program-item {
    padding: 6px 4px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .program-content {
    padding-right: 35px;
    max-width: calc(100% - 35px);
  }

  .program-time-range {
    font-size: 9px;
  }

  .program-title {
    font-size: 12px;
  }

  .program-description {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }

  .program-live-badge {
    padding: 2px 4px;
    font-size: 7px;
    right: 2px;
  }

  .live-icon {
    width: 8px;
    height: 8px;
  }
}
