/* ==================== General Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* ==================== Color Variables ==================== */
:root {
    --primary-color: #c0c0c0;
    --accent-color: #a020f0;
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --dark: #1a1a1a;
}

/* ==================== Navigation ==================== */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem 0 !important;
}

.navbar-brand .navbar-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.navbar-brand .navbar-item img {
    box-shadow: none !important;
}

.brand-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
}

.navbar-item {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    list-style: none !important;
}

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

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

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

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

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

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

/* ==================== Buttons ==================== */
.button {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

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

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

.button.is-link {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
}

.button.is-link:hover {
    background-color: #8e18d0 !important;
    transform: translateY(-2px);
}

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

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

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    padding: 5rem 1.5rem !important;
    margin-top: 52px !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

.hero-text {
    font-size: 1.1rem !important;
    color: var(--white) !important;
    margin-bottom: 2rem !important;
    line-height: 1.8 !important;
}

.hero-buttons {
    margin-top: 2rem !important;
}

.hero-section .image img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==================== Table of Contents ==================== */
.toc-section {
    padding: 3rem 1.5rem !important;
    background-color: var(--white) !important;
}

.toc-section .buttons {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

.toc-section .button {
    margin: 0 !important;
}

/* ==================== Main Content Sections ==================== */
.main-content {
    padding-top: 0 !important;
}

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

.section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin-bottom: 2rem !important;
    line-height: 1.3 !important;
}

.subsection-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.content p {
    font-size: 1.125rem !important;
    line-height: 1.9 !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-color) !important;
}

.section-image {
    margin: 2rem 0 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== Lists ==================== */
ul,
ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul::before,
ul::after,
ol::before,
ol::after {
    display: none !important;
    content: none !important;
}

.custom-list {
    margin: 1.5rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.custom-list li {
    position: relative;
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    list-style: none !important;
}

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

.custom-list li::after {
    display: none !important;
    content: none !important;
}

ol.custom-list {
    counter-reset: custom-counter;
}

ol.custom-list li::before {
    content: counter(custom-counter) !important;
    counter-increment: custom-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==================== Cards ==================== */
.game-card {
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-color);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.2);
}

.game-card .card-content {
    padding: 1.5rem;
}

.game-card .title {
    color: var(--accent-color) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-card .material-icons {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.game-card p:not(.title) {
    font-size: 1rem !important;
    color: var(--text-color) !important;
}

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

.table {
    font-size: 1rem !important;
    background-color: var(--white);
}

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

.table thead th {
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 1rem !important;
    border: none !important;
}

.table tbody td {
    padding: 1rem !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
}

.table.is-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table.is-hoverable tbody tr:hover {
    background-color: #f0f0f0;
}

/* ==================== Material Icons ==================== */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    color: var(--accent-color);
}

/* ==================== Footer ==================== */
.footer {
    background-color: #2c3e50 !important;
    color: var(--white) !important;
    padding: 3rem 1.5rem 2rem !important;
    margin-top: 4rem !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-brand img {
    box-shadow: none !important;
}

.footer-brand .brand-name {
    color: var(--white) !important;
    font-size: 1.5rem !important;
}

.footer-description {
    font-size: 1rem !important;
    color: #ecf0f1 !important;
    line-height: 1.6 !important;
}

.footer-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    margin-bottom: 1rem !important;
}

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

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

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

.footer-links a {
    color: #ecf0f1 !important;
    font-size: 1rem !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1.5rem;
}

.footer-copyright {
    color: #bdc3c7 !important;
}

.footer-copyright p {
    font-size: 0.95rem !important;
    margin: 0 !important;
}

/* ==================== Responsive Design ==================== */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

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

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

    .subsection-title {
        font-size: 1.5rem !important;
    }
}

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

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

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

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

    .hero-text {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .subsection-title {
        font-size: 1.35rem !important;
    }

    .content p {
        font-size: 1rem !important;
    }

    .custom-list li {
        font-size: 1rem !important;
    }

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

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

    .toc-section .button {
        width: 100%;
    }

    .game-card .title {
        font-size: 1.1rem !important;
    }

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

    .table thead th,
    .table tbody td {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }

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

    .section-title {
        font-size: 1.5rem !important;
    }

    .button {
        font-size: 0.95rem !important;
        padding: 0.65rem 1.25rem !important;
    }

    .brand-name {
        font-size: 1.25rem !important;
    }
}

/* ==================== Accessibility & Contrast ==================== */
.has-background-light {
    background-color: #f8f9fa !important;
}

strong {
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

a {
    color: var(--accent-color) !important;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==================== Image Styling ==================== */
.image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* ==================== Prevent list markers everywhere ==================== */
nav ul,
nav ol,
nav li,
.navbar ul,
.navbar ol,
.navbar li,
.navbar-menu ul,
.navbar-menu ol,
.navbar-menu li,
.navbar-start ul,
.navbar-start ol,
.navbar-start li,
.navbar-end ul,
.navbar-end ol,
.navbar-end li,
.footer ul,
.footer ol,
.footer li {
    list-style: none !important;
    list-style-type: none !important;
}

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

/* ==================== Smooth Scrolling Offset for Fixed Nav ==================== */
section[id] {
    scroll-margin-top: 80px;
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .footer,
    .toc-section,
    .hero-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
