/* RBZ Events Frontend Styles */

.rbz-events-container {
    margin: 30px 0;
    width: 100%;
}

.rbz-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.rbz-events-container[data-columns="1"] .rbz-events-grid {
    grid-template-columns: 1fr;
}

.rbz-events-container[data-columns="2"] .rbz-events-grid {
    grid-template-columns: repeat(2, 1fr);
}

.rbz-events-container[data-columns="3"] .rbz-events-grid {
    grid-template-columns: repeat(3, 1fr);
}

.rbz-events-container[data-columns="4"] .rbz-events-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Modern Event Card Styles */
.rbz-event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e0e0e0;
}

.rbz-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rbz-event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.rbz-event-image-upcoming {
    height: 300px;
}

.rbz-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rbz-event-card:hover .rbz-event-image img {
    transform: scale(1.05);
}

.rbz-event-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #071448 0%, #0a1f5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rbz-event-image-placeholder.rbz-event-image-upcoming {
    height: 300px;
}

.rbz-event-image-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.3);
}

.rbz-event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.rbz-event-badge.rbz-event-upcoming {
    background: #c78124;
    color: #ffffff;
}

.rbz-event-badge.rbz-event-past {
    background: #666666;
    color: #ffffff;
}

.rbz-event-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rbz-event-category {
    font-size: 12px;
    color: #c78124;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.rbz-event-title {
    font-size: 22px;
    font-weight: 700;
    color: #071448;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.rbz-event-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rbz-event-title-row .rbz-event-title {
    margin: 0;
    flex: 1;
}

.rbz-event-date-inline {
    font-size: 16px;
    font-weight: 600;
    color: #c78124;
    background: #f8f8f8;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.rbz-event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.rbz-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.rbz-event-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #c78124;
}

.rbz-event-date {
    font-weight: 600;
    color: #071448;
}

.rbz-event-time {
    color: #666;
    margin-left: 4px;
}

.rbz-event-location {
    color: #666;
}

.rbz-event-description {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    flex: 1;
}

.rbz-event-description p {
    margin: 0;
}

.rbz-events-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* Pagination Styles */
.rbz-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 2px solid #071448;
}

.rbz-events-pagination-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #071448;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rbz-events-pagination-btn:hover:not(:disabled) {
    background: #c78124;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(7, 20, 72, 0.3);
}

.rbz-events-pagination-btn:disabled {
    background: #cccccc;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.rbz-events-pagination-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.rbz-events-pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #071448;
}

.rbz-events-pagination-current {
    font-size: 24px;
    color: #c78124;
    font-weight: 700;
}

.rbz-events-pagination-total {
    font-size: 20px;
    color: #071448;
    font-weight: 700;
}

/* Hide items beyond first page by default */
.rbz-events-container[data-total] .rbz-event-card:nth-child(n+7) {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rbz-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rbz-events-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .rbz-event-card {
        margin-bottom: 0;
    }
    
    .rbz-event-content {
        padding: 20px;
    }
    
    .rbz-events-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .rbz-events-pagination-btn {
        width: 100%;
        justify-content: center;
    }
}
