/* Base CSS for TadgiCasino - Using Bulma with custom styles */
/* Colors: mustard yellow (#DAA520) primary, navy blue (#001f3f) accent */

/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #DAA520;
    --accent-color: #001f3f;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #001f3f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--text-dark) !important;
    background-color: #ffffff !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

h2 {
    font-size: 2rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--primary-color) !important;
}

h3 {
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: var(--accent-color) !important;
}

p {
    font-size: 1.125rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.8 !important;
}

/* Navigation Styles */
.navbar {
    background-color: var(--accent-color) !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 2px 10px rgba(0, 31, 63, 0.2) !important;
}

.navbar-brand {
    list-style: none !important;
}

.navbar-brand::before,
.navbar-brand::after {
    display: none !important;
    content: none !important;
}

.navbar-item {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
    list-style: none !important;
}

.navbar-item::before,
.navbar-item::after {
    display: none !important;
    content: none !important;
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.navbar-burger span {
    background-color: var(--text-light) !important;
}

.navbar-menu {
    list-style: none !important;
}

.navbar-menu li {
    list-style: none !important;
}

.navbar-menu li::before,
.navbar-menu li::after {
    display: none !important;
    content: none !important;
}

.navbar-end .navbar-item {
    list-style: none !important;
}

.navbar-end .navbar-item::before,
.navbar-end .navbar-item::after {
    display: none !important;
    content: none !important;
}

.navbar-logo {
    max-height: 40px !important;
    width: auto !important;
}

.brand-text {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    margin-left: 0.5rem !important;
}

/* Hero Section */
.hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

.hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.92) 0%, rgba(0, 31, 63, 0.85) 100%) !important;
    z-index: 1 !important;
}

.hero-body {
    position: relative !important;
    z-index: 2 !important;
    padding: 4rem 1.5rem !important;
}

.hero .title {
    color: var(--text-light) !important;
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 1.5rem !important;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.25rem !important;
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
    line-height: 1.8 !important;
}

/* Buttons */
.button.is-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.button.is-primary:hover {
    background-color: #c49619 !important;
    border-color: #c49619 !important;
    transform: translateY(-2px) !important;
}

.button.is-outlined.is-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-width: 2px !important;
}

.button.is-outlined.is-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--accent-color) !important;
}

.button.is-outlined.is-info {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    border-width: 2px !important;
}

.button.is-outlined.is-info:hover {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
}

.cta-button {
    white-space: nowrap !important;
    font-weight: 700 !important;
}

/* Table of Contents */
.toc-section {
    background-color: var(--bg-light) !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin: 2rem 0 !important;
}

.toc-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}

.toc-buttons .button {
    white-space: nowrap !important;
}

/* Sections */
.section {
    padding: 3rem 1.5rem !important;
}

.section:nth-child(even) {
    background-color: var(--bg-light) !important;
}

/* Content Styles */
.content-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Lists - Reset and Custom Styling */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.content ul,
.content ol,
section ul,
section ol,
.section ul,
.section ol {
    padding-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.content ul li,
.content ol li,
section ul li,
section ol li,
.section ul li,
.section ol li {
    position: relative !important;
    padding-left: 1.75rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
}

.content ul li::before,
section ul li::before,
.section ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.65rem !important;
    width: 10px !important;
    height: 10px !important;
    background-color: var(--accent-color) !important;
    border-radius: 50% !important;
}

.content ol,
section ol,
.section ol {
    counter-reset: list-counter !important;
}

.content ol li,
section ol li,
.section ol li {
    counter-increment: list-counter !important;
}

.content ol li::before,
section ol li::before,
.section ol li::before {
    content: counter(list-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 28px !important;
    height: 28px !important;
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

/* Navbar and Footer Lists - No markers */
.navbar ul,
.navbar ol,
.navbar li,
.footer ul,
.footer ol,
.footer li,
footer ul,
footer ol,
footer li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.navbar li::before,
.navbar li::after,
.footer li::before,
.footer li::after,
footer li::before,
footer li::after {
    display: none !important;
    content: none !important;
}

/* Cards */
.card {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    margin-bottom: 1.5rem !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 31, 63, 0.15) !important;
}

.card-content {
    padding: 1.5rem !important;
}

.card-header {
    background-color: var(--accent-color) !important;
    padding: 1rem 1.5rem !important;
}

.card-header-title {
    color: var(--text-light) !important;
    font-weight: 700 !important;
}

/* Tables */
.table-container {
    overflow-x: auto !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 31, 63, 0.1) !important;
}

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

.table th {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
    font-weight: 700 !important;
    padding: 1rem !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.table td {
    padding: 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
}

.table tr:hover {
    background-color: rgba(218, 165, 32, 0.1) !important;
}

.table.is-striped tbody tr:nth-child(even) {
    background-color: var(--bg-light) !important;
}

/* Images */
.content-image {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.15) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1.5rem 0 !important;
}

.image-float-right {
    float: right !important;
    margin: 0 0 1.5rem 1.5rem !important;
    max-width: 45% !important;
}

.image-center {
    display: block !important;
    margin: 2rem auto !important;
}

.image-full {
    width: 100% !important;
    margin: 2rem 0 !important;
}

/* Footer */
.footer {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
    padding: 3rem 1.5rem 2rem !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a {
    color: var(--primary-color) !important;
    transition: color 0.3s ease !important;
}

.footer a:hover {
    color: #ffffff !important;
}

.footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
}

.footer-column h4 {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    font-size: 1.125rem !important;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column li {
    margin-bottom: 0.5rem !important;
    list-style: none !important;
}

.footer-column li::before,
.footer-column li::after {
    display: none !important;
    content: none !important;
}

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

.footer-bottom p {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Icons */
.bi {
    color: var(--accent-color) !important;
    margin-right: 0.5rem !important;
}

.icon-primary {
    color: var(--primary-color) !important;
}

.icon-accent {
    color: var(--accent-color) !important;
}

/* Animations */
@keyframes starFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

.star-animation {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.star {
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    background-color: var(--primary-color) !important;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%) !important;
    animation: starFloat 3s ease-in-out infinite !important;
    opacity: 0.5 !important;
}

.star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 40%; left: 3%; animation-delay: 1s; }
.star:nth-child(4) { top: 60%; right: 5%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 80%; left: 8%; animation-delay: 2s; }
.star:nth-child(6) { top: 30%; right: 3%; animation-delay: 2.5s; }

/* Utility Classes */
.has-text-primary {
    color: var(--primary-color) !important;
}

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

.has-background-primary {
    background-color: var(--primary-color) !important;
}

.has-background-accent {
    background-color: var(--accent-color) !important;
}

.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

/* Responsive */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

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

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

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

    .hero .subtitle {
        font-size: 1.1rem !important;
    }

    .image-float-right {
        float: none !important;
        max-width: 100% !important;
        margin: 1.5rem 0 !important;
    }

    .toc-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .toc-buttons .button {
        width: 100% !important;
    }

    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .table {
        font-size: 0.9rem !important;
    }

    .table th,
    .table td {
        padding: 0.75rem !important;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 16px !important;
    }

    .section {
        padding: 2rem 1rem !important;
    }

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

/* Logo - No box shadow */
.navbar-logo,
.logo-img,
img[src*="logo"] {
    box-shadow: none !important;
}
