/* ===== KONKURS ===== */

.nevv-contest {
    margin-top: 40px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 16px;
}

/* ===== HEADER ===== */

.nevv-contest-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
}

/* ===== GRID ===== */

.nevv-contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* ===== ENTRY ===== */

.nevv-contest-entry {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.nevv-contest-entry:hover {
    transform: translateY(-2px);
}

.nevv-contest-image {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

/* ===== WYNIKI ===== */

.nevv-entry-result {
    font-size: 14px;
    margin-bottom: 10px;
}

.nevv-entry-medal {
    font-size: 20px;
    display: block;
}

/* ===== PODIUM ===== */

.nevv-results-summary {
    margin-bottom: 20px;
}

.nevv-results-podium {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nevv-result-place {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    min-width: 180px;
}

.nevv-result-medal {
    font-size: 22px;
}

/* ===== ZWYCIĘZCY ===== */

.nevv-winner-1 {
    border: 3px solid gold;
}

.nevv-winner-2 {
    border: 3px solid silver;
}

.nevv-winner-3 {
    border: 3px solid #cd7f32;
}

/* ===== IKONKI ===== */

.nevv-contest-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nevv-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: #eee;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nevv-icon-btn:hover {
    transform: scale(1.1);
}

/* ===== MODAL ===== */

.nevv-modal {
    display: none;
}

.nevv-modal.is-open {
    display: block;
}

.nevv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
}


.nevv-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}



.nevv-modal-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: min(90vw, 400px);
}

.nevv-answer-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.nevv-answer-btn {
    flex: 1;
    padding: 10px;
    border: 0;
    background: #2e7d5b;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}


/* ===== LIGHTBOX ===== */

.nevv-lightbox {
    display: none;
}

.nevv-lightbox.active {
    display: block;
}

.nevv-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99998;
}

.nevv-lightbox-content {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nevv-lightbox-content img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
}