/* Styles specific to the Associate Rivals page */

/* --- Rival Card Styling --- */
.rival-card {
    position: relative; /* Needed for badge positioning */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden; 
}

.rival-card:hover {
     box-shadow: 0 8px 25px rgba(88, 80, 236, 0.2); /* Purple glow on hover */
     transform: translateY(-4px);
}

/* NEW: Badge for days active */
.days-active-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f4d35e; /* --accent-yellow */
    color: #333333; /* --text-dark */
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Special state for a bested rival */
.rival-card.rival-bested {
    border-color: #ffc107; /* Gold/Yellow border */
    box-shadow: 0 0 15px 2px rgba(255, 193, 7, 0.5); 
    pointer-events: none; /* Disable clicks on the card itself */
}

.rival-card.rival-bested .score-bar-container {
    pointer-events: auto; 
}

.score-bar-container:hover{
    opacity: 1;
}

/* --- Invites Modal --- */
.modal-heading {
    text-align: center;
    font-family: "Libre Baskerville", serif;
    color: #4a4a4a;
    margin-top: 0;
}

.invite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.add-message-error {
    color: #ef4444; /* red-500 */
}

.add-message-success {
    color: #22c55e; /* green-500 */
}

