/* Lagos Top 10 - Responsive Grid Styling */

/* Grid Container */
.lagos-10-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Mobile: 2 columns (default) */
.lagos-10-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Individual Grid Items */
.lagos-10 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lagos-10:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Tablet: 4 columns */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .lagos-10-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Desktop/Large screens: 6 columns */
@media screen and (min-width: 1024px) {
    .lagos-10-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

/* Ensure images maintain aspect ratio */
.lagos-10 .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Adjust text sizing for smaller grid items on larger screens */
@media screen and (min-width: 1024px) {
    .lagos-10 .title {
        font-size: 0.9rem;
    }
    
    .lagos-10 .artist-name {
        font-size: 0.8rem;
    }
}

/* Fine tune for very small mobile devices */
@media screen and (max-width: 480px) {
    .lagos-10-grid {
        gap: 15px;
    }
}

/* ===================================
   Voting Interface Styles
   =================================== */

/* Hide checkboxes */
#ufm-vote input[type="checkbox"] {
    display: none;
}

/* Make voting items clickable */
#ufm-vote label {
    cursor: pointer;
    display: block;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#ufm-vote label:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* Selected state - using class added by JavaScript */
#ufm-vote label.selected {
    background: #e8f4f8;
    border-color: #3273dc;
    box-shadow: 0 2px 8px rgba(50, 115, 220, 0.2);
}

/* Add a visual indicator for selected items */
#ufm-vote label.selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #3273dc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Fix label positioning for the checkmark */
#ufm-vote label {
    position: relative;
}

/* Improve spacing and layout */
#ufm-vote .level {
    margin: 0;
}

#ufm-vote .field {
    margin-bottom: 0;
}
