:root {
    --primary: #2563eb;
    --secondary: #475569;
    --background: #f8fafc;
    --text: #1e293b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-links {
    display: none;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.casino-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.casino-card:hover {
    transform: translateY(-4px);
}

.casino-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.region-note {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.casino-info {
    padding: 1.5rem;
}

.bonus-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.ref-code {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 4px;
}

.ref-code code {
    font-family: monospace;
    color: var(--primary);
    font-weight: bold;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.secondary {
    background: var(--secondary);
    color: white;
}

.toggle-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 4rem;
}

/* Add these new styles for the modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90%;
    width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal h2 {
    margin-bottom: 1rem;
}

.modal-content {
    margin-bottom: 1rem;
}

.modal .bonus-features {
    list-style: none;
    margin: 1rem 0;
}

.modal .bonus-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.modal .bonus-features li:last-child {
    border-bottom: none;
}

/* Add these new styles */
.disclaimer {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #991b1b;
}

.location-banner {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.no-casinos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-casinos p {
    color: var(--secondary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    nav { padding: 0.75rem 1rem; }
    .logo img { height: 32px; }
    .nav-links {
        gap: 1rem;
    }
    
    .casino-info {
        padding: 1rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
}