/* =================================
   SPORTBET-REAL.COM - LOTTERY SITE
   Theme: Canadian Lottery & Trust
   Architecture: BEM Methodology
   ================================= */

/* =================================
   CSS VARIABLES - CANADIAN LOTTERY
   ================================= */
:root {
    /* Primary Colors - Canadian Theme */
    --sbr-primary-red: #DC143C;
    --sbr-primary-white: #FFFFFF;
    --sbr-accent-blue: #0066CC;
    --sbr-accent-gold: #FFD700;
    --sbr-accent-green: #00AA44;
    
    /* Neutral Colors */
    --sbr-dark-bg: #0A1628;
    --sbr-light-bg: #1A2742;
    --sbr-card-bg: #253550;
    --sbr-text-primary: #FFFFFF;
    --sbr-text-secondary: #B8C5D9;
    --sbr-border-color: #2A3B5A;
    
    /* Effects */
    --sbr-glow-red: rgba(220, 20, 60, 0.5);
    --sbr-glow-blue: rgba(0, 102, 204, 0.5);
    --sbr-shadow-primary: 0 4px 20px rgba(220, 20, 60, 0.4);
    --sbr-shadow-secondary: 0 8px 30px rgba(0, 102, 204, 0.4);
    
    /* Spacing */
    --sbr-spacing-xs: 0.5rem;
    --sbr-spacing-sm: 1rem;
    --sbr-spacing-md: 1.5rem;
    --sbr-spacing-lg: 2rem;
    --sbr-spacing-xl: 3rem;
    --sbr-spacing-xxl: 4rem;
    
    /* Typography */
    --sbr-font-primary: 'Georgia', 'Times New Roman', serif;
    --sbr-font-secondary: 'Arial', 'Helvetica', sans-serif;
    
    /* Border Radius */
    --sbr-radius-sm: 4px;
    --sbr-radius-md: 8px;
    --sbr-radius-lg: 12px;
    --sbr-radius-xl: 16px;
    
    /* Transitions */
    --sbr-transition-fast: 0.2s ease;
    --sbr-transition-normal: 0.3s ease;
    --sbr-transition-slow: 0.5s ease;
}

/* =================================
   RESET & BASE STYLES
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sbr-font-secondary);
    color: var(--sbr-text-primary);
    background: var(--sbr-dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--sbr-transition-normal);
}

ul {
    list-style: none;
}

/* =================================
   ANIMATED BACKGROUND
   ================================= */
.sbr-animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1628 0%, #1A2742 50%, #0A1628 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.sbr-animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
}

.sbr-animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    animation: scanLines 10s linear infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scanLines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

/* =================================
   UTILITY CLASSES
   ================================= */
.sbr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sbr-spacing-md);
}

.sbr-section {
    padding: var(--sbr-spacing-xxl) 0;
    position: relative;
    z-index: 1;
}

.sbr-heading {
    font-family: var(--sbr-font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--sbr-spacing-lg);
    color: var(--sbr-text-primary);
    font-weight: bold;
    animation: fadeInUp 0.8s ease-out;
}

.sbr-heading--centered {
    text-align: center;
}

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

/* =================================
   HEADER & NAVIGATION
   ================================= */
.sbr-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sbr-border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sbr-nav {
    padding: var(--sbr-spacing-sm) 0;
}

.sbr-nav__container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sbr-spacing-md);
}

.sbr-logo {
    display: flex;
    align-items: center;
    gap: var(--sbr-spacing-sm);
    font-size: 1.3rem;
    flex-shrink: 0;
    font-weight: bold;
    color: var(--sbr-primary-white);
    transition: var(--sbr-transition-normal);
}

.sbr-logo:hover {
    transform: scale(1.05);
    color: var(--sbr-accent-gold);
}

.sbr-logo__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sbr-primary-red), var(--sbr-accent-blue));
    border-radius: var(--sbr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.sbr-nav__menu {
    display: flex;
    gap: var(--sbr-spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.sbr-nav__item {
    position: relative;
}

.sbr-nav__link {
    color: var(--sbr-text-secondary);
    font-weight: 500;
    padding: var(--sbr-spacing-xs) var(--sbr-spacing-sm);
    display: block;
    position: relative;
    transition: var(--sbr-transition-normal);
    white-space: nowrap;
    font-size: 0.95rem;
}

.sbr-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--sbr-accent-gold);
    transform: translateX(-50%);
    transition: var(--sbr-transition-normal);
}

.sbr-nav__link:hover,
.sbr-nav__link--active {
    color: var(--sbr-primary-white);
}

.sbr-nav__link:hover::after,
.sbr-nav__link--active::after {
    width: 80%;
}

/* =================================
   BURGER MENU
   ================================= */
.sbr-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--sbr-spacing-xs);
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
}

