/* Main container styles */
/* Main container styles */
.sv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}


/* Contest grid styles */
.sv-contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.sv-contest-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sv-contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sv-contest-thumbnail {
    height: 200px;
    overflow: hidden;
}

.sv-contest-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sv-contest-card:hover .sv-contest-thumbnail img {
    transform: scale(1.05);
}

.sv-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    font-weight: bold;
}

.sv-contest-title {
    margin: 15px;
    font-size: 1.3em;
    color: #333;
}

.sv-contest-excerpt {
    margin: 0 15px 15px;
    color: #666;
    font-size: 0.9em;
}

/* Leaderboard styles */
.sv-leaderboard-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sv-leaderboard-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.sv-leaderboard-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.sv-leaderboard-item {
    min-width: 180px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sv-leaderboard-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sv-leaderboard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-leaderboard-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a4508b, #e52e71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7em;
}

.sv-leaderboard-details {
    flex-grow: 1;
}

.sv-leaderboard-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.sv-leaderboard-number {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.sv-leaderboard-votes {
    font-size: 0.9em;
    color: #e52e71;
    font-weight: bold;
}

/* Search styles */
.sv-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sv-search-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.sv-search-input:focus {
    border-color: #a4508b;
    outline: none;
}

.sv-search-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contestants grid */
.sv-contestants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sv-contestant-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sv-contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sv-contestant-image {
    height: 250px;
    overflow: hidden;
}

.sv-contestant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sv-contestant-card:hover .sv-contestant-image img {
    transform: scale(1.05);
}

.sv-contestant-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a4508b, #e52e71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.sv-contestant-info {
    padding: 15px;
}

.sv-contestant-name {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.sv-contestant-number {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.sv-contestant-votes {
    font-size: 0.9em;
    color: #e52e71;
    font-weight: bold;
    margin-bottom: 15px;
}

.sv-vote-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff8a00, #e52e71, #a4508b);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal styles */
.sv-vote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sv-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sv-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

.sv-modal-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.sv-vote-qty-container {
    margin-bottom: 20px;
}

.sv-vote-qty-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.sv-vote-qty-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.sv-vote-total {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.sv-pay-now-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-pay-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    .sv-contests-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .sv-contestants-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .sv-contests-grid {
        grid-template-columns: 1fr;
    }
    
    .sv-contestants-grid {
        grid-template-columns: 1fr;
    }
    
    .sv-search-container {
        flex-direction: column;
    }
    
    .sv-search-button {
        width: 100%;
    }
}