/**
 * CSS para o sistema de histórico de visualização
 * Location: assets/css/watch-history.css
 */

/* Estilos para a notificação de retomada */
.resume-notification {
    animation: fadeIn 0.3s ease;
}

.resume-content {
    color: #fff;
    font-size: 0.9rem;
}

.resume-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.resume-btn {
    background: rgba(239, 68, 68, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.resume-btn:hover {
    background: rgba(239, 68, 68, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para barra de progresso na seção "Continue Assistindo" */
.progress-bar-container {
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Animação para os cards do histórico */
#history-grid .card {
    animation: fadeInScale 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Aplicar delay para animação sequencial */
#history-grid .card:nth-child(1) { animation-delay: 0.1s; }
#history-grid .card:nth-child(2) { animation-delay: 0.15s; }
#history-grid .card:nth-child(3) { animation-delay: 0.2s; }
#history-grid .card:nth-child(4) { animation-delay: 0.25s; }
#history-grid .card:nth-child(5) { animation-delay: 0.3s; }
#history-grid .card:nth-child(6) { animation-delay: 0.35s; }
#history-grid .card:nth-child(7) { animation-delay: 0.4s; }
#history-grid .card:nth-child(8) { animation-delay: 0.45s; }

/* Ícones e botões do histórico */
.history-icon {
    font-size: 1.2rem;
    color: #ef4444;
    margin-right: 8px;
}

.history-action-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
    border-radius: 4px;
}

.history-action-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.remove-history-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 15;
}

.card:hover .remove-history-btn {
    opacity: 1;
}

.remove-history-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* Seletor de Servidor */
.server-selector {
    position: relative;
    margin-right: 5px;
}

.server-selector-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-selector-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.server-selector-btn svg {
    transition: transform 0.3s ease;
}

.server-selector-btn.active svg {
    transform: rotate(180deg);
}

/* Dropdown de Servidor */
.server-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.server-dropdown-item {
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
}

.server-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.server-dropdown-item.active {
    background: rgba(239, 68, 68, 0.3);
    border-left-color: rgba(239, 68, 68, 1);
    color: #ef4444;
}