/* Events Page Specific Styles */

.event-count {
    font-size: 14px;
    font-weight: 600;
    color: #5e10a1;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.event-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.event-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.event-badge-special {
    position: absolute;
    top: 50px;
    right: 12px;
    background: #5e10a1;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.event-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-hospital {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.event-hospital-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.event-hospital-name {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-location {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.event-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.rating-stars {
    font-size: 14px;
    font-weight: 700;
    color: #5e10a1;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

.event-price {
    margin-bottom: 16px;
    flex: 1;
}

.price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-discounted {
    font-size: 22px;
    font-weight: 700;
    color: #5e10a1;
    margin-bottom: 4px;
}

.price-vat {
    font-size: 11px;
    color: #666;
}

.btn-event-detail {
    width: 100%;
    padding: 12px;
    background: #5e10a1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-event-detail:hover {
    background: #e55a28;
}

/* Empty State */
.events-empty {
    text-align: center;
    padding: 80px 20px;
}

.events-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.events-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.events-empty-text {
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        gap: 16px;
    }

    .event-card {
        border-radius: 8px;
    }

    .event-thumbnail {
        height: 180px;
    }

    .event-content {
        padding: 16px;
    }

    .event-title {
        font-size: 15px;
        height: auto;
        -webkit-line-clamp: 3;
    }

    .price-discounted {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-thumbnail {
        height: 200px;
    }
}
