/* ===================================================== */
/* ==================== POZADÍ STRÁNKY ================= */
/* ===================================================== */

body {
    margin: 0;
    padding: 0;

    background:
        linear-gradient(rgba(25,0,5,0.9), rgba(0,0,0,0.95)),
        url("../img/calendar.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
}

.past-event {
    opacity: 0.5;
    filter: grayscale(60%);
    transition: 0.3s;
}

.past-event:hover {
    opacity: 0.8;
}

/* ===================================================== */
/* ==================== SEKCE AKCE ===================== */
/* ===================================================== */

#akce {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

#akce h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    letter-spacing: 1px;
}

/* ===================================================== */
/* ==================== GRID =========================== */
/* ===================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ===================================================== */
/* ==================== KARTA ========================== */
/* ===================================================== */

.event-card {
    position: relative;
    overflow: hidden;

    background-color: ivory;
    backdrop-filter: blur(4px);

    padding: 30px;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);

    transition: 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

/* ===================================================== */
/* ==================== IKONA ========================== */
/* ===================================================== */

.event-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    opacity: 0.15;
    pointer-events: none;
}

/* ===================================================== */
/* ==================== TEXT =========================== */
/* ===================================================== */

.event-card h3 {
    margin-top: 0;
    color: rgba(170,25,25,0.8)
}

.date {
    font-weight: bold;
    margin-bottom: 10px;
    color: black;
}

.location {
    margin-bottom: 10px;
    color: black;
}

.popis {
    opacity: 0.85;
    line-height: 1.5;
    color: black;
}

/* ===================================================== */
/* ==================== RESPONSIVE ===================== */
/* ===================================================== */

@media (max-width: 768px) {

    #akce {
        padding: 40px 15px;
    }

    #akce h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .event-card {
        padding: 20px;
    }

    .event-icon {
        width: 200px;
    }

}