/* Kupa Info Modal Styles */
#kupaInfoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

#kupaInfoModal.show {
    display: block;
}

.kupa-info-modal-content {
    background: white;
    margin: 30px auto;
    padding: 0;
    max-width: 1200px;
    width: 95%;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideDown 0.4s ease;
}

.kupa-info-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.kupa-info-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.kupa-info-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.kupa-info-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.kupa-info-modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#kupaInfo {
    display: none;
}

#kupaInfo.show {
    display: block;
}

/* Override inline styles from kupaInfoScript.js */
#kupaInfo h3 {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin: 25px auto 15px;
    font-weight: 600;
}

#kupaInfo table {
    width: 100% !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    border-collapse: collapse !important;
    font-size: 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#kupaInfo table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

#kupaInfo table tbody tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

#kupaInfo table td {
    padding: 12px !important;
    border: 1px solid #dee2e6 !important;
}

#kupaInfo table td:first-child {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%) !important;
    color: #333 !important;
    font-weight: 600;
}

#kupaInfo canvas {
    display: block;
    margin: 20px auto;
    max-width: 900px !important;
    width: 100% !important;
}

.closekupainfo {
    display: none !important;
}

/* Ranking Badge */
.ranking-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kupa-info-modal-content {
        margin: 20px auto;
        width: 98%;
        border-radius: 15px;
    }

    .kupa-info-modal-header {
        padding: 20px;
    }

    .kupa-info-modal-header h2 {
        font-size: 1.3rem;
    }

    .kupa-info-modal-body {
        padding: 15px;
        max-height: calc(100vh - 150px);
    }

    #kupaInfo h3 {
        font-size: 1.2rem;
    }

    #kupaInfo table {
        font-size: 13px !important;
    }

    #kupaInfo table td {
        padding: 8px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

