/* Tickets Section - Design Minimalista e Centralizado */
.tickets-section {
  background: #ffffff;
  padding: 1.5rem 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header da Seção de Ingressos */
.tickets-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem 2rem;
}

.tickets-header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
}

.tickets-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.rio-open-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tickets-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
}

.tickets-title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.atp-500-badge {
  font-size: 1.125rem;
  color: #666666;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tickets-title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tickets-title-bar {
  width: 150px;
  height: 12px;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
}

.tickets-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #dc2626;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.date-selector-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  justify-content: center;
}

.date-selector-label {
  font-size: 1.5rem;
  color: #1a1a1a;
  font-family: "Inter", sans-serif;
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}

.date-selector-line {
  width: 250px;
  height: 2px;
  background: #e5e5e5;
  flex: 0 0 auto;
}

/* Grid de Ingressos */
.tickets-grid {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tickets-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tickets-column-left {
  max-width: 50%;
}

.tickets-column-right {
  max-width: 50%;
}

/* Caixas de Ingressos - Layout Base */
.ticket-box {
  border: 2px solid #c00000;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ticket-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Layout interno das caixas */
.ticket-left {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.ticket-divider {
  width: 1px;
  height: 100%;
  background: #c00000;
  flex-shrink: 0;
}

.ticket-right {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  min-width: 100px;
}

.ticket-day {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c00000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.ticket-session {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.ticket-price {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #666666;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.ticket-price-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  color: #666666;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Cores específicas para cada caixa - Todas com fundo rosa claro */
.ticket-box-pink {
  background: #F5E6E6;
  border-color: #c00000;
}

.ticket-box-pink .ticket-day {
  color: #c00000;
}

.ticket-box-pink .ticket-divider {
  background: #c00000;
}

/* Domingo Centralizado - Apenas Desktop */
.tickets-single-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  margin-top: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tickets-single-center .ticket-box {
  max-width: 450px;
  width: 100%;
}

@media (max-width: 768px) {
  .tickets-single-center {
    display: none;
  }

  .tickets-column-right .ticket-domingo {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 0;
    min-height: 65px;
  }
}

@media (min-width: 769px) {
  .tickets-column-right .ticket-domingo {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .tickets-header-content {
    max-width: 100%;
    gap: 2rem;
  }

  .tickets-title {
    font-size: 2rem;
  }

  .tickets-logo {
    height: 45px;
  }

  .tickets-grid {
    flex-direction: column;
    max-width: 100%;
  }

  .tickets-column-left,
  .tickets-column-right {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .tickets-header {
    padding: 1rem;
  }

  .tickets-header-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .rio-open-logo-wrapper {
    align-items: center;
    width: 100%;
  }

  .tickets-header-center {
    width: 100%;
  }

  .tickets-logo {
    height: 120px;
  }

  .tickets-title {
    font-size: 3.5rem;
  }

  .date-selector-label {
    font-size: 1.25rem;
  }

  .atp-500-badge {
    font-size: 1.25rem;
  }

  .date-selector-line {
    width: 200px;
  }

  .tickets-title-bar {
    width: 80px;
    height: 8px;
  }

  .date-selector-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .date-selector-line {
    width: 100%;
    max-width: 300px;
  }

  .tickets-grid {
    flex-direction: column;
    padding: 0 1rem;
  }

  .tickets-column {
    width: 100%;
  }

  .ticket-box {
    min-height: 65px;
  }

  .ticket-left,
  .ticket-right {
    padding: 0.75rem 1rem;
  }

  .ticket-day {
    font-size: 1.25rem;
  }

  .ticket-session {
    font-size: 0.9375rem;
  }

  .ticket-price {
    font-size: 0.75rem;
  }

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

@media (max-width: 480px) {
  .tickets-section {
    padding: 2rem 0;
  }

  .tickets-header {
    padding: 0 1rem;
  }

  .claro-logo {
    width: 60px;
    height: 60px;
    font-size: 1.125rem;
  }

  .tickets-logo {
    height: 40px;
  }

  .tickets-title {
    font-size: 3rem;
  }

  .date-selector-label {
    font-size: 1.125rem;
  }

  .atp-500-badge {
    font-size: 1.125rem;
  }

  .tickets-title-bar {
    width: 80px;
    height: 8px;
  }

  .tickets-logo {
    height: 80px;
  }

  .tickets-grid {
    padding: 0 0.5rem;
  }

  .ticket-box {
    min-height: 60px;
  }

  .ticket-left,
  .ticket-right {
    padding: 0.625rem 0.875rem;
  }

  .ticket-day {
    font-size: 1.25rem;
  }

  .ticket-session {
    font-size: 0.9375rem;
  }

  .ticket-price {
    font-size: 0.75rem;
  }

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

  .ticket-right {
    min-width: 120px;
  }
}

/* Ticket Popup */
.ticket-event-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.ticket-popup-content-mobile {
  display: none;
}

.ticket-event-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ticket-event-popup-content {
  background: #ffffff;
  border-radius: 0;
  max-width: 1100px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Popup Header */
.ticket-popup-header {
  background: #c00000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.ticket-popup-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
}

.ticket-event-popup-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.ticket-event-popup-close:hover {
  opacity: 0.8;
}

/* Popup Body */
.ticket-popup-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow-y: auto;
  max-height: calc(85vh - 60px);
}

.ticket-popup-left {
  flex: 1;
  padding: 1.5rem;
  border-right: 1px solid #e5e5e5;
  overflow-y: auto;
}

.ticket-popup-right {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Info Section */
.ticket-popup-info-section {
  margin-bottom: 1.5rem;
}

.ticket-popup-info-section:last-child {
  margin-bottom: 0;
}

.ticket-popup-info-title {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-popup-info-text {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.ticket-popup-info-text:last-child {
  margin-bottom: 0;
}

.ticket-popup-link {
  color: #0066cc;
  text-decoration: underline;
}

.ticket-popup-link:hover {
  color: #0052a3;
}

/* Format Selection */
.ticket-popup-format-title {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-popup-format-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ticket-format-button {
  position: relative;
  background: #F5E6E6;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.ticket-format-button:hover {
  background: #f0d8d8;
}

.ticket-format-active {
  background: #F5E6E6;
  border-color: #c00000;
}

.ticket-format-button[data-format="pre-venda"].ticket-format-active {
  background: #fff9c4;
  border-color: #ffc107;
  border-width: 2px;
  cursor: pointer;
}

.ticket-format-button[data-format="pre-venda"].ticket-format-active .ticket-format-text {
  color: #c9a000;
}

.ticket-format-button[data-format="pre-venda"].ticket-format-active:hover {
  background: #fff3a0;
}

.ticket-format-locked,
.ticket-format-button[data-format="venda-geral"] {
  background: #f3f3f3;
  border-color: #d0d0d0;
  cursor: not-allowed;
}

.ticket-format-locked .ticket-format-text,
.ticket-format-button[data-format="venda-geral"] .ticket-format-text {
  color: #9a9a9a;
}

.ticket-format-locked:hover,
.ticket-format-button[data-format="venda-geral"]:hover {
  background: #f3f3f3;
}

.presale-access-popup {
  z-index: 1100;
}

.presale-access-content {
  max-width: 520px;
  width: min(520px, 100%);
}

.presale-access-body {
  padding: 1.5rem;
}

.presale-access-text {
  margin: 0 0 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333333;
}

.presale-access-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
}

.presale-access-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid #d0d0d0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
}

.presale-access-input:focus {
  outline: 2px solid #c00000;
  border-color: #c00000;
}

.presale-access-error {
  margin: 0.6rem 0 0;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #c00000;
}

.presale-access-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.95rem 1rem;
  border: 0;
  background: #c00000;
  color: #ffffff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.presale-access-submit:hover {
  background: #a00000;
}

.ticket-format-badge {
  position: absolute;
  left: 0;
  top: 0;
  background: #c00000;
  color: #ffffff;
  padding: 0.4rem 0.875rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-format-badge.last-tickets {
  background: #ffc107;
  color: #1a1a1a;
}

.ticket-format-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c00000;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: none;
  z-index: 1;
  position: relative;
}

/* Price Section */
.ticket-popup-prices {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ticket-price-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ticket-price-section-title {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.ticket-price-boxes {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
}

.ticket-price-box {
  flex: 0 0 auto;
  background: #A9A9A9;
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  width: 120px;
}

.ticket-price-box:last-child {
  background: #808080;
}

.ticket-price-type {
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
}

.ticket-price-amount {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

/* Responsive Popup */
@media (max-width: 768px) {
  .ticket-event-popup {
    overflow: hidden;
    position: fixed;
    touch-action: none;
  }

  body.ticket-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .ticket-event-popup-content {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ticket-event-popup.active {
    padding: 0;
    align-items: flex-start;
  }

  .ticket-popup-header {
    padding: 0.875rem 1rem;
    position: relative;
    flex-shrink: 0;
  }

  .ticket-popup-title {
    font-size: 1rem;
    flex: 1;
  }

  .ticket-event-popup-close {
    position: absolute;
    right: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
  }

  .ticket-popup-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ticket-popup-content-mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0.75rem;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .ticket-popup-left,
  .ticket-popup-right {
    display: none;
  }

  .ticket-popup-content-mobile {
    display: flex !important;
  }

  .ticket-popup-format-title {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Inter", sans-serif;
  }

  .ticket-popup-format-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
  }

  .ticket-format-button {
    background: #F5E6E6;
    border: 2px solid #F5E6E6;
    padding: 1rem 0.75rem;
    min-height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
  }

  .ticket-format-button.ticket-format-active {
    background: #F5E6E6;
    border-color: #F5E6E6;
  }

  .ticket-format-button[data-format="pre-venda"].ticket-format-active {
    background: #fff9c4;
    border-color: #ffc107;
    border-width: 2px;
    cursor: pointer;
  }

  .ticket-format-button[data-format="pre-venda"].ticket-format-active .ticket-format-text {
    color: #c9a000;
  }

  .ticket-format-locked,
  .ticket-format-button[data-format="venda-geral"] {
    background: #f3f3f3;
    border-color: #d0d0d0;
    cursor: not-allowed;
  }

  .ticket-format-locked .ticket-format-text,
  .ticket-format-button[data-format="venda-geral"] .ticket-format-text {
    color: #9a9a9a;
  }

  .ticket-format-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    background: #c00000;
    color: #ffffff;
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ticket-format-badge.last-tickets {
    background: #ffc107;
    color: #1a1a1a;
  }

  .ticket-format-text {
    font-size: 1.125rem;
    color: #c00000;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    position: relative;
  }

  .ticket-popup-info-section {
    margin: 0;
    flex-shrink: 0;
  }

  .ticket-popup-info-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.375rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Inter", sans-serif;
  }

  .ticket-popup-info-text {
    font-size: 0.625rem;
    font-weight: 400;
    color: #333333;
    line-height: 1.3;
    margin: 0 0 0.375rem 0;
    font-family: "Inter", sans-serif;
  }

  .ticket-popup-info-text:last-child {
    margin-bottom: 0;
  }

  .ticket-popup-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.625rem;
  }

  .ticket-popup-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
  }

  .ticket-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ticket-price-section-title {
    font-size: 0.625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Inter", sans-serif;
    text-align: center;
  }

  .ticket-price-boxes {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }

  .ticket-price-box {
    flex: 1;
    background: #A9A9A9;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: none;
  }

  .ticket-price-box:last-child {
    background: #808080;
  }

  .ticket-price-type {
    font-size: 0.625rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Inter", sans-serif;
  }

  .ticket-price-amount {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    font-family: "Inter", sans-serif;
  }
}
