/*css cho phần lọc*/
form.casino-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Ô select và nút lọc */
.casino-filter-form select,
.casino-filter-form button {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* Ô select */
.casino-filter-form select {
    background-color: #fff;
    color: #333;
    flex: 1;
    max-width: 200px;margin-bottom: 0;
}

/* Nút lọc */
.casino-filter-form button {
    background-color: #cd2524;
    color: #fff;
    cursor: pointer;
    border: none;
    flex: 0 0 auto;margin:0;
}

/* Hiệu ứng hover cho nút lọc */
.casino-filter-form button:hover {
    background-color: #005bb5;
}

/* Hiệu ứng focus cho select và button */
.casino-filter-form select:focus,
.casino-filter-form button:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

/* Responsive cho điện thoại di động */
@media (max-width: 768px) {
    .casino-filter-form {
        flex-direction: column;
        gap: 10px;
    }

    .casino-filter-form select,
    .casino-filter-form button {
        width: 100%;
        min-width: unset;
    }
}
/* Style chung cho toplist */
/* Container chính */
.casino-toplist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

/* Mỗi item nhà cái */
.casino-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-wrap: wrap;
}

a.btn:hover  {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Phần đầu (xếp hạng và logo) */
.phandau {
    display: flex;
    align-items: center;
    width: 30%;
}

.phandau .casino-rank {
    width: 20%;
}
.phandau .casino-logo {
    width: 70%;text-align:center;
}

.casino-rank {
    text-align: center;
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #ff5722;
}

.casino-logo img {
    width: 125px;
    height: auto;
}

/* Phần nội dung chính */
.casino-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.phangiua {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
.casino-title {
    font-size: 22px;
    margin: 0;
    width: auto;
}

.casino-title a {
    color: #333;
    text-decoration: none;
}

.casino-title a:hover {
    color: #ff5722;
}

/* Phần trạng thái */
.casino-status {
    margin-bottom: 0;
    width: 40%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.status-active {
    color: #28a745; /* Màu xanh lá cây */
    font-weight: bold;
}

.status-closed {
    color: #dc3545; /* Màu đỏ */
    font-weight: bold;
}

/* Phần đánh giá sao */
/* Container chính */
.casino-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;cursor: pointer;
}
/*phần kế cuối*/
.phankecuoi {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.phancuoi {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
/* Phần sao */
.stars {
    display: flex;
    gap: 4px;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 0 10px;
    align-items: center;
}

.star {
    color: #ccc; /* Màu sao xám */
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.star.filled {
    color: #ffc107;
    text-shadow: 0 0 1px black;
}

.star:hover {
    transform: scale(2); /* Hiệu ứng phóng to khi hover */
}

/* Phần text đánh giá */
.rating-text {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease;
}

.rating-text:hover {
    background: #ff5722; /* Màu nền khi hover */
    color: #fff; /* Màu chữ khi hover */
}
/* Container chính */
.luot-tai {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0; /* Màu nền */
    padding: 2px 12px;
    border-radius: 20px; /* Bo tròn */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
    transition: background 0.3s ease, transform 0.3s ease;
	    cursor: pointer;
}

.luot-tai:hover {
    background: #ff5722; /* Màu nền khi hover */
    transform: translateY(-2px); /* Hiệu ứng nổi lên khi hover */
}

/* Phần text */
.luottai-text {
    display: flex;
    align-items: center;
    gap: 5px; /* Khoảng cách giữa icon và text */
    font-size: 12px;
    font-weight: bold;
    color: #333; /* Màu chữ */
    transition: color 0.3s ease;
}

.luot-tai:hover .luottai-text {
    color: #fff; /* Màu chữ khi hover */
}

/* Icon */
.luottai-text img {
    width: 16px; /* Kích thước icon */
    height: 16px;
    filter: grayscale(100%); /* Icon màu xám */
    transition: filter 0.3s ease;
}

.luot-tai:hover .luottai-text img {
    filter: grayscale(0%); /* Icon màu gốc khi hover */
}

/* Phần Call-to-Action (CTA) */
.casino-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}
a.btn.dk {
    background: linear-gradient(30deg, #eb3430, #ff8682);
    color: #fff;
}
a.btn.xem {
        background: #ebebeb;
    color: #d42828;
}
.btn {
    padding: 5px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

/* Màu xám cho nhà cái đã sập */
.casino-closed {
    background-color: #c5c5c5; /* Màu nền xám nhạt */
    opacity: 0.8; /* Làm mờ nhẹ */
    transition: opacity 0.3s ease;
}

.casino-closed:hover {
    opacity: 1; /* Trở lại độ mờ bình thường khi hover */
}

/* Ẩn nút "Đăng ký ngay" nếu nhà cái đã sập */
.casino-closed .btn-primary.dk {
    display: none;
}

/* Làm mờ các phần tử khác trong thẻ article */
.casino-closed .casino-title a,
.casino-closed .casino-status,
.casino-closed .casino-rating,
.casino-closed .luot-tai {
    opacity: 0.6; /* Làm mờ các phần tử */
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .casino-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .phandau {
        width: 100%;
        align-items: center;
    }
	.casino-logo {display: flex;
        justify-content: flex-end;}

    .phandau div {
        margin-bottom: 10px;
    }

    .casino-rank {
        text-align: left;
    }

    .casino-logo img {
    }

    .casino-content {
        width: 100%;
    }

    .casino-cta {
        flex-direction: row;
        justify-content: space-between;
    }

    .btn {
        width: 48%;
    }
}