/* Базовые стили карточки */
/* Base styles for the card */
.wgn-location-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    will-change: transform;

    /* Аппаратное ускорение по DoD */
    /* Hardware acceleration for DoD */
    cursor: grab;
}

/* Эффект при наведении (DoD: hardware-accelerated zoom) */
/* Hover effect (DoD: hardware-accelerated zoom) */
.wgn-location-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Контейнер картинки */
/* Image container */
.wgn-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f0f2f5;
}

.wgn-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для Fallback заглушки (DoD: clean image fallbacks) */
/* Styles for Fallback placeholder (DoD: clean image fallbacks) */
.wgn-image-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #a0aec0;
    font-family: sans-serif;
}

/* Иконка WP Dashicons для заглушки */
/* WP Dashicons icon for the placeholder */
.wgn-image-fallback .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

/* Бадж таксономии/контекста */
/* Taxonomy/context badge */
.wgn-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3182ce;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Текстовый блок */
/* Text block */
.wgn-card-content {
    padding: 16px;
}

.wgn-card-title {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
}

.wgn-card-content {
    padding: 16px;
    text-align: center;
    /* Центрируем заголовок, чтобы при любой локализации (LTR/RTL) было красиво */
    /* Center the title so that it looks good in any localization (LTR/RTL) */
}

/* На всякий случай добавим небольшой отступ снизу для заглушки */
/* Just in case, add a small bottom padding for the fallback */
.wgn-image-fallback {
    padding: 20px 0;
}

/* ==========================================================================
   WGN Event Date Card Styles
   ========================================================================== */

.wgn-event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    will-change: transform;
    position: relative;
}

.wgn-event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wgn-event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    font-family: sans-serif;
}

.wgn-event-date-badge .wgn-date-day {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.wgn-event-date-badge .wgn-date-month {
    font-size: 10px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.wgn-sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.wgn-sold-out-stamp {
    border: 3px solid #e53e3e;
    color: #e53e3e;
    padding: 6px 16px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    transform: rotate(-8deg);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.3);
    user-select: none;
}

.wgn-state-sold-out .wgn-card-content {
    opacity: 0.7;
}