/*
 * Zulnero Final CSS
 * Version: 5.1 (Corrected)
 */

/* --- Root Variables --- */
:root {
    --primary-color: #8A2BE2; /* Electric Amethyst */
    --secondary-color: #00E5FF; /* Cyber Teal */
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-light: #E0E0E0;
    --text-dark: #333333;
    --text-muted: #888888;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* --- CSS Reset & Base Styles --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--dark-bg); color: var(--text-light); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* --- Noscript Fallback Content --- */
.no-script-content { display: none; padding: 4rem 2rem; text-align: center; background: var(--dark-bg); }
noscript .no-script-content { display: block; }
.no-script-content h1 { color: var(--primary-color); font-family: var(--font-heading); margin-bottom: 1rem; }
.no-script-content p { margin-bottom: 2rem; }
.no-script-content a { color: var(--secondary-color); text-decoration: none; margin: 0 1rem; }

/* --- Loading Overlay --- */
#loader-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--dark-bg); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-spinner { width: 60px; height: 60px; border: 5px solid var(--card-bg); border-top: 5px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loader-overlay.hidden { animation: fadeOut 0.5s forwards; }
@keyframes fadeOut { 100% { opacity: 0; visibility: hidden; } }

/* --- Simplified Main Header --- */
.main-header { position: sticky; top: 0; width: 100%; z-index: 1000; background-color: rgba(18, 18, 18, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1rem 2rem; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.logo a { font-family: var(--font-heading); font-size: 1.8rem; color: white; text-decoration: none; font-weight: 900; }
.logo a span { color: var(--primary-color); }

/* --- Utility & Page Structure --- */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.page-header { padding: 4rem 2rem; background-color: var(--card-bg); text-align: center; }
.page-title { font-family: var(--font-heading); font-size: 3.5rem; color: white; margin-bottom: 0.5rem; }
.page-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; margin-bottom: 1rem; color: white; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem auto; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 0.8rem 1.8rem; border-radius: var(--border-radius); text-decoration: none; font-weight: 700; transition: all var(--transition-speed) ease; cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5); }
.btn-secondary { background-color: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--dark-bg); box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3); }

/* --- Homepage Offer Section --- */
.offer-section { background-color: var(--card-bg); padding: 3rem 1rem; }
.offer-header { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; }
.offer-header h1 { font-family: var(--font-heading); font-size: 3rem; color: white; margin-bottom: 1rem; }
.offer-header h1 span { color: var(--primary-color); }
.offer-header p { font-size: 1.1rem; color: var(--text-muted); }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; margin-top: 2rem; color: var(--text-muted); }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.trust-badge i { color: var(--secondary-color); }
.update-notice { text-align: center; margin: 3rem auto; color: var(--text-muted); }
.update-notice span { background-color: var(--dark-bg); padding: 0.5rem 1rem; border-radius: var(--border-radius); font-weight: 500; }
.offer-box { background: var(--dark-bg); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: grid; align-items: center; padding: 1.5rem; gap: 1.5rem; position: relative; }
.offer-tag { position: absolute; top: -15px; left: 20px; background: #ffd700; color: var(--text-dark); font-weight: 700; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 5px; transform: rotate(-2deg); }
.offer-casino { text-align: center; }
.offer-casino img { max-height: 50px; width: auto; margin: 0 auto; }
.offer-details, .offer-rating, .offer-cta { text-align: center; padding: 1rem 0; }
.offer-details .bonus-main { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); line-height: 1.2; }
.offer-details .bonus-secondary { font-size: 1rem; color: var(--text-light); margin-top: 0.5rem; }
.offer-rating .stars { font-size: 1.2rem; color: #ffd700; margin-bottom: 0.25rem; }
.offer-rating .score { font-size: 2rem; font-weight: 700; color: white; }
.offer-rating .votes { font-size: 0.9rem; color: var(--text-muted); }
.offer-cta .btn { width: 100%; max-width: 250px; padding: 1rem; font-size: 1.1rem; }
.offer-cta .terms-link { display: block; margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; text-decoration: underline; }
.offer-cta .payment-icons { margin-top: 1rem; font-size: 1.8rem; display: flex; justify-content: center; gap: 0.75rem; color: #a0a0a0; }

/* --- Advantages Section --- */
.advantages-section { background-color: var(--dark-bg); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.advantage-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; margin-bottom: 3rem; }
.advantage-item:last-child { margin-bottom: 0; }
.advantage-icon { flex-shrink: 0; font-size: 4rem; color: var(--secondary-color); width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--secondary-color); border-radius: 50%; }
.advantage-text h3 { font-family: var(--font-heading); color: white; font-size: 1.8rem; margin-bottom: 0.5rem; }
.advantage-text p { color: var(--text-muted); line-height: 1.7; }

/* --- FAQ Accordion --- */
.faq-section { max-width: 900px; margin: 4rem auto 0 auto; }
.accordion-item { background-color: var(--card-bg); border-radius: var(--border-radius); margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; cursor: pointer; width: 100%; background: none; border: none; text-align: left; }
.accordion-header h4 { font-family: var(--font-body); font-weight: 500; font-size: 1.2rem; color: white; }
.accordion-icon { font-size: 1.2rem; color: var(--primary-color); transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content-inner { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-muted); line-height: 1.7; }
.accordion-content-inner p { margin: 0; }

/* --- Contact Page Centered Layout --- */
.contact-container { max-width: 800px; margin: 0 auto; }
.contact-form-wrapper, .contact-info-wrapper { background-color: var(--card-bg); padding: 2rem 3rem; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); }
.contact-info-wrapper { margin-top: 3rem; }
.contact-form-wrapper h3, .contact-info-wrapper h3 { font-family: var(--font-heading); font-size: 2.2rem; text-align: center; color: var(--primary-color); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 1.1rem; color: var(--text-light); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; background-color: var(--dark-bg); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--border-radius); color: var(--text-light); font-family: var(--font-body); font-size: 1.1rem; transition: border-color var(--transition-speed), box-shadow var(--transition-speed); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3); }
.form-group textarea { min-height: 150px; resize: vertical; }
.contact-form-wrapper .btn { width: 100%; padding: 1rem; font-size: 1.2rem; }
.contact-info-wrapper .contact-info-item { display: flex; align-items: center; text-align: center; gap: 0.5rem; flex-direction: column; margin-bottom: 2rem; }
.contact-info-wrapper .contact-info-item .icon { margin: 0 auto; font-size: 2rem; color: var(--secondary-color); }
.contact-info-wrapper .contact-info-item p { margin: 0; }
.contact-info-wrapper .contact-info-item p strong { color: white; display: block; margin-bottom: 0.2rem; }

