/**
 * Estilos para o Dashboard de Eventos
 * Plugin Sevo Eventos
 */

/* Reset e Base */
/* Container removido - agora usa sevo-dashboard-wrapper do dashboard-common.css */

/* Cabeçalho */
.sevo-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}


/* Filtros */
.sevo-dashboard-filters {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sevo-filters-single-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 15px;
    align-items: end;
    max-width: 100%;
}

.sevo-filter-group {
    display: flex;
    flex-direction: column;
}

.sevo-filter-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 14px;
}

.sevo-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.sevo-filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.sevo-filter-button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sevo-filter-button:hover {
    background: #2980b9;
}

/* Responsividade para filtros */
@media (max-width: 768px) {
    .sevo-filters-single-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sevo-dashboard-filters {
        padding: 12px;
    }
    
    .sevo-filter-select,
    .sevo-filter-button {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .sevo-filter-label {
        font-size: 12px;
    }
    
    .sevo-filter-select,
    .sevo-filter-button {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Grid de Eventos */
.sevo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* Card do Evento */
.sevo-card.evento-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.sevo-card.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sevo-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sevo-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}

.sevo-card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.sevo-card-content {
    padding: 20px;
    flex-grow: 1;
}

.sevo-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
}

.sevo-card-description {
    font-size: 0.9em;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sevo-card-meta {
    margin-bottom: 15px;
}

.sevo-card-meta p {
    margin: 0 0 5px;
    color: #475569;
    font-size: 0.85em;
}

.sevo-card-link {
    font-weight: 600;
    color: #3b82f6;
    transition: color 0.2s;
}

.sevo-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-ativo { background-color: #22c55e; }
.status-inativo { background-color: #ef4444; }
.status-rascunho { background-color: #f59e0b; }
.status-pendente { background-color: #8b5cf6; }

/* Estado Vazio */
.sevo-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sevo-empty-icon {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.sevo-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.sevo-empty-description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

/* === MODAL STYLES === */
/* Estilos de modal removidos - agora usando modal-unified.css */

.sevo-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === CARROSSEL DE EVENTOS === */
/* === SEÇÕES DE EVENTOS === */
.sevo-events-sections {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sevo-event-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.sevo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.sevo-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sevo-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
}

.sevo-section-icon.inscricoes-abertas {
    background: linear-gradient(135deg, #10b981, #059669);
}

.sevo-section-icon.em-andamento {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sevo-section-icon.inscricoes-encerradas {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.sevo-section-icon.aguardando-inicio {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.sevo-section-icon.encerrados {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.section-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* === CONTROLES DO CARROSSEL === */
.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.carousel-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.carousel-btn:disabled:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
}

/* === CONTAINER DO CARROSSEL === */
.sevo-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    scroll-behavior: smooth;
}

.sevo-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    padding: 0.5rem 0;
}

/* === CARDS DE EVENTOS (REDUZIDOS EM 20%) === */
.sevo-event-card {
    flex: 0 0 240px; /* Reduzido de 300px para 240px (20% menor) */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.sevo-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.sevo-event-card .card-image {
    height: 144px; /* Reduzido de 180px para 144px (20% menor) */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.sevo-event-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
}

.sevo-event-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}

.sevo-event-card .card-content {
    padding: 1rem; /* Reduzido de 1.25rem para 1rem */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sevo-event-card .card-title {
    font-size: 1rem; /* Reduzido de 1.125rem para 1rem */
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sevo-event-card .card-description {
    font-size: 0.8rem; /* Reduzido de 0.875rem para 0.8rem */
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sevo-event-card .card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.sevo-event-card .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem; /* Reduzido de 0.875rem para 0.8rem */
    color: #6b7280;
}

.sevo-event-card .meta-icon {
    width: 16px;
    text-align: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.sevo-event-card .card-footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.sevo-event-card .card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.sevo-event-card .sevo-button-secondary,
.sevo-event-card .sevo-button-primary,
.sevo-event-card .btn-view-event,
.sevo-event-card .btn-edit-event {
    flex: 1;
    padding: 0.4rem 0.6rem; /* Reduzido de 0.5rem 0.75rem */
    border-radius: 6px;
    font-size: 0.8rem; /* Reduzido de 0.875rem para 0.8rem */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.sevo-event-card .sevo-button-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sevo-event-card .sevo-button-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sevo-event-card .sevo-button-primary {
    background: #3b82f6;
    color: white;
}

.sevo-event-card .sevo-button-primary:hover {
    background: #2563eb;
}

.sevo-event-card .btn-view-event {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.sevo-event-card .btn-view-event:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.sevo-event-card .btn-edit-event {
    background: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.sevo-event-card .btn-edit-event:hover {
    background: #059669;
    border-color: #059669;
}

.sevo-event-card .btn-view-event i,
.sevo-event-card .btn-edit-event i {
    font-size: 0.8rem; /* Reduzido de 0.875rem para 0.8rem */
}

/* === INDICADORES DE SCROLL === */
.sevo-carousel-container::before,
.sevo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.sevo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

.sevo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
}

/* === ESTADO VAZIO === */
.sevo-events-sections:empty::after {
    content: 'Nenhum evento encontrado';
    display: block;
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

/* === ANIMAÇÕES === */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .sevo-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sevo-filters-single-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sevo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sevo-events-sections {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .sevo-dashboard-filters {
        margin-left: 10px;
        margin-right: 10px;
    }
}