/* =============================================================
   Sweet Bonanza 2500 — main.css (Light Candy theme)
   Reset, design tokens, base typography, utilities, container,
   section base, tables, service pages.
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS — Light Candy
   ------------------------------------------------------------- */
:root {
    /* Base surfaces */
    --color-bg: #FFF9FC;
    --color-bg-secondary: #FFF2F8;
    --color-surface: #FFFFFF;
    --color-surface-hover: #FFF0F6;
    --color-surface-elevated: #FFFFFF;

    /* Primary — berry pink */
    --color-primary: #FF5B9F;
    --color-primary-hover: #FF3D8C;
    --color-primary-light: #FFE5F0;
    --color-primary-dark: #E04389;

    /* Accent — candy yellow */
    --color-accent: #FFD93D;
    --color-accent-dark: #FFB800;
    --color-accent-light: #FFF3D9;

    /* Secondary — lavender */
    --color-secondary: #B794F4;
    --color-secondary-light: #F3E8FF;
    --color-secondary-dark: #9B6EE8;

    /* Mint — for positive highlights */
    --color-mint: #7FE3C0;
    --color-mint-light: #E6F9F2;

    /* Text — deep plum instead of black */
    --color-text: #2D1B3D;
    --color-text-muted: #8B7AA1;
    --color-text-bright: #1A0E2B;
    --color-text-on-primary: #FFFFFF;
    --color-text-on-accent: #2D1B3D;

    /* Borders + shadows — soft pink-tinted */
    --color-border: rgba(255, 91, 159, 0.12);
    --color-border-strong: rgba(255, 91, 159, 0.25);
    --color-shadow: rgba(255, 91, 159, 0.08);

    /* Gradients — candy swirl */
    --gradient-hero: linear-gradient(135deg, #FFE5F0 0%, #FFF3D9 50%, #F3E8FF 100%);
    --gradient-cta: linear-gradient(135deg, #FF5B9F 0%, #FF8BBC 100%);
    --gradient-cta-hover: linear-gradient(135deg, #E04389 0%, #FF5B9F 100%);
    --gradient-bonus: linear-gradient(135deg, #FFD93D 0%, #FF8BBC 100%);
    --gradient-accent: linear-gradient(135deg, #FFD93D 0%, #FFB800 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #FFF9FC 100%);
    --gradient-footer: linear-gradient(180deg, #2D1B3D 0%, #1A0E2B 100%);

    /* Layout dimensions */
    --header-height: 64px;
    --sticky-nav-height: 56px;
    --container-max: 1240px;
    --container-padding: clamp(16px, 3vw, 32px);

    /* Radii — soft, rounded */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Typography */
    --font-body: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index scale */
    --z-header: 100;
    --z-sticky-nav: 99;
    --z-dropdown: 1000;
    --z-lightbox: 2000;

    /* Shadows — soft pink tints */
    --shadow-sm: 0 2px 8px rgba(255, 91, 159, 0.08);
    --shadow-md: 0 8px 24px rgba(255, 91, 159, 0.12);
    --shadow-lg: 0 16px 48px rgba(255, 91, 159, 0.16);
    --shadow-xl: 0 24px 64px rgba(255, 91, 159, 0.2);
    --shadow-glow-primary: 0 0 32px rgba(255, 91, 159, 0.35);
    --shadow-glow-accent: 0 0 32px rgba(255, 217, 61, 0.4);

    /* -------------------------------------------------------------
       Legacy aliases — preserve compatibility with components.css
       (mental3 theme variables mapped to light candy equivalents).
       ------------------------------------------------------------- */
    --gradient-fire: var(--gradient-cta);
    --gradient-fire-hover: var(--gradient-cta-hover);
    --gradient-blood: linear-gradient(135deg, #B794F4 0%, #9B6EE8 100%);
    --color-fire: var(--color-primary);
    --color-fire-bright: var(--color-primary-hover);
    --color-gold: var(--color-accent);
    --color-surface-light: var(--color-bg-secondary);
    --color-glow-fire: rgba(255, 91, 159, 0.35);
    --color-glow-red: rgba(255, 91, 159, 0.30);
    --shadow-glow-fire: var(--shadow-glow-primary);
    --shadow-glow-red: var(--shadow-glow-primary);
}

/* -------------------------------------------------------------
   2. RESET & NORMALIZE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--sticky-nav-height) + 1rem);
}

body {
    min-height: 100vh;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% 0%, rgba(255, 91, 159, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 40%, rgba(183, 148, 244, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 50% 90%, rgba(255, 217, 61, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    -webkit-appearance: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-hover);
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background-color: var(--color-primary-light);
    color: var(--color-text-bright);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY — full-width, no max-width on text
   ------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-bright);
    letter-spacing: -0.01em;
    width: 100%;
    max-width: none;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 700;
}

h4 {
    font-size: 1.125rem;
    font-weight: 700;
}

p {
    color: var(--color-text);
    line-height: 1.7;
    width: 100%;
    max-width: none;
}

p + p {
    margin-top: 1rem;
}

strong,
b {
    color: var(--color-text-bright);
    font-weight: 700;
}

em,
i {
    font-style: italic;
    color: var(--color-primary);
}

small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: 0.95em;
}

code {
    padding: 0.15em 0.4em;
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    color: var(--color-text-bright);
    font-weight: 700;
}

/* -------------------------------------------------------------
   4. CONTAINER
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

/* -------------------------------------------------------------
   5. SECTION BASE
   ------------------------------------------------------------- */
main {
    display: block;
    padding-top: var(--header-height);
}

section {
    padding: 4.5rem 0;
    position: relative;
}

section + section {
    border-top: 1px solid var(--color-border);
}

/* Alternating section backgrounds for visual rhythm */
section:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

/* -------------------------------------------------------------
   6. TABLES (shared base)
   ------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--gradient-accent);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--color-text-on-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--color-accent-dark);
}

td {
    padding: 0.85rem 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color var(--transition-base);
}

tbody tr:hover {
    background-color: var(--color-primary-light);
}

tbody tr:nth-child(odd) {
    background-color: rgba(255, 91, 159, 0.03);
}

/* -------------------------------------------------------------
   7. UTILITIES
   ------------------------------------------------------------- */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-bright { color: var(--color-text-bright); }
.text-accent { color: var(--color-primary); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }

.badge {
    display: inline-block;
    padding: 0.3em 0.75em;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-pill);
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
    line-height: 1.2;
}

.badge--new {
    background: var(--gradient-accent);
    color: var(--color-text-on-accent);
}

.badge--hot {
    background: var(--gradient-cta);
    color: var(--color-text-on-primary);
    box-shadow: var(--shadow-glow-primary);
}

/* -------------------------------------------------------------
   8. ANIMATIONS
   ------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 159, 0.5); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 91, 159, 0.35); }
}

@keyframes pulseAccent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.5); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 217, 61, 0.4); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50%      { transform: scale(1.15) rotate(180deg); opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------
   9. SERVICE PAGES (privacy, cookies, sitemap, responsible-gambling)
   NO max-width on text — follows full-width rule.
   ------------------------------------------------------------- */
.service-page {
    padding: calc(var(--header-height) + 2.5rem) 0 4rem;
    min-height: 100vh;
}

.service-page h1 {
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

.service-page__content {
    margin-top: 2rem;
    color: var(--color-text);
}

.service-page__content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--color-primary);
}

.service-page__content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--color-secondary-dark);
}

.service-page__content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.service-page__content ul,
.service-page__content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.service-page__content ul {
    list-style: disc;
}

.service-page__content ol {
    list-style: decimal;
}

.service-page__content li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.service-page__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 91, 159, 0.4);
    text-underline-offset: 3px;
}

.service-page__content a:hover {
    color: var(--color-primary-hover);
    text-decoration-color: var(--color-primary);
}

.service-page__updated {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background-color: var(--color-accent-light);
    border-left: 3px solid var(--color-accent-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Sitemap list */
.sitemap__list {
    list-style: none !important;
    margin: 1rem 0 2rem !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.sitemap__list li {
    margin: 0;
    padding: 0;
}

.sitemap__list a {
    display: block;
    padding: 0.85rem 1.1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.sitemap__list a:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}
