:root {
    --primary-color: #0d6efd;
    --secondary-color: #6610f2;
    --accent-color: #00ff88;
    /* Neon Green */
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --text-muted: #cbd5e1;
    /* Slate 300 - Lighter for better contrast */
}

body {
    /* PERFORMANCE OPTIMIZATION: Switched to Hardware Accelerated Animation */
    /* OLD ANIMATION (Commented out for backup)
    background: linear-gradient(-45deg, #240046, #720026, #3c096c, #9d0208);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    */
    background-color: #240046;
    /* Fallback solid color */
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    /* Space for fixed navbar */
}

main {
    flex: 1;
}

/* Blockchain Grid Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/casino-rich-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above the grid */
.hero-section,
main,
footer {
    position: relative;
    z-index: 1;
}

.casino-table-bg {
    background-color: rgba(15, 23, 42, 0.9);
    /* Semi-transparent dark slate */
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* NEW HARDWARE ACCELERATED BACKGROUND */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(-45deg, #240046, #720026, #3c096c, #9d0208);
    background-size: 100% 100%;
    /* No need for 400% since element is huge */
    z-index: -2;
    /* Behind everything */
    /* animation: gradientMove 30s ease infinite; */
    /* Slower, smoother */
    transform: translate3d(0, 0, 0);
    /* Force GPU */
    will-change: transform;
    pointer-events: none;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-25%, -25%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* OLD KEYFRAMES (Commented out)
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
*/

/* ... (rest of file) ... */

.text-high-contrast {
    color: #f8fafc !important;
    /* Slate 50 */
}

.table-header-text {
    color: #e2e8f0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.votes-text {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-text {
    color: #94a3b8;
}

.footer-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #fff;
}

.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.3rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Creating a cool glow effect on hover without the default boxy look */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Menu Polish */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        margin: 0;
        padding: 1rem !important;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-header-container {
    background: linear-gradient(135deg, #9d0208, #720026);
    /* Red Gradient */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.casino-card {
    background-color: #1e293b;
    /* Slate 800 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}



.rating-stars {
    color: #fbbf24;
    /* Amber 400 */
}

.btn-play {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.btn-play:hover {
    background-color: #00cc6a;
    color: #000;
    transform: scale(1.05);
}

.btn-review {
    background-color: #dc3545;
    /* Red */
    color: white !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    opacity: 1 !important;
}

.btn-review:hover {
    background-color: #bb2d3b;
    color: white !important;
}

.rank-badge {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    /* Gold */
    color: #000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.5rem;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
    /* Prevent squashing */
    min-width: 50px;
    /* Ensure circular shape */
}



/* Mobile: Make logo fill width */
@media (max-width: 767px) {
    .casino-logo-wrapper {
        width: 100%;
        height: 80px;
        padding: 12px;
    }
}

.casino-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    /* Donut chart background will be set inline */
}

/* Inner circle for donut effect */
.score-circle::before {
    content: "";
    position: absolute;
    inset: 4px;
    /* Thickness of the ring */
    border-radius: 50%;
    background-color: #1e293b;
    /* Match card background */
    z-index: 1;
}

/* Score text needs to be on top */
.score-circle span {
    position: relative;
    z-index: 2;
}

.terms-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hover-underline:hover {
    text-decoration: underline !important;
    color: var(--accent-color) !important;
}

/* Review Content Specific Styling */
.review-content h2 {
    font-size: 1.75rem;
    /* Slightly smaller than default */
    font-weight: 800;
    /* Bolder */
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.review-content p {
    font-weight: 200;
    /* Extra Light weight for body text */
    color: #e2e8f0;
    /* Ensure good contrast */
}

/* Breadcrumb Styling */
.breadcrumb-item+.breadcrumb-item::before {
    font-family: "Font Awesome 6 Free";
    content: "\f054";
    /* fa-chevron-right */
    font-weight: 900;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    vertical-align: middle;
    margin-top: 2px;
}

/* Featured Image 3D Tilt Effect */
.featured-image-3d:hover {
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) !important;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.4), -40px 40px 80px rgba(0, 0, 0, 0.2) !important;
}


/* Casino Logo Overlay Styles */
.casino-logo-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}


.casino-logo-wrapper {
    display: block;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 8px;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.casino-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Ensures image is centered */
    border-radius: 8px;
}

.casino-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    /* Changed from 100% to 60% */
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(100% 0 0 0);
    /* Hides the overlay by clipping from bottom */
    transition: clip-path 0.3s ease;
    /* Slide animation */
    -webkit-border-top-left-radius: 6px;
    -webkit-border-top-right-radius: 6px;
    -moz-border-radius-topleft: 6px;
    -moz-border-radius-topright: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding: 10px;
}

.casino-name-overlay span {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    /* Text starts invisible */
    transition: opacity 0.3s ease 0.3s;
    /* Fade in after 0.3s delay (after slide completes) */
}

.casino-logo-container:hover .casino-name-overlay {
    clip-path: inset(0 0 0 0);
    /* Reveals the full overlay by sliding up */
}

.casino-logo-container:hover .casino-name-overlay span {
    opacity: 1;
    /* Text fades in after overlay finishes sliding */
}

.casino-logo-container:hover .casino-logo-wrapper {
    transform: scale(1.02);
}