/* Team Performance Voting Styles */
.kp-gamevote-container {
    max-width: 800px;
    margin: 20px auto;
    padding: var(--spacing-xl);
    background: rgb(255 255 255);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 0.0625rem solid var(--border-color);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kp-gamevote-header {
    text-align: center;
    margin-bottom: 30px;
}

.kp-gamevote-header h2 {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.kp-gamevote-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.kp-gamevote-teams {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 0px;
    align-items: start;
}

.kp-gamevote-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.kp-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.kp-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.kp-team-name {
    display: none;
}

.kp-performance-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kp-performance-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 48px;
    transition: background-color 0.2s ease;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kp-performance-btn:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.kp-performance-btn:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}


/* Subtle hover effects */
.kp-performance-btn:hover {
    filter: brightness(1.1);
}

.kp-performance-btn.voted {
    border-color: currentColor;
    font-weight: 600;
}

.kp-performance-btn.disabled:not(.voted) {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.kp-performance-btn.voted {
    cursor: default;
    pointer-events: none;
}

/* Performance level colors */
.kp-performance-btn[data-performance="top_class"] {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #ffffff;
}

.kp-performance-btn[data-performance="great"] {
    background: linear-gradient(135deg, #87EEAB, #34D399);
    color: #ffffff;
}

.kp-performance-btn[data-performance="average"] {
    background: linear-gradient(135deg, #FDE046, #FBBF24);
    color: #92400e;
}

.kp-performance-btn[data-performance="lucky"] {
    background: linear-gradient(135deg, #FDBA74, #FB923C);
    color: #ffffff;
}

.kp-performance-btn[data-performance="poor"] {
    background: linear-gradient(135deg, #FCA5A5, #EF4444);
    color: #ffffff;
}

.kp-performance-label {
    font-weight: inherit;
}

.kp-vote-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Center vote display */
.kp-total-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.kp-vote-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #1f2937;
    min-width: auto;
    min-height: auto;
    justify-content: center;
    box-shadow: none;
}

.kp-total-count {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.kp-vote-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
}

/* Message display */
.kp-gamevote-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.kp-gamevote-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.kp-gamevote-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
    font-size: 14px;
}

.kp-gamevote-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
    display: block;
}

/* Loading state */
.kp-gamevote-container.loading .kp-performance-btn {
    opacity: 0.7;
    pointer-events: none;
}


/* Responsive design */
@media (max-width: 768px) {
    .kp-gamevote-container {
        margin: 10px;
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
    }
    
    .kp-gamevote-teams {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .kp-total-votes {
        order: -1;
        grid-column: 1 / -1;
        margin-bottom: 20px;
        margin-top: 0;
    }
    
    .kp-performance-options {
        width: 100%;
        max-width: none;
    }
    
    .kp-performance-btn {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .kp-gamevote-header h2 {
        font-size: 18px;
    }
    
    .kp-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .kp-team-name {
        font-size: 16px;
    }
    
    .kp-performance-btn {
        font-size: 13px;
        padding: 12px 14px;
        min-height: 44px;
    }
    
    .kp-total-count {
        font-size: 24px;
    }
    
    .kp-vote-label {
        font-size: 12px;
    }
}