/* Base CSS for Elektro Casino */

/* Reset and Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation Menu Reset */
.nav-menu li {
    margin-bottom: 0 !important;
}

nav ul,
nav ol,
footer ul,
footer ol,
.nav-menu,
.footer-links {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

nav ul li::before,
nav ol li::before,
footer ul li::before,
footer ol li::before,
nav ul li::after,
nav ol li::after,
footer ul li::after,
footer ol li::after,
.nav-menu li::before,
.nav-menu li::after,
.footer-links li::before,
.footer-links li::after {
    content: none !important;
    display: none !important;
}

nav ul li::marker,
nav ol li::marker,
footer ul li::marker,
footer ol li::marker {
    content: none !important;
    display: none !important;
}

/* Content Lists Styling */
main ul:not(.nav-menu):not(.footer-links),
main ol:not(.nav-menu):not(.footer-links),
article ul,
article ol,
section ul:not(.nav-menu):not(.footer-links),
section ol:not(.nav-menu):not(.footer-links) {
    list-style: none !important;
    padding-left: 0 !important;
}

main ul:not(.nav-menu):not(.footer-links) li,
main ol:not(.nav-menu):not(.footer-links) li,
article ul li,
article ol li,
section ul:not(.nav-menu):not(.footer-links) li,
section ol:not(.nav-menu):not(.footer-links) li {
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

main ul:not(.nav-menu):not(.footer-links) li::before,
article ul li::before,
section ul:not(.nav-menu):not(.footer-links) li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.6rem !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #F5F5DC !important;
    border-radius: 50% !important;
    border: 2px solid #8B4513 !important;
}

main ol:not(.nav-menu):not(.footer-links),
article ol,
section ol:not(.nav-menu):not(.footer-links) {
    counter-reset: item !important;
}

main ol:not(.nav-menu):not(.footer-links) li::before,
article ol li::before,
section ol:not(.nav-menu):not(.footer-links) li::before {
    counter-increment: item !important;
    content: counter(item) "." !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #8B4513 !important;
    font-weight: 700 !important;
}

/* Typography */
h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #8B4513 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #8B4513 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #5D3A1A !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

p {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #8B4513 0%, #5D3A1A 100%) !important;
    padding: 4rem 1.5rem !important;
    color: #fff !important;
}

.hero-section h1 {
    color: #fff !important;
    font-size: 2.75rem !important;
}

.hero-section p {
    color: #F5F5DC !important;
    font-size: 1.25rem !important;
}

/* Cards */
.card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid #e5e5e5 !important;
    transition: transform 0.2s ease !important;
}

.card:hover {
    transform: translateY(-2px) !important;
}

/* Buttons */
.btn-outline {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid #8B4513 !important;
    color: #8B4513 !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.btn-outline:hover {
    background: #8B4513 !important;
    color: #fff !important;
}

.btn-outline-light {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid #F5F5DC !important;
    color: #F5F5DC !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.btn-outline-light:hover {
    background: #F5F5DC !important;
    color: #8B4513 !important;
}

/* Table Styling */
.table-container {
    overflow-x: auto !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e5e5 !important;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 1rem !important;
    min-width: 600px !important;
}

thead {
    background: #8B4513 !important;
    color: #fff !important;
}

th {
    padding: 1rem !important;
    text-align: left !important;
    font-weight: 600 !important;
}

td {
    padding: 0.875rem 1rem !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

tbody tr:nth-child(even) {
    background: #FAFAFA !important;
}

tbody tr:hover {
    background: #FFF8DC !important;
}

/* Images */
.content-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 1.5rem 0 !important;
}

/* Logo - No shadow */
.logo-img {
    box-shadow: none !important;
}

/* Icons */
.bi {
    color: #8B4513 !important;
}

.icon-accent {
    color: #F5F5DC !important;
}

/* Footer */
footer {
    background: #2D1810 !important;
    color: #F5F5DC !important;
    padding: 3rem 1.5rem 1.5rem !important;
}

footer p {
    color: #F5F5DC !important;
}

footer a {
    color: #F5F5DC !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

footer a:hover {
    color: #fff !important;
}

footer h4 {
    color: #fff !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* Table of Contents Buttons */
.toc-btn {
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid #8B4513 !important;
    color: #8B4513 !important;
    background: transparent !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    margin: 0.25rem !important;
    transition: all 0.2s ease !important;
}

.toc-btn:hover {
    background: #8B4513 !important;
    color: #fff !important;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 1rem !important;
        flex-direction: column !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 0.5rem 0 !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section {
        padding: 2.5rem 1rem !important;
    }

    .toc-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* Section Spacing */
section {
    padding: 3rem 0 !important;
}

/* Link Styling */
a {
    color: #8B4513 !important;
    text-decoration: underline !important;
}

a:hover {
    color: #5D3A1A !important;
}
