/* =======================================================
   Happy Retired Event Card v1
   Shared UI component for home, event list and recommendations.
======================================================= */

.hr-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.hr-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hr-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.hr-event-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.hr-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

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

.hr-event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.hr-event-date {
    margin-bottom: 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.hr-event-category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff3e9;
    color: #ec7b3a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.hr-event-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    margin: 0 0 12px;
    color: #343434;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hr-event-title a {
    color: inherit;
    text-decoration: none;
}

.hr-event-title a:hover,
.hr-event-title a:focus {
    color: #ec7b3a;
}

.hr-event-meta {
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.hr-event-time,
.hr-event-venue {
    margin-bottom: 8px;
}

.hr-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
}

.hr-event-price {
    color: #343434;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.hr-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #ec7b3a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}

.hr-event-button:hover,
.hr-event-button:focus {
    background: #d86422;
    color: #fff;
}

@media (max-width: 1024px) {
    .hr-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hr-event-grid {
        grid-template-columns: 1fr;
    }

    .hr-event-body {
        padding: 18px;
    }

    .hr-event-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hr-event-button {
        width: 100%;
    }
}