.sbr-burger__line {
    width: 25px;
    height: 3px;
    background: var(--sbr-primary-white);
    border-radius: 2px;
    transition: var(--sbr-transition-normal);
    transform-origin: center;
}

.sbr-burger--active .sbr-burger__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.sbr-burger--active .sbr-burger__line:nth-child(2) {
    opacity: 0;
}

.sbr-burger--active .sbr-burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

@media (max-width: 991px) {
    .sbr-nav__menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--sbr-spacing-xxl) var(--sbr-spacing-md);
        gap: var(--sbr-spacing-lg);
        transition: left var(--sbr-transition-slow);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sbr-nav__menu--active {
        left: 0;
    }

    .sbr-nav__link::after {
        display: none;
    }

    .sbr-nav__link:hover,
    .sbr-nav__link--active {
        color: var(--sbr-accent-gold);
        padding-left: var(--sbr-spacing-md);
    }

    .sbr-burger {
        display: flex;
    }
}

/* =================================
   HERO SECTION
   ================================= */
.sbr-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sbr-spacing-xxl) var(--sbr-spacing-md);
    overflow: hidden;
}

.sbr-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    animation: zoomIn 20s ease-in-out infinite;
}

@keyframes zoomIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.sbr-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.sbr-hero__title {
    font-family: var(--sbr-font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--sbr-spacing-md);
    color: var(--sbr-primary-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.sbr-hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--sbr-text-secondary);
    margin-bottom: var(--sbr-spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* =================================
   BUTTONS
   ================================= */
.sbr-btn {
    display: inline-block;
    padding:10px 10px;
    border: none;
    border-radius: var(--sbr-radius-md);
    font-family: var(--sbr-font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sbr-transition-normal);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sbr-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sbr-btn:hover::before {
    width: 300px;
    height: 300px;
}

.sbr-btn--primary {
    background: linear-gradient(135deg, var(--sbr-primary-red), #B81134);
    color: var(--sbr-primary-white);
    box-shadow: var(--sbr-shadow-primary);
}

.sbr-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--sbr-glow-red);
}

.sbr-btn--secondary {
    background: linear-gradient(135deg, var(--sbr-accent-blue), #0052A3);
    color: var(--sbr-primary-white);
    box-shadow: var(--sbr-shadow-secondary);
}

.sbr-btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--sbr-glow-blue);
}

/* =================================
   CARDS & CONTENT SECTIONS
   ================================= */
.sbr-card {
    background: var(--sbr-card-bg);
    border-radius: var(--sbr-radius-lg);
    padding: var(--sbr-spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--sbr-transition-normal);
    border: 1px solid var(--sbr-border-color);
    animation: fadeInUp 0.8s ease-out;
}

.sbr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    border-color: var(--sbr-primary-red);
}

.sbr-card__title {
    font-family: var(--sbr-font-primary);
    font-size: 1.5rem;
    margin-bottom: var(--sbr-spacing-sm);
    color: var(--sbr-accent-gold);
}

.sbr-card__text {
    color: var(--sbr-text-secondary);
    line-height: 1.8;
}

/* =================================
   TABLES
   ================================= */
