/* ========================================
   UNIQUE DESIGN FOR SOCCERBETSPLUS.COM
   Canadian Lottery Educational Platform
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #0f0f23;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 25%, #1a1a2e 50%, #16213e 75%, #0f0f23 100%);
    background-size: 400% 400%;
    animation: sbp-gradient-shift 15s ease infinite;
    z-index: -2;
    opacity: 1;
}

@keyframes sbp-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles Animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.06), transparent);
    background-size: 200% 200%;
    animation: sbp-particles 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes sbp-particles {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%; }
}

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

/* Typography */
.sbp-h1, .sbp-h2, .sbp-h3, .sbp-h4, .sbp-h5, .sbp-h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

.sbp-h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sbp-shimmer 3s ease-in-out infinite;
}

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

.sbp-h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.sbp-h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Header */
.sbp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sbp-header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.sbp-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
}

.sbp-logo-wrapper {
    flex-shrink: 0;
    min-width: 0;
}

.sbp-logo {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #ff6b6b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.sbp-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
    transition: width 0.4s ease;
}

.sbp-logo:hover::after {
    width: 100%;
}

.sbp-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Burger Menu */
.sbp-nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.sbp-hamburger {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
    position: relative;
}

.sbp-nav-toggle.active .sbp-hamburger:nth-child(1) {
transform: rotate(45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -14px;
    margin-top: -1.5px;
}

.sbp-nav-toggle.active .sbp-hamburger:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.sbp-nav-toggle.active .sbp-hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 0px);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -14px;
    margin-top: -1.5px;
}

/* Navigation Menu */
.sbp-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.sbp-nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.sbp-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sbp-nav-link:hover::before,
.sbp-nav-link.active::before {
    width: 100%;
}

.sbp-nav-link:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
}

/* Main Content */
.sbp-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.sbp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

.sbp-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.sbp-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.2);
}

.sbp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: sbp-fade-in-up 1s ease-out;
}

@keyframes sbp-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sbp-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    animation: sbp-pulse 3s ease-in-out infinite;
}

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

.sbp-hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    color: #f0f0f0;
}

.sbp-hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Buttons */
.sbp-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

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

.sbp-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.sbp-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
}

.sbp-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.sbp-btn-secondary:hover {
    background: white;
    color: #1a1a2e;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
}

/* Cards Section */
.sbp-cards-section {
    padding: 6rem 0;
    background: rgba(15, 15, 35, 0.5);
}

.sbp-section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 1.5rem;
}

.sbp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
    border-radius: 2px;
}

.sbp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sbp-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sbp-card > * {
    position: relative;
    z-index: 5;
}

.sbp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.sbp-card:hover::before {
    opacity: 1;
}

.sbp-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.sbp-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.sbp-card:hover .sbp-card-icon {
    transform: rotate(360deg) scale(1.1);
}

.sbp-card-title {
    color: #ffd93d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sbp-card-description {
    margin-bottom: 1.5rem;
    color: #d0d0d0;
    line-height: 1.7;
}

.sbp-card-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.sbp-card-link:hover {
    color: #ffd93d;
    transform: translateX(5px);
}

/* Footer */
.sbp-footer {
    background: rgba(10, 10, 25, 0.95);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 2px solid rgba(255, 107, 107, 0.3);
    width: 100%;
    overflow-x: hidden;
}

.sbp-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.sbp-footer-section {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.sbp-footer-title {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-wrap: break-word;
}

.sbp-footer-subtitle {
    color: #ffd93d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.sbp-footer-links {
    list-style: none;
    margin: 0;
}

.sbp-footer-links li {
    margin-bottom: 0.75rem;
}

.sbp-footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.sbp-footer-links a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.sbp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.sbp-footer-badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.sbp-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sbp-footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Content Sections */
.sbp-content-section {
    padding: 5rem 0;
    background: rgba(15, 15, 35, 0.3);
    width: 100%;
    overflow-x: hidden;
}

.sbp-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sbp-content-title {
    color: #ff6b6b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.sbp-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    border-radius: 2px;
}

.sbp-content-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sbp-nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sbp-nav-container {
        padding: 0.75rem 15px;
        min-height: 60px;
    }
    
    .sbp-nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 999;
        border-top: 2px solid rgba(255, 107, 107, 0.3);
        overflow-y: auto;
    }

    .sbp-nav-menu.active {
        left: 0;
    }

    .sbp-nav-toggle {
        display: flex;
    }

    .sbp-nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .sbp-main {
        margin-top: 60px;
    }

    .sbp-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .sbp-btn {
        width: 100%;
        max-width: 320px;
    }

    .sbp-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sbp-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .sbp-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        gap: 1rem;
    }

    .sbp-footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sbp-content-wrapper {
        padding: 0 15px;
    }

    .sbp-content-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .sbp-container {
        padding: 0 15px;
    }
    
    .sbp-hero-content {
        padding: 1rem;
    }
    
    .sbp-card {
        padding: 2rem 1.5rem;
    }

    .sbp-footer-content {
        gap: 1.5rem;
    }

    .sbp-footer-section {
        text-align: center;
    }

    .sbp-content-wrapper {
        padding: 0 10px;
    }

    .sbp-content-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    h2, .sbp-h2 {
        font-size: 1.5rem;
    }

    h3, .sbp-h3 {
        font-size: 1.25rem;
    }
}

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

/* Focus styles */
.sbp-btn:focus,
.sbp-nav-link:focus {

}

/* Scroll animations */
.sbp-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 1.5rem;
    text-align: left;
}

th {
    background: rgba(255, 107, 107, 0.2);
    color: #ffd93d;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 107, 107, 0.5);
}

td {
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Links */
a {
    transition: all 0.3s ease;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 1rem 0.5rem;
        white-space: nowrap;
    }
}

/* Prevent content overflow */
.sbp-content-wrapper > div,
.sbp-content-wrapper > * {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for long text in policy pages */
.sbp-content-text,
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Fix for inline divs and boxes on policy pages */
.sbp-content-wrapper > div[style*="background"],
.sbp-content-wrapper > div[style*="padding"] {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Ensure all lists don't overflow */
ul, ol {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Fix for long URLs and links */
a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure body doesn't overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