/* --- Responsible Gaming Resource List --- */
.resource-list > div { padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.resource-list > div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.resource-list a { text-decoration: none; }
.resource-list strong { font-size: 1.3rem; font-weight: 500; color: var(--secondary-color); text-decoration: none; display: inline-block; margin-bottom: 0.5rem; transition: color var(--transition-speed) ease; }
.resource-list a:hover strong { color: var(--primary-color); }
.resource-list p { color: var(--text-muted); margin: 0; padding-left: 1rem; }

/* --- Footer --- */
.site-footer { background-color: var(--card-bg); color: var(--text-muted); padding: 4rem 2rem 2rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-responsible-gaming { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-responsible-gaming h3 { font-family: var(--font-heading); font-size: 1.8rem; color: white; margin-bottom: 1.5rem; }
.footer-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-logos img, .footer-logos span { height: 40px; opacity: 0.7; filter: grayscale(80%); }
.footer-logos .eighteen-plus { font-size: 2rem; font-weight: 700; border: 3px solid #999; color: #999; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-column h4 { font-family: var(--font-heading); font-size: 1.5rem; color: white; margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column ul li a { color: var(--text-muted); text-decoration: none; margin-bottom: 0.5rem; display: inline-block; transition: color var(--transition-speed); }
.footer-column ul li a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { font-size: 0.9rem; }

/* --- Legal Page Content --- */
.legal-content { background-color: var(--card-bg); padding: 2rem 3rem; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); }
.legal-content h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--primary-color); margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.legal-content h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--secondary-color); margin-top: 2rem; margin-bottom: 1rem; }
.legal-content p, .legal-content li { margin-bottom: 1rem; line-height: 1.7; color: var(--text-light); }
.legal-content ul, .legal-content ol { padding-left: 2rem; }
.legal-content a {
    color: inherit; /* Inherit the color from the parent (e.g., white for paragraphs) */
    text-decoration: none;
    border-bottom: none;
}

/* This NEW class is for links that you WANT to have the special style */
.legal-content a.link-styled {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 1px;
    transition: all var(--transition-speed) ease;
}

.legal-content a.link-styled:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.cookie-table { width: 100%; min-width: 600px; margin-top: 2rem; border-collapse: collapse; text-align: left; }
.cookie-table th, .cookie-table td { padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cookie-table th { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: white; }
.cookie-table td { font-size: 1rem; color: var(--text-light); vertical-align: top; }

/* --- Other Components --- */
#cookie-consent-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: var(--card-bg); padding: 1.5rem; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); z-index: 2000; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; transition: bottom 0.5s ease-in-out; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#cookie-consent-banner.show { bottom: 0; }
#cookie-consent-banner p { margin: 0; flex-grow: 1; text-align: center; }
#cookie-consent-banner p a { color: var(--secondary-color); text-decoration: underline; }
#scroll-to-top-btn { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background-color: var(--primary-color); color: white; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 999; }
#scroll-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-to-top-btn:hover { background-color: #701ebd; }

/* --- Responsive Design --- */
@media (min-width: 1024px) {
    .offer-box { grid-template-columns: auto 1fr 1fr 1fr; padding: 2rem; }
    .offer-details, .offer-rating, .offer-cta { border-left: 1px solid rgba(255, 255, 255, 0.1); padding: 0 1.5rem; }
}
@media (min-width: 768px) {
    .advantage-item { flex-direction: row; text-align: left; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .page-title { font-size: 2.8rem; }
    .section-title { font-size: 2.5rem; }
    .container { padding: 3rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    #cookie-consent-banner { flex-direction: column; }
}


.footer-responsible-gaming h3, .footer-responsible-gaming h3 a {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
}


/* 1. Set the offer box as the positioning boundary */
.offer-box {
    position: relative;
}

/* 2. Create an invisible, clickable overlay on the main button */


/* 3. Make sure the T&Cs link stays clickable on top of the overlay */
.offer-cta .terms-link {
    position: relative; /* Allows z-index to work */
    z-index: 2; /* Place T&Cs link above the overlay */
}


#terms-link {
    color: #fff;
    display: block;
    text-align: right;
    margin-right: 150px;
}


@media (max-width: 1004px) {
#terms-link {
	margin-right: 0px;
text-align: center;
}
}