.sbr-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sbr-card-bg);
    border-radius: var(--sbr-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.sbr-table thead {
    background: linear-gradient(135deg, var(--sbr-primary-red), #B81134);
}

.sbr-table th {
    padding: var(--sbr-spacing-md);
    text-align: left;
    color: var(--sbr-primary-white);
    font-weight: 600;
}

.sbr-table td {
    padding: var(--sbr-spacing-md);
    border-bottom: 1px solid var(--sbr-border-color);
    color: var(--sbr-text-secondary);
}

.sbr-table tbody tr {
    transition: var(--sbr-transition-normal);
}

.sbr-table tbody tr:hover {
    background: rgba(220, 20, 60, 0.1);
    transform: scale(1.01);
}

.sbr-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive table - vertical layout on mobile */
@media (max-width: 768px) {
    .sbr-table,
    .sbr-table thead,
    .sbr-table tbody,
    .sbr-table th,
    .sbr-table td,
    .sbr-table tr {
        display: block;
    }

    .sbr-table thead {
        display: none;
    }

    .sbr-table tr {
        margin-bottom: var(--sbr-spacing-md);
        border: 1px solid var(--sbr-border-color);
        border-radius: var(--sbr-radius-md);
        padding: var(--sbr-spacing-sm);
        background: var(--sbr-card-bg);
    }

    .sbr-table td {
        padding: var(--sbr-spacing-sm);
        border: none;
        border-bottom: 1px solid var(--sbr-border-color);
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .sbr-table td:last-child {
        border-bottom: none;
    }

    .sbr-table td:before {
        content: attr(data-label);
        position: absolute;
        left: var(--sbr-spacing-sm);
        width: 45%;
        padding-right: var(--sbr-spacing-sm);
        white-space: nowrap;
        font-weight: 600;
        color: var(--sbr-accent-gold);
    }

    .sbr-table tbody tr:hover {
        transform: none;
        background: rgba(220, 20, 60, 0.1);
    }
}

/* =================================
   FOOTER
   ================================= */
.sbr-footer {
    background: rgba(10, 22, 40, 0.95);
    border-top: 1px solid var(--sbr-border-color);
    padding: var(--sbr-spacing-xl) 0;
    margin-top: var(--sbr-spacing-xxl);
}

.sbr-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sbr-spacing-lg);
    margin-bottom: var(--sbr-spacing-lg);
}

.sbr-footer__section h3 {
    color: var(--sbr-accent-gold);
    margin-bottom: var(--sbr-spacing-sm);
    font-size: 1.2rem;
}

.sbr-footer__link {
    color: var(--sbr-text-secondary);
    display: block;
    margin-bottom: var(--sbr-spacing-xs);
    transition: var(--sbr-transition-normal);
}

.sbr-footer__link:hover {
    color: var(--sbr-primary-white);
    padding-left: var(--sbr-spacing-xs);
}

.sbr-footer__bottom {
    text-align: center;
    padding-top: var(--sbr-spacing-lg);
    border-top: 1px solid var(--sbr-border-color);
    color: var(--sbr-text-secondary);
    font-size: 0.9rem;
}

.sbr-footer__info-block {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    color: var(--sbr-text-secondary);
    margin-bottom: var(--sbr-spacing-sm);
}

.sbr-footer__info-block strong {
    font-size: 1rem;
    color: var(--sbr-accent-gold);
}

.sbr-footer__badges {
    display: flex;
    justify-content: center;
    gap: var(--sbr-spacing-md);
    margin-top: var(--sbr-spacing-md);
    flex-wrap: wrap;
}

.sbr-footer__badge {
    padding: var(--sbr-spacing-xs) var(--sbr-spacing-sm);
    background: var(--sbr-card-bg);
    border-radius: var(--sbr-radius-sm);
    font-size: 0.85rem;
    color: var(--sbr-text-secondary);
    border: 1px solid var(--sbr-border-color);
}

/* Trusted responsible gambling logos */
.sbr-footer__trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sbr-spacing-md);
    align-items: center;
    margin-top: var(--sbr-spacing-md);
    margin-bottom: 15px;
}

.sbr-footer__trust-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sbr-footer__trust-item:nth-child(3) {
    padding: 5px 5px;
    background: #7b4fb7;
    border-radius: 20px;
}
.sbr-footer__trust-item img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.sbr-footer__trust-item--gamesense {
    padding: var(--sbr-spacing-xs) var(--sbr-spacing-md);
    border-radius: 999px;
    background: var(--sbr-accent-green);
    color: var(--sbr-primary-white);
    font-weight: 600;
    height: 40px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 170, 68, 0.5);
}

.sbr-footer__trust-item--gamesense:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 170, 68, 0.7);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
    .sbr-container {
        padding: 0 var(--sbr-spacing-sm);
    }

    .sbr-section {
        padding: var(--sbr-spacing-lg) 0;
    }

    .sbr-hero {
        min-height: 500px;
    }

    .sbr-footer__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sbr-hero__title {
        font-size: 2rem;
    }

    .sbr-card {
        padding: var(--sbr-spacing-sm);
    }
}

/* =================================
   ANIMATIONS FOR SCROLL
   ================================= */
.sbr-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.sbr-fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================
   BANNER & DISCLAIMER
   ================================= */
.sbr-banner {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--sbr-primary-red);
    border-radius: var(--sbr-radius-md);
    padding: var(--sbr-spacing-md);
    margin: var(--sbr-spacing-lg) 0;
    text-align: center;
    color: var(--sbr-text-secondary);
    animation: fadeInUp 0.8s ease-out;
}

.sbr-banner__text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =================================
   NUMBER DISPLAYS
   ================================= */
.sbr-numbers {
    display: flex;
    gap: var(--sbr-spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin: var(--sbr-spacing-md) 0;
}

.sbr-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sbr-accent-gold), #FFC700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--sbr-dark-bg);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    animation: numberPop 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes numberPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sbr-number:nth-child(1) { animation-delay: 0.1s; }
.sbr-number:nth-child(2) { animation-delay: 0.2s; }
.sbr-number:nth-child(3) { animation-delay: 0.3s; }
.sbr-number:nth-child(4) { animation-delay: 0.4s; }
.sbr-number:nth-child(5) { animation-delay: 0.5s; }
.sbr-number:nth-child(6) { animation-delay: 0.6s; }
.sbr-number:nth-child(7) { animation-delay: 0.7s; }

