/* Global Styles */
.cvs-voting-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.cvs-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.cvs-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cvs-header h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cvs-description {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.95;
}

/* Voting Wrapper */
.cvs-voting-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .cvs-voting-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Categories Sidebar */
.cvs-categories {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cvs-categories h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.cvs-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cvs-category-item {
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cvs-category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.cvs-category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cvs-category-item.has-votes {
    border-color: #28a745;
}

.cvs-category-item.max-reached {
    border-color: #ffc107;
}

.cvs-category-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

.cvs-vote-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.cvs-category-item.active .cvs-vote-count {
    background: rgba(255, 255, 255, 0.25);
}

.cvs-category-name {
    font-weight: 500;
    font-size: 1.05em;
}

/* Artists Grid */
.cvs-artists {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.cvs-artist-grid {
    display: none;
}

.cvs-artist-grid.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cvs-category-title {
    font-size: 2em;
    margin: 0 0 30px 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.cvs-artist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .cvs-artist-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

.cvs-artist-card {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cvs-artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cvs-artist-card.voted {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.cvs-artist-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvs-artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cvs-no-image {
    font-size: 4em;
    color: #dee2e6;
}

.cvs-artist-info {
    padding: 15px;
}

.cvs-artist-name {
    font-size: 1.1em;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvs-vote-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cvs-vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cvs-artist-card.voted .cvs-vote-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.cvs-artist-card.voted .cvs-vote-btn:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.cvs-btn-icon {
    font-size: 1.2em;
}

.cvs-no-artists {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1.2em;
}

/* Submit Section */
.cvs-submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

.cvs-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cvs-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

.cvs-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cvs-submit-icon {
    font-size: 1.3em;
}

.cvs-submit-info {
    margin-top: 15px;
    color: white;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modal */
.cvs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.cvs-modal-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cvs-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.cvs-modal-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 15px;
}

.cvs-modal-header h2 {
    margin: 0;
    color: #28a745;
    font-size: 2em;
}

.cvs-modal-body {
    text-align: center;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 30px;
}

.cvs-vote-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.cvs-vote-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cvs-vote-summary li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.cvs-vote-summary li:last-child {
    border-bottom: none;
}

.cvs-modal-footer {
    text-align: center;
}

.cvs-btn-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cvs-btn-close:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
