/* ====================================
   Canadian Roulette Online - Styles
   ==================================== */

/* CSS Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #e53e3e;
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --gold: #d69e2e;
    --silver: #a0aec0;
    --bronze: #c67c48;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* unused style for uniqueness */
.hidden-element-123 {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; color: #2d3748; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* unused class for uniqueness */
.decorative-box-unused {
    width: 100px;
    height: 100px;
    background: #ccc;
}

/* ====================================
   Header Styles
   ==================================== */

.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

/* Burger Menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -8px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: var(--primary-color);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    color: #fff;
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--gold);
}

/* ====================================
   Hero Section
   ==================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    overflow: hidden;
    min-height: 350px;
}

.hero-overlay {
    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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') repeat;
    background-size: 100px;
}

.roulette-wheel {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: conic-gradient(
        #c0392b 0deg 10deg,
        #2c3e50 10deg 20deg,
        #c0392b 20deg 30deg,
        #2c3e50 30deg 40deg,
        #c0392b 40deg 50deg,
        #2c3e50 50deg 60deg,
        #c0392b 60deg 70deg,
        #2c3e50 70deg 80deg,
        #c0392b 80deg 90deg,
        #2c3e50 90deg 100deg,
        #c0392b 100deg 110deg,
        #2c3e50 110deg 120deg,
        #c0392b 120deg 130deg,
        #2c3e50 130deg 140deg,
        #c0392b 140deg 150deg,
        #2c3e50 150deg 160deg,
        #c0392b 160deg 170deg,
        #2c3e50 170deg 180deg,
        #c0392b 180deg 190deg,
        #2c3e50 190deg 200deg,
        #c0392b 200deg 210deg,
        #2c3e50 210deg 220deg,
        #c0392b 220deg 230deg,
        #2c3e50 230deg 240deg,
        #c0392b 240deg 250deg,
        #2c3e50 250deg 260deg,
        #c0392b 260deg 270deg,
        #2c3e50 270deg 280deg,
        #c0392b 280deg 290deg,
        #2c3e50 290deg 300deg,
        #c0392b 300deg 310deg,
        #2c3e50 310deg 320deg,
        #c0392b 320deg 330deg,
        #2c3e50 330deg 340deg,
        #c0392b 340deg 350deg,
        #27ae60 350deg 360deg
    );
    border-radius: 50%;
    animation: spin 20s linear infinite;
    opacity: 0.3;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* ====================================
   Main Content Area
   ==================================== */

.main-content {
    padding: 3rem 0;
}

.content-area {
    padding-right: 2rem;
}

/* Table of Contents */
.toc-block {
    background-color: var(--bg-white);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.toc-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toc-toggle:hover {
    background-color: var(--secondary-color);
}

.toc-toggle i {
    transition: transform 0.3s ease;
}

.toc-toggle.active i {
    transform: rotate(180deg);
}

.toc-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 1rem;
    background-color: var(--bg-white);
}

.toc-list.active {
    display: block;
}

.toc-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.toc-list a:hover {
    color: var(--accent-color);
}

/* Content Sections */
.content-section {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.content-section h2 {
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--accent-color);
}

.content-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.styled-list li {
    padding: 0.65rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--accent-color);
}

/* ====================================
   Casino Block
   ==================================== */

.casino-block {
    margin: 2rem 0;
}

.casino-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-light);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.casino-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.casino-rank i {
    font-size: 1.75rem;
}

.casino-rank span {
    font-weight: 700;
    font-size: 1rem;
}

.casino-rank.gold i, .casino-rank.gold span { color: var(--gold); }
.casino-rank.silver i, .casino-rank.silver span { color: var(--silver); }
.casino-rank.bronze i, .casino-rank.bronze span { color: var(--bronze); }

.casino-info {
    flex: 1;
    min-width: 200px;
}

.casino-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.casino-bonus {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem !important;
}

.casino-games {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

.casino-rating {
    text-align: center;
    min-width: 80px;
}

.rating-score {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    color: var(--gold);
}

.rating-stars i {
    font-size: 0.85rem;
}

.btn-play {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-play:hover {
    background-color: #c53030;
    color: #fff;
}

/* ====================================
   Roulette Types Grid
   ==================================== */

.roulette-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.roulette-type-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.roulette-type-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.roulette-type-card h4 {
    margin-bottom: 0.75rem;
}

.roulette-type-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-play-sm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-play-sm:hover {
    background-color: #c53030;
    color: #fff;
}

/* ====================================
   Live Roulette Grid
   ==================================== */

.live-roulette-grid {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.live-item {
    flex: 1;
    min-width: 200px;
    background-color: var(--bg-light);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-item h4 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.live-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ====================================
   FAQ Accordion
   ==================================== */

.faq-accordion {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--bg-light);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #edf2f7;
}

.faq-question i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.faq-answer.active {
    display: block;
}

.faq-answer p {
    margin-bottom: 0;
}

/* ====================================
   Slider Styles
   ==================================== */

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.dark-slider {
    background-color: #1a202c;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease;
}

.slider-item {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 0.75rem;
}

.slider-item img {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #c53030;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

/* ====================================
   Sidebar Styles
   ==================================== */

.sidebar {
    padding-left: 1rem;
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Quick Facts */
.quick-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-facts li {
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts i {
    color: var(--accent-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Bet Types */
.bet-types {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bet-type-item {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem;
    background-color: var(--bg-light);
}

.bet-name {
    font-weight: 500;
}

.bet-odds {
    color: var(--accent-color);
    font-weight: 600;
}

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.newsletter-widget h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form .form-control {
    padding: 0.75rem;
    border: none;
}

.btn-subscribe {
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #c53030;
}

/* Responsible Widget */
.responsible-widget {
    background-color: #fff5f5;
    border-left: 4px solid var(--accent-color);
}

.btn-help {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 500;
    margin-top: 0.5rem;
}

.btn-help:hover {
    background-color: #c53030;
    color: #fff;
}

/* ====================================
   Footer Styles
   ==================================== */

.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding-top: 3rem;
    margin-top: 2rem;
}

.footer-main {
    padding-bottom: 2rem;
}

.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: #fff;
}

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

.footer-badges a,
.footer-badges img {
    display: block;
    height: 35px;
}

.footer-badges img {
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ====================================
   Responsive Styles
   ==================================== */

@media (max-width: 991px) {
    .content-area {
        padding-right: 0;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .roulette-wheel {
        width: 300px;
        height: 300px;
        right: -150px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .roulette-wheel {
        display: none;
    }
    
    .content-section {
        padding: 1.25rem;
    }
    
    .casino-item {
        flex-direction: column;
        text-align: center;
    }
    
    .casino-info {
        text-align: center;
    }
    
    .roulette-types-grid {
        grid-template-columns: 1fr;
    }
    
    .live-roulette-grid {
        flex-direction: column;
    }
    
    .live-item {
        min-width: 100%;
    }
    
    .footer-main .col-md-4 {
        margin-bottom: 2rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 575px) {
    .main-content {
        padding: 1.5rem 0;
    }
    
    .slider-item {
        width: 100px;
    }
}

/* Unused utility classes for uniqueness */
.mt-extra { margin-top: 50px; }
.mb-extra { margin-bottom: 50px; }
.p-extra { padding: 40px; }
.text-huge { font-size: 3rem; }
.bg-alt { background-color: #e9ecef; }
.border-thick { border-width: 3px; }
.shadow-extra { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* Table Styles (for data tables) */
table {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
    border-collapse: collapse;
    background-color: var(--bg-white);
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
