/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-popup-content {
    background: linear-gradient(145deg, #1e3a8a, #1e40af);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-icon {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.age-popup h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.age-popup p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 16px;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #475569;
}

.btn-secondary:hover {
    background: #475569;
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.9) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 30px;
}

.logo {
    max-width: 250px;
    height: auto;
    padding-bottom: 30px;
    margin: 0 auto ;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #ffca2d;
    -webkit-text-fill-color: #ffca2d;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-description {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.hero-description p {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #10b981;
    font-weight: 500;
}

.feature svg {
    width: 24px;
    height: 24px;
    color: #10b981;
}

.disclaimer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.9rem;
}

.disclaimer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: #3b82f6;
}

.separator {
    color: #475569;
}

/* Betting Sites Section */
.betting-sites {
    padding: 60px 0;
    flex: 1;
}

.site-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.site-card.featured {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid #ffca2d;
}

.ribbon {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(45deg, #ffca2d, #ffb347);
    color: #1a1a2e;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 202, 45, 0.3);
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.site-logo img {
    max-width: 120px;
    height: auto;
}

.offer-details {
    text-align: center;
}

.welcome-bonus {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.offer-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.rating {
    text-align: center;
}

.score {
    margin-bottom: 10px;
}

.score-label {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.stars {
    margin-bottom: 5px;
}

.star {
    color: #ffca2d;
    font-size: 1.2rem;
}

.rate-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-signup {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-visit {
    color: #60a5fa;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-visit:hover {
    color: #3b82f6;
}

.terms {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000000;
    padding: 40px 0 20px;
    margin-top: 0;
    padding-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #60a5fa;
}

.footer-help h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.help-links a:hover {
    color: #60a5fa;
}

.footer-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.age-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.help-icon img {
    max-width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.help-icon:hover img {
    opacity: 1;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1e3a8a, #1e40af);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #cbd5e1;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .card-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .disclaimer {
        flex-direction: column;
        gap: 10px;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .site-card {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.site-card {
    animation: fadeIn 0.8s ease-out;
}

/* Hide age popup when verified */
.age-popup.hidden {
    display: none;
}

/* Help Badge Styles */
.help-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.help-badge.gambleaware {
    background-color: #ff6600;
    color: #ffffff;
    border: 2px solid #ff6600;
}

.help-badge.gambleaware:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.help-badge.ncpg {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.help-badge.ncpg:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.help-icon {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
}

.footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Fix for policy pages spacing */
.policy-content, .about-content, .cookie-content, .safer-content {
    padding-bottom: 40px;
    margin-bottom: 0;
}

.footer {
    margin-top: auto;
}

/* Back link improvements */
.back-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(45deg, #2563eb, #1e40af);
}

.back-link::before {
    content: "←";
    margin-right: 8px;
    font-size: 18px;
    font-weight: bold;
}
