﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f3e8ff 0%, #ede9fe 30%, #e0e7ff 70%, #f3e8ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    padding: 48px 64px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    margin-bottom: 20px;
}

.logo img {
    width: auto;
    height: 56px;
    display: block;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Relógio de Brasília */
.brasilia-clock {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.95rem;
}

.brasilia-clock .clock-icon {
    font-size: 1.2rem;
}

.brasilia-clock .clock-time {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Seções */
.section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 2px;
}

/* Grid de 2 colunas */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards das Lives */
.live-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
}

.live-card:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.live-card.selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

/* =========================================================
   LIVE 2 (Anna Chatbot) — gradiente girando APENAS NA BORDA
   ========================================================= */

@property --live2-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes live2BorderRotate {
  to { --live2-angle: 360deg; }
}

/* card Anna Chatbot com borda animada */
.live-card[data-live="2"] {
  position: relative;
  background: #F7F2FF;
  border: 2px solid #e9d5ff;
  box-shadow: 0 10px 30px rgba(124,58,237,.10);
  isolation: isolate;
  z-index: 2;
}

/* BORDA animada (girando o gradiente dentro das "linhas" da borda) */
.live-card[data-live="2"]::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 3px;
  pointer-events: none;
  z-index: -1;

  background: conic-gradient(
    from var(--live2-angle),
    #6e00bd,
    #ba5bf1,
    #6d49fb,
    #fdfdfd,
    #8b5cf6,
    #7c3aed
  );

  /* recorta para aparecer SOMENTE a "linha" da borda */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  animation: live2BorderRotate 2.8s linear infinite;
}

.live-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}s

/* hover/selected: só intensifica */
.live-card[data-live="2"]:hover::before { padding: 2px; filter: saturate(1.1); }
.live-card[data-live="2"].selected::before { padding: 2px; filter: saturate(1.2) brightness(1.05); }

/* acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .live-card[data-live="2"]::before { animation: none; }
}

/* Checkbox customizado */
.live-checkbox {
    position: absolute;
    top: 195px;
    left: 6%;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.live-card.selected .live-checkbox {
    background: #7c3aed;
    border-color: #7c3aed;
}

.live-checkbox svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.live-card.selected .live-checkbox svg {
    opacity: 1;
}

.live-content {
    text-align: center;
    padding-top: 10px;
}

.live-thumbnail {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.live-icon {
    font-size: 2.8rem;
}

.live-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.live-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    padding: 0 8px;
}

.live-description .highlight {
    color: #7c3aed;
    font-weight: 500;
}

/* Colunas de Dias e Horários */
.schedule-column {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.schedule-column.active {
    opacity: 1;
    pointer-events: auto;
    background: #faf5ff;
    border-color: #c4b5fd;
}

.schedule-column-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9d5ff;
}

/* Botões de Dia */
.days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.day-btn {
    padding: 10px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    min-width: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 70px;
}

.day-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.day-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.day-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-btn:hover:not(.disabled):not(.selected) {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.day-btn.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #7c3aed;
    color: white;
}

.day-btn.selected .day-label,
.day-btn.selected .day-date {
    color: #ffffff !important;
}

.day-btn.selected .day-date {
    font-weight: 600;
}

.day-btn:hover:not(.disabled):not(.selected) {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.day-btn.selected:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
    border-color: #6d28d9;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}
.day-btn.selected:hover .day-label,
.day-btn.selected:hover .day-date {
    color: #ffffff !important;
}

/* Botões de Horário */
.hours-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hour-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

.hour-btn:hover:not(.disabled):not(.selected) {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.hour-btn.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #7c3aed;
    color: #ffffff;
}

.hour-btn.selected:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
    border-color: #6d28d9;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

.hour-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f3f4f6;
}

.timezone-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Asterisco obrigatório */
.required {
    color: #dc2626;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a2e;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

/* Input inválido */
input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Botão de Envio */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mensagem de Status */
.status-message {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.status-message.success {
    display: block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-message.loading {
    display: block;
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

/* Footer */
.footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 24px;
    text-align: center;
}

.footer-text a {
    color: #7c3aed;
    text-decoration: none;
}

/* Dica de seleção */
.selection-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #7c3aed;
    margin-top: 12px;
    font-weight: 500;
}

/* Responsividade */

/* Coluna que agrupa Live + Dia + Hora */
.live-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* No desktop, columns-wrapper fica em 2 colunas */
.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
    }

    /* No mobile, columns-wrapper vira coluna única */
    .columns-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    /* Garante que Live 1 vem primeiro */
    .live-column:first-child {
        order: 1;
    }

    .live-column:last-child {
        order: 2;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    .days-grid {
        flex-direction: column;
    }

    .day-btn {
        min-width: 100%;
    }

    /* Espaçamento entre as colunas no mobile */
    .live-column {
        margin-bottom: 24px;
    }

    .live-column:last-child {
        margin-bottom: 0;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.popup-message {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.popup-btn-cancel:hover {
    background: #e5e7eb;
}

.popup-btn-confirm {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
}

.popup-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Responsividade do Popup */
@media (max-width: 768px) {
    .popup-container {
        padding: 24px;
        margin: 0 16px;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
    }
}

.popup-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    text-align: left;
    font-size: 0.9rem;
    color: #4b5563;
}
.popup-list li {
    margin-bottom: 10px;
}
.popup-list li strong {
    color: #111827;
}

/* Link dos eventos no popup */
.popup-link {
    word-break: break-all;      /* quebra o link em várias linhas, não vaza */
    margin-top: 2px;
}

.popup-link a {
    color: #7C3AED;             /* roxo */
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.popup-link a:hover {
    text-decoration: underline;
}