/* Casino Toplist Plugin CSS
   Responsive layout for desktop, tablet, and mobile.
*/

.casino-toplist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Pagination */
.casino-toplist-pagination {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}
.casino-toplist-page-label {
    margin-right: 4px;
}
.casino-toplist-page {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.casino-toplist-page.current {
    background: #1b75bb;
    border-color: #1b75bb;
    color: #fff;
}

/* Card base */
.casino-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover glow on entire card */
.casino-card:hover {
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.55);
    transform: translateY(-1px);
}

.casino-card-inner {
    padding: 12px 16px 8px;
}

/* Main row (desktop) */
.casino-card-main {
    display: grid;
    grid-template-columns: 140px minmax(200px, 1.5fr) 140px 220px;
    grid-gap: 16px;
    align-items: center;
}

/* Logo */
.casino-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* tablet color handled via JS + data-logo-bg */
}

.casino-card-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.casino-card-logo-placeholder {
    width: 120px;
    height: 80px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

/* Offer section */

.casino-card-rating {
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.casino-card-rating-star {
    font-size: 16px;
    line-height: 1;
    color: #e5e7eb;
}

.casino-card-rating-star--filled {
    color: #facc15;
    text-shadow: 0 0 4px rgba(234, 179, 8, 0.6);
}

.casino-card-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

.casino-card-bonus-line {
    margin-bottom: 2px;
}

.casino-card-bonus-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1b75bb;
}

.casino-card-freespins {
    font-size: 18px;
    font-weight: 600;
    color: #43a047;
}

.casino-card-wagering {
    margin-top: 4px;
    font-size: 12px;
}

.casino-card-wager-row {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
}

/* Icons (Pros badges) */
.casino-card-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(40px, 1fr));
    grid-gap: 8px;
    text-align: center;
    font-size: 11px;
}

.casino-card-icon {
    border-radius: 4px;
    padding: 6px 4px;
    border: 1px solid #ddd;
}

/* CTA column */
.casino-card-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    justify-content: center;
}

.casino-card-visit-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #4CAF50;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.casino-card-visit-main {
    display: block;
    font-size: 16px;
}

.casino-card-visit-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
}

.casino-card-review-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #1b75bb;
    color: #1b75bb;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover: recension button turns orange */
.casino-card-review-btn:hover {
    background-color: #ff9800;
    border-color: #ff9800;
    color: #ffffff;
}

/* Features row */
.casino-card-features {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 8px;
    font-size: 12px;
}

.casino-card-feature {
    background: #f6f6f6;
    padding: 8px 10px;
    border-radius: 3px;
}

.casino-card-feature-label {
    display: block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.casino-card-feature-value {
    display: block;
    font-style: italic;
}

/* Deposit methods row */
.casino-card-methods {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fbfbfb;
    border-radius: 3px;
    font-size: 12px;
}

.casino-card-methods-label {
    font-weight: 700;
}

/* Footer disclaimer */
.casino-card-footer {
    border-top: 1px solid #e0e0e0;
    padding: 6px 12px;
    font-size: 10px;
    text-align: center;
    color: #777;
}

.casino-card-footer a {
    color: #777;
    text-decoration: underline;
}

.casino-card-footer a:hover {
    color: #333;
}

/* Tablet layout */
@media (max-width: 1024px) {
    .casino-card-main {
        grid-template-columns: 120px minmax(200px, 1.5fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "logo offer"
            "logo icons"
            "logo cta";
        align-items: stretch;
    }

    .casino-card-logo {
        grid-area: logo;
        align-self: stretch;
        height: 100%;
    }
    .casino-card-offer { grid-area: offer; }
    .casino-card-icons { grid-area: icons; grid-template-columns: repeat(4, minmax(40px, 1fr)); }
    .casino-card-cta { grid-area: cta; }

    .casino-card-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile layout */
@media (max-width: 600px) {

    .casino-card-inner {
        padding: 10px 10px 8px;
    }

    .casino-card-main {
        display: block;
    }

    .casino-card-logo {
        margin-bottom: 8px;
        background: #000;
        padding: 16px 0;
    }

    .casino-card-title {
        text-align: center;
    }

    .casino-card-offer {
        text-align: center;
        margin-bottom: 8px;
    }

    .casino-card-wagering {
        text-align: center;
    }

    .casino-card-icons {
        margin: 8px 0;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .casino-card-cta {
        margin-top: 8px;
    }

    .casino-card-features {
        margin-top: 12px;
        grid-template-columns: 1fr;
    }

    .casino-card-methods {
        margin-top: 8px;
    }
}

.casino-card-rating-label {
    font-size: 16px;
    margin-right: 4px;
    color: #333;
    font-weight: 600;
}

/* Center rating under title on mobile */
@media (max-width: 600px) {
    .casino-card-rating {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}
