/* ======================================================
   Podstrona /wydarzenia — Biletyna events
   ====================================================== */

/* Hero */
.ev-page-hero {
    background: linear-gradient(135deg, #4a3f6b 0%, #6b5b95 60%, #5c4e82 100%);
    color: white;
    padding: 60px 0 40px;
}

.ev-page-hero nav {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.ev-page-hero nav a {
    color: white;
    text-decoration: none;
}

.ev-page-hero h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px;
}

.ev-page-hero p {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 20px;
}

/* Filtry kategorii */
.ev-cat-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ev-cat-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}

.ev-cat-btn.active,
.ev-cat-btn:hover {
    background: white;
    color: #7c3aed;
}

/* Strefa treści */
.ev-page-body {
    background: #f8f9fa;
    min-height: 400px;
    padding: 40px 0 60px;
}

/* Grid wydarzeń */
.ev-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Karta wydarzenia */
.ev-page-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ev-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ev-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.ev-date-badge {
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    flex-shrink: 0;
    min-width: 54px;
    color: white;
}

.ev-date-day {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.ev-date-mon {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ev-card-meta {
    flex: 1;
    min-width: 0;
}

.ev-card-dow {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ev-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ev-card-body {
    padding: 16px;
    flex: 1;
}

.ev-card-body h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card-hall {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-card-hall i {
    margin-right: 5px;
}

.ev-card-footer {
    padding: 12px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
}

.ev-card-price {
    font-size: 15px;
    font-weight: 900;
}

.ev-card-places {
    font-size: 12px;
    font-weight: 700;
}

.ev-card-places.low { color: #dc2626; }
.ev-card-places.ok  { color: #16a34a; }

.ev-card-cta {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Paginacja */
.ev-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ev-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ev-page-num.active,
.ev-page-num:hover {
    background: #6b5b95;
    color: white;
    border-color: #6b5b95;
    box-shadow: 0 4px 12px rgba(107,91,149,0.3);
}

/* Stan pusty */
.ev-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ev-empty i {
    font-size: 48px;
    color: #d1d5db;
    display: block;
    margin-bottom: 20px;
}

.ev-empty h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
}

.ev-empty p {
    color: #6b7280;
    margin: 0 0 24px;
}

/* Modal */
.ev-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ev-modal-overlay.open {
    display: flex;
}

.ev-modal {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ev-modal-head {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ev-modal-head h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.ev-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 22px;
    padding: 0;
    flex-shrink: 0;
}

.ev-modal-body {
    padding: 20px 24px;
}

.ev-modal-location {
    margin: 0 0 14px;
    font-size: 14px;
    color: #6b7280;
}

.ev-modal-stats {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}

.ev-modal-stat {
    flex: 1;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.ev-modal-stat-val {
    font-size: 22px;
    font-weight: 900;
}

.ev-modal-stat-lbl {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.ev-modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.ev-modal-buy {
    flex: 1;
    background: linear-gradient(135deg, #6b5b95, #8b7bb5);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ev-modal-buy:hover { opacity: 0.9; }

.ev-modal-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .ev-page-hero h1 { font-size: 26px; }
    .ev-page-grid    { grid-template-columns: 1fr; }
}
