/* top-list.css - Styles for the casino top list */

.cols__top {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-wrap: wrap;
    gap: 20px;
}

.top-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color, #e74c3c);
}

.top-card__logo {
    flex: 0 0 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #2c3e50);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 10px;
}

.top-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.top-card__main-info {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #2c3e50);
    margin: 0;
}

.rating {
    display: flex;
    align-items: center;
    height: 20px;
    width: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ddd" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

.rating__fill {
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23f39c12" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.top-card__link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
    transition: color 0.2s;
}

.top-card__link:hover {
    color: var(--accent-color, #e74c3c);
}

.top-card__secondary-info {
    flex: 1 1 250px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.top-card__secondary-info li {
    display: flex;
    align-items: center;
}

.top-card__payments {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-card__payments li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    background: #f4f4f4;
    border-radius: 4px;
    padding: 2px;
}

.top-card__payments li img {
    max-width: 100%;
    max-height: 100%;
}

.top-card__btn {
    flex: 0 0 160px;
    background: var(--accent-color, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.top-card__btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .top-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }

    .top-card__logo {
        flex: 0 0 auto;
        width: 140px;
        height: 80px;
    }

    .top-card__main-info,
    .top-card__secondary-info {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
    }
    
    .rating {
        margin: 0 auto;
    }

    .top-card__payments {
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
        max-width: 250px;
        width: 100%;
        justify-content: center;
        margin: 10px auto;
    }

    .top-card__btn {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

.top-card__secondary-info li i {
    margin-right: 8px;
    color: var(--accent-color, #e74c3c);
    font-size: 1.1em;
}

