/**
 * Estilos frontend para Apolo Eventos
 */

/* Grid de Eventos */
.apolo-eventos-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.apolo-eventos-grid[data-columnas="1"] {
    grid-template-columns: 1fr;
}

.apolo-eventos-grid[data-columnas="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.apolo-eventos-grid[data-columnas="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.apolo-eventos-grid[data-columnas="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Evento Card */
.apolo-evento-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.apolo-evento-imagen {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.apolo-evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.apolo-evento-card:hover .apolo-evento-imagen img {
    transform: scale(1.05);
}

.apolo-badge-gratis {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.apolo-evento-contenido {
    padding: 25px;
}

.apolo-evento-contenido h3 {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.apolo-evento-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.apolo-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.apolo-meta-item .dashicons {
    color: #6C63FF;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.apolo-evento-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.apolo-evento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.apolo-precio {
    font-size: 18px;
    font-weight: 700;
    color: #6C63FF;
}

.apolo-btn-ver-mas {
    display: inline-block;
    padding: 10px 20px;
    background: #6C63FF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.apolo-btn-ver-mas:hover {
    background: #5a52d5;
    color: #fff;
}

/* Evento Single */
.apolo-evento-single {
    max-width: 1200px;
    margin: 0 auto;
}

.apolo-evento-hero {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.apolo-evento-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apolo-evento-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #333;
}

.apolo-evento-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.apolo-info-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.apolo-info-item .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #6C63FF;
}

.apolo-info-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.apolo-info-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.apolo-evento-descripcion {
    margin: 40px 0;
}

.apolo-evento-descripcion h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Widget de Compra */
.apolo-compra-entradas-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.apolo-evento-titulo {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

.apolo-evento-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.apolo-detalle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.apolo-detalle .dashicons {
    color: #6C63FF;
}

.apolo-productos-lista {
    margin-top: 30px;
}

.apolo-productos-lista h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.apolo-producto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.apolo-producto-item:hover {
    border-color: #6C63FF;
}

.apolo-producto-item.sin-stock {
    opacity: 0.6;
    background: #f9f9f9;
}

.apolo-producto-info h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.apolo-producto-info p {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.apolo-stock {
    font-size: 12px;
    color: #999;
}

.apolo-producto-compra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.apolo-precio {
    font-size: 24px;
    font-weight: 700;
    color: #6C63FF;
}

.apolo-btn-comprar {
    padding: 12px 30px;
    background: #6C63FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.apolo-btn-comprar:hover {
    background: #5a52d5;
}

.apolo-agotado {
    padding: 12px 30px;
    background: #ccc;
    color: #666;
    border-radius: 6px;
    font-weight: 600;
}

/* Modal */
.apolo-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.apolo-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.apolo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.apolo-modal-close:hover {
    color: #333;
}

.apolo-modal-content h3 {
    margin: 0 0 25px;
    font-size: 24px;
    color: #333;
}

.apolo-form-group {
    margin-bottom: 20px;
}

.apolo-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.apolo-form-group input,
.apolo-form-group select,
.apolo-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.apolo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 20px;
}

.apolo-btn-pagar {
    width: 100%;
    padding: 15px;
    background: #6C63FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.apolo-btn-pagar:hover {
    background: #5a52d5;
}

.apolo-btn-pagar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Countdown */
.apolo-countdown-widget {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.apolo-countdown-header h3 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 700;
}

.apolo-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.apolo-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apolo-countdown-numero {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.apolo-countdown-etiqueta {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.8;
}

.apolo-countdown-separador {
    font-size: 36px;
    font-weight: 700;
    opacity: 0.5;
}

/* Mensajes */
.apolo-mensaje-resultado {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.apolo-mensaje-resultado.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.apolo-mensaje-resultado.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .apolo-eventos-grid[data-columnas="2"],
    .apolo-eventos-grid[data-columnas="3"],
    .apolo-eventos-grid[data-columnas="4"] {
        grid-template-columns: 1fr;
    }
    
    .apolo-evento-header h1 {
        font-size: 32px;
    }
    
    .apolo-evento-info-grid {
        grid-template-columns: 1fr;
    }
    
    .apolo-producto-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .apolo-producto-compra {
        width: 100%;
        justify-content: space-between;
    }
    
    .apolo-countdown-numero {
        font-size: 32px;
    }
    
    .apolo-countdown-separador {
        font-size: 24px;
    }
}
