/* Casinos catalog page – lightweight layout only */

.hero--casinos .hero-title {
    text-align: center;
    text-transform: uppercase;
}

.hero--casinos .hero-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero--casinos .hero-subtitle-row .hero-subtitle {
    margin-bottom: 0;
}

.hero--casinos .country-flag--hero-subtitle {
    width: 24px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.casinos-sort {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.casinos-sort::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 55%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.casinos-sort-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.casinos-sort-label {
    font-weight: 500;
}

.casinos-sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.casinos-sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    font-size: 0.875rem;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
}

.casinos-sort-chip:hover {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.casinos-sort-chip.is-active {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.6), 0 4px 10px rgba(15, 23, 42, 0.7);
    font-weight: 600;
}

.casinos-catalog {
    padding: 2rem 0 3rem;
}

.casinos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1100px) {
    .casinos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .casinos-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* top-card — same structure as index #catalog .top-card--casino */
.top-card {
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.top-card--casino {
    min-height: 230px;
}

.top-card-logo {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.top-card-logo img {
    display: block;
    width: 200px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.7rem;
    vertical-align: top;
}

.top-card-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.6);
    font-weight: 600;
}

.top-card-content {
    flex: 1;
}

.top-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.top-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.top-card-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.top-card-rating--clickable {
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.top-card-rating:hover,
.top-card-rating--clickable:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.top-card-rating-chevron {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    transition: transform 0.18s ease;
}

.top-card-rating-chevron svg {
    vertical-align: middle;
}

.top-card-rating--clickable.is-open .top-card-rating-chevron {
    transform: rotate(180deg);
}

.top-card-rating-panel {
    margin-top: 0.4rem;
    padding: 0.5rem 0.55rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.98);
    display: none;
}

.top-card-rating-panel.is-open {
    display: block;
}

.rating-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.rating-panel-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-panel-score-star {
    color: #facc15;
    font-size: 0.9rem;
}

.rating-panel-score-value {
    font-size: 0.95rem;
}

.rating-panel-score-out-of {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
}

.rating-panel-summary {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
    white-space: nowrap;
}

.rating-distribution {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-distribution-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rating-distribution-label {
    width: 2.4rem;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.rating-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.35);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #a3e635);
    transition: width 0.25s ease-out;
}

.rating-distribution-count {
    width: 2.4rem;
    text-align: right;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.user-rating-row {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.user-rating-label {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.user-rating-stars {
    display: inline-flex;
    gap: 0.15rem;
}

.user-rating-star {
    border: none;
    padding: 0;
    background: transparent;
    color: rgba(148, 163, 184, 0.9);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.12s ease, color 0.12s ease;
}

.user-rating-star.is-active {
    color: #facc15;
}

.user-rating-star:hover {
    transform: scale(1.1);
}

.top-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.top-card-highlight {
    font-size: 1rem;
    font-weight: 500;
    color: #a855f7;
    text-align: center;
    margin: 10px 0;
}

.top-card-pros-line {
    font-size: 0.9rem;
    color: #4ade80;
    text-align: center;
}

.top-card-cons-line {
    font-size: 0.85rem;
    color: rgba(248, 113, 113, 0.5);
    text-align: center;
    margin: 10px 0;
}

.top-card-desc {
    margin: 0.5rem 0 0;
}

.top-card-desc-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.top-card-desc-text {
    width: 100%;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-align: justify;
}

.top-card-desc-text.is-expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

.top-card-footer {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.casinos-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link {
    min-width: 2.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pagination-link:hover {
    background: rgba(129, 140, 248, 0.22);
    border-color: rgba(129, 140, 248, 0.95);
    color: #fff;
    transform: translateY(-1px);
}

.pagination-link.is-active {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.8);
    font-size: 0.85rem;
    text-decoration: none;
    background: radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.22), transparent 55%);
    color: #facc15;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.btn-outline-sm:hover,
.btn-outline-sm:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.7);
    border-color: rgba(250, 250, 210, 0.95);
}

.casinos-empty {
    text-align: center;
    opacity: 0.8;
}

