/* Concurso EN VIVO Styles - Mobile First */

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e6d9d9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Live NOW Card - Mobile First */
.live-now-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.live-now-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.live-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.live-time {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.live-now-content {
    position: relative;
}

.live-now-order {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    right: 0;
    line-height: 1;
}

.live-now-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-right: 3rem;
}

/* Timer */
.live-timer {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timer-current {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
}

.timer-separator {
    font-size: 1.5rem;
    opacity: 0.5;
}

.timer-total {
    font-size: 1.25rem;
    opacity: 0.8;
}

.timer-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.timer-progress {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timer-percentage {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0.9;
}

.live-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.live-location svg {
    flex-shrink: 0;
}

/* Next Card - Mobile First */
.live-next-card {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    color: #ffffff;
}

.live-next-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.next-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.next-countdown {
    font-size: 0.875rem;
    font-weight: 700;
}

.live-next-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.next-order {
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0.8;
}

.next-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.next-time {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Upcoming List - Mobile First */
.live-upcoming {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.upcoming-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.85rem;
}

.upcoming-order {
    font-weight: 700;
    color: #6b7280;
}

.upcoming-name {
    color: #1a1a2e;
    font-weight: 500;
    line-height: 1.3;
}

.upcoming-time {
    color: #6b7280;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Stats - Mobile First */
.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.live-stat {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

/* Results Table - Mobile First */
.live-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.results-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    text-align: center;
}

.results-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table thead {
    background: #f9fafb;
}

.results-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.results-table th:first-child {
    border-radius: 8px 0 0 0;
    text-align: center;
}

.results-table th:last-child {
    border-radius: 0 8px 0 0;
    text-align: center;
}

.results-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.results-table tbody tr:hover {
    background: #f9fafb;
}

.results-table td {
    padding: 0.875rem 0.5rem;
    color: #1a1a2e;
}

.results-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: #667eea;
}

.results-table td:nth-child(2) {
    font-weight: 600;
}

.results-table td:nth-child(3),
.results-table td:nth-child(4),
.results-table td:nth-child(5) {
    text-align: center;
    font-weight: 600;
}

.results-table td:last-child {
    color: #667eea;
    font-weight: 900;
}

/* Posición destacada */
.results-table tbody tr:first-child td:first-child {
    color: #f59e0b;
    font-size: 1.1rem;
}

.results-table tbody tr:nth-child(2) td:first-child {
    color: #94a3b8;
}

.results-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
}

/* Tablet */
@media (min-width: 640px) {
    .live-now-card {
        padding: 1.5rem;
    }

    .live-now-title {
        font-size: 1.5rem;
    }

    .timer-current {
        font-size: 2.5rem;
    }

    .upcoming-item {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .results-table {
        font-size: 0.95rem;
    }

    .results-table th,
    .results-table td {
        padding: 1rem 0.75rem;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .live-now-card {
        padding: 2rem;
    }

    .live-now-order {
        font-size: 4rem;
        top: -1.5rem;
    }

    .live-now-title {
        font-size: 1.75rem;
    }

    .live-upcoming {
        padding: 1.5rem;
    }

    .live-stats {
        gap: 1rem;
    }

    .live-stat {
        padding: 1.5rem;
    }

    .live-results {
        padding: 1.5rem;
    }

    .results-title {
        font-size: 1.25rem;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .live-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}
