/* Események megjelenítő CSS */

.esemenyek-container {
    max-width: 1200px;
    font-family: "Poppins", Sans-serif;
}

.esemenyek-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.esemeny-item {
    background: #faf7f5;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.esemeny-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.esemeny-kep {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.esemeny-kep img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

p.esemeny-datum {
    font-weight: 500;
    font-size: 16px;
}

.esemeny-item:hover .esemeny-kep img {
    transform: scale(1.05);
}

.esemeny-content {
    padding: 20px;
}

.esemeny-cim {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.4;
}

.esemeny-rovid-leiras {
    margin: 0 0 20px 0;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 25px;
    color: #5F5E59;
}

.esemeny-megnyit-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 50px;
}

.esemeny-megnyit-btn:hover {
    background: rgba(159, 82, 82, 0.09019607843137255);
        color: #000000;
}

/* Modal stílusok */
.esemeny-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.esemeny-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.esemeny-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.esemeny-modal-close:hover,
.esemeny-modal-close:focus {
    color: #000;
    background: rgba(255, 255, 255, 1);
}

#esemeny-modal-title {
    margin: 0;
    padding: 30px 30px 20px 30px;
    font-size: 1.8em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
}

#esemeny-modal-body {
    padding: 30px;
    line-height: 1.8;
    color: #555;
}

#esemeny-modal-body p {
    margin-bottom: 1.5em;
}

#esemeny-modal-body h1,
#esemeny-modal-body h2,
#esemeny-modal-body h3,
#esemeny-modal-body h4,
#esemeny-modal-body h5,
#esemeny-modal-body h6 {
    color: #333;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Reszponzív dizájn */
@media (max-width: 968px) {
    .esemenyek-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .esemenyek-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .esemenyek-container {
        padding: 15px;
    }
    
    .esemeny-content {
        padding: 15px;
    }
    
    .esemeny-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #esemeny-modal-title {
        font-size: 1.5em;
        padding: 20px 20px 15px 20px;
    }
    
    #esemeny-modal-body {
        padding: 20px;
    }
    
    .esemeny-modal-close {
        right: 15px;
        top: 10px;
    }
}

/* Loading animáció */
.esemeny-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.esemeny-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hibaüzenet stílus */
.esemeny-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
}