@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

:root {
    --primary-color: #0ff; /* Neon Cyan */
    --secondary-color: #f0f; /* Neon Magenta */
    --accent-color: #ff0; /* Neon Yellow */
    --background-color: #000000;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --border-glow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    --button-glow: 0 0 8px var(--secondary-color), 0 0 16px var(--secondary-color);
}

/* --- General Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary-color);
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 20px;
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: var(--button-glow);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: var(--button-glow); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px var(--secondary-color), 0 0 24px var(--secondary-color); }
    100% { transform: scale(1); box-shadow: var(--button-glow); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


.animated {
    animation: slideInRight 1s forwards; /* keep your slide animation */
    width: 100%;          /* full container width */
    max-width: 1000px;    /* optional max width */
    margin: 0 auto;       /* center horizontally */
    display: block;
    overflow: visible;    /* important if we scale content */
    padding: 0;       /* remove top/bottom padding */
    margin: 0 auto;   /* center horizontally, no vertical margin */
}

.animated iframe {
    width: 100%;       /* fill the container */
    height: 600px;     /* increase height as needed */
    display: block;
    border: none;
    transform: scale(1.1);            /* make it slightly bigger */
    transform-origin: center center;  /* scale from the center */
    transition: transform 0.3s ease;  /* optional hover effect */

}

/* Optional: scale bigger on hover */
.animated iframe:hover {
    transform: scale(1.15);
}


.start-animation {
    opacity: 1;
}

/* --- Header & Hero --- */
.header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('/src/imgs/carbon-fibre.png');
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--border-glow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--secondary-color);
}
.logo .comet {
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    font-size: 0.9em;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
}

.nav-links li.responsible {
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.logo a {
    color: inherit;
    text-shadow: inherit;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle, rgba(17,0,34,0.5) 0%, rgba(0,0,0,1) 70%);
}

.hero h1 {
    animation: fadeIn 1s ease-out;
    color: #fff;
}

.hero h1 span {
    display: inline-block;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 40px;
    animation: fadeIn 1s ease-out 0.3s;
}

/* --- Casino Grid Horizontal Layout --- */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-items: stretch; /* make all cards same width */
    align-items: start;
    margin: 0 auto;
    max-width: 1200px; /* container width */
}

/* Ensure all casino cards stretch equally */
.casino-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: rgba(44,44,44,0.8); /* semi-transparent */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Optional hover effect */
.casino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.casino-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(15, 255, 255, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: 0; /* push behind content */
    pointer-events: none; /* so it won't block hover/clicks */
}

.casino-card .content {
    position: relative;
    z-index: 1; /* ensure content sits above spinning effect */
}


.casino-card .content {
    position: relative;
    z-index: 1;
    background: var(--card-bg); /* keep solid background */
    border-radius: 10px;
    padding: 20px;
    margin: -5px;
    overflow: hidden;
}

.casino-card .content:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(15, 255, 255, 0.2), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}


.casino-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--border-glow);
}

.casino-card .casino-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.bonus-highlight {
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 18px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    color: #000;
text-align: center;   /* centers the text inside */
    line-height: 1.6;     /* makes multi-line spacing look nicer */
}

.reviews {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 15px 0;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating .stars {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.rating .score {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.btn-bonus {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--button-glow);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    align-items: center;
}

.btn-bonus {
    display: block;        /* makes it take up full line */
    margin: 0 3rem;        /* auto left/right margin centers it */
    text-align: center;    /* ensure text is centered inside */
}

@media (max-width: 600px) {
    .btn-bonus {
        font-size: 0.8rem;   /* smaller text */
        padding: 12px 20px;  /* smaller button */
    }
}

.btn-bonus:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 8px var(--primary-color), 0 0 16px var(--primary-color);
}

.terms {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 20px;
}

/* --- Content Sections --- */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.content-section .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-section img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(15, 255, 255, 0.3);
}

.icon-list {
    list-style: none;
    padding: 0;
}
.icon-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}
.icon-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
    text-shadow: 0 0 5px var(--primary-color);
}

/* --- Game Categories --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.game-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}
.game-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    background-color: #0a0a0a;
    color: #aaa;
    padding: 50px 0 20px;
    text-align: center;
}
.footer .support-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer a {
    color: #ccc;
}
.footer a:hover {
    color: var(--primary-color);
}
.footer p {
    font-size: 0.8rem;
    max-width: 800px;
    margin: 10px auto;
}

/* --- Style for Static Content Pages (Terms, Privacy, etc.) --- */
.content-page {
    background-color: var(--card-bg);
    border-radius: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--primary-color);
    box-shadow: var(--border-glow);
    padding: 40px;
}

.content-page h1, .content-page h2 {
    color: var(--secondary-color);
    text-align: left;
    text-shadow: 0 0 5px var(--secondary-color);
}

.content-page h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
}

.content-page h2 {
    margin-top: 30px;
    font-size: 1.8rem;
}

.content-page p, .content-page li {
    color: var(--text-color);
    line-height: 1.8;
}

.content-page ul {
    list-style-position: inside;
    padding-left: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .content-section .grid-2 {
        grid-template-columns: 1fr;
    }
    .navbar { flex-direction: column; gap: 10px; }
    .hero { padding: 60px 20px; }
    .content-page { padding: 20px; }
}

/* --- Trusted & Regulated Section --- */
.trusted-regulated {
    padding: 80px 20px;
    text-align: center;
    background: #1a1a1a; /* dark background */
}

.trusted-regulated h2 {
    font-size: 2.8em;
    color: #ffd700;
    margin-bottom: 50px;
}

.regulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.reg-logo {
    background: rgba(255, 255, 255, 0.05); /* slightly visible background for black logos */
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reg-logo img {
    max-height: 60px;
    max-width: 150px;
    filter: brightness(0) invert(1); /* makes black logos visible on dark bg */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.reg-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); /* gold glow on hover */
}

.reg-logo:hover img {
    filter: brightness(1) invert(0.9); /* slightly brighten on hover */
}
/* --- Casino Card Logo Placeholder --- */
.casino-logo-placeholder {
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-logo-placeholder img {
    max-height: 80%;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px #fff); /* makes dark logos visible */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.casino-logo-placeholder img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #ffd700); /* subtle gold glow on hover */
}
