.eads-curso-viewer {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header da Seção */
.eads-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.eads-section-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

/* Controles de Filtro e Visualização */
.eads-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.eads-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 300px;
    max-width: 100%;
}

.eads-search-box input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
}

.eads-search-box input:focus {
    outline: none;
}

.eads-search-box button {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eads-search-box button:hover {
    background: #e9e9e9;
}

.eads-view-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eads-view-mode {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.eads-view-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eads-view-btn:hover {
    background: #e9e9e9;
}

.eads-view-btn.active {
    background: #2196F3;
    color: white;
}

/* Grid de Cursos */
.eads-live-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cursos por linha */
    gap: 15px;
    margin-top: 15px;
}

.eads-live-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
}

.eads-curso-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.eads-live-grid.list-view .eads-curso-card {
    flex-direction: row;
    align-items: center;
}

.eads-curso-card:hover {
    transform: translateY(-3px);
}

.eads-curso-thumbnail {
    position: relative;
    padding-top: 56.25%; /* Proporção 16:9 */
    background: #f5f5f5;
}

.eads-live-grid.list-view .eads-curso-thumbnail {
    width: 180px;
    min-width: 180px;
    padding-top: 0;
    height: 100px;
}

.eads-curso-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eads-live-grid.list-view .eads-curso-thumbnail img {
    position: relative;
}

.eads-curso-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eads-curso-info h3 {
    margin: 0 0 8px;
    font-size: 1em;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.eads-curso-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.eads-curso-info p {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.eads-curso-actions {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    gap: 8px;
}

.eads-live-grid.list-view .eads-curso-actions {
    margin-top: auto;
    padding-top: 8px;
}

/* Botões */
.eads-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    font-size: 0.875em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.eads-button:hover {
    background: #e0e0e0;
}

.eads-button-primary {
    background: #0073aa; /* Cor do WordPress */
    color: #fff;
}

.eads-button-primary:hover {
    background: #005f8c;
}

/* Responsividade */
@media (max-width: 1400px) {
    .eads-live-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .eads-live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .eads-live-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eads-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .eads-search-box {
        width: 100%;
    }
    
    .eads-view-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .eads-live-grid {
        grid-template-columns: 1fr;
    }
    
    .eads-curso-card {
        flex-direction: row;
        align-items: center;
    }
    
    .eads-curso-thumbnail {
        width: 120px;
        min-width: 120px;
        padding-top: 0;
        height: 80px;
    }
    
    .eads-curso-thumbnail img {
        position: relative;
    }
}

/* Loader */
.eads-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
}

.eads-loading .dashicons {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagem de vazio */
.eads-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    font-style: italic;
}

.eads-lives-modal .eads-modal-content {
    width: 90%;
    max-width: 800px;
}

.eads-live-item {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.eads-live-item:hover {
    background: #f0f0f0;
}

.eads-live-thumbnail {
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.eads-live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eads-live-info {
    flex: 1;
}

.eads-live-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.eads-live-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.eads-live-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

.eads-live-status.active {
    background: #ffefef;
    color: #c93232;
}

.eads-live-status.scheduled {
    background: #f0f0ff;
    color: #3232c9;
}

.eads-live-status.available {
    background: #effff0;
    color: #32c932;
}

.eads-live-status.finished {
    background: #f0f0f0;
    color: #666;
}

.eads-live-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}

.eads-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.eads-modal-content {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.eads-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.eads-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.eads-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.eads-modal-body {
    padding: 15px;
}

.eads-access-denied-message {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.eads-access-denied-message .dashicons {
    font-size: 24px;
    color: #c93232;
    margin-right: 10px;
}

.eads-product-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.eads-product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.eads-product-price {
    font-size: 16px;
    color: #2196F3;
    font-weight: bold;
}

/* Estilos para modal de detalhes do curso */
.eads-modal-large {
    max-width: 800px;
    width: 90%;
}

.eads-curso-details {
    padding: 10px 0;
}

.eads-details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.eads-details-thumbnail {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.eads-details-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eads-details-info {
    flex: 1;
}

.eads-details-info h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.6em;
}

.eads-details-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eads-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eads-meta-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.eads-meta-value {
    color: #333;
}

.eads-details-description {
    margin-bottom: 25px;
}

.eads-details-description h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.eads-description-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    max-height: 200px;
    overflow-y: auto;
}

.eads-description-content p {
    margin: 0 0 10px 0;
}

.eads-description-content p:last-child {
    margin: 0;
}

.eads-description-content em {
    color: #666;
}

.eads-details-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.eads-error {
    color: #d63638;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.eads-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* Responsividade para o modal de detalhes */
@media (max-width: 768px) {
    .eads-modal-large {
        max-width: 95%;
        width: 95%;
    }
    
    .eads-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .eads-details-thumbnail {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .eads-meta-row {
        justify-content: space-between;
    }
    
    .eads-details-actions {
        flex-direction: column;
    }
    
    .eads-details-actions .eads-button {
        text-align: center;
    }
} 