* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: #fff;
    background: #2a2a2a;
    font-size: 18px;
}

nav {
    background: #1a1a1a;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a3a;
}

nav .nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

nav .utility-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .utility-links a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

nav .utility-links a:hover {
    text-decoration: underline;
}

nav .utility-links .separator {
    color: #3a3a3a;
    font-size: 13px;
}

nav .search-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

nav .search-bar {
    width: 180px;
    padding: 5px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    transition: all 0.3s ease;
}

nav .search-bar:focus {
    outline: none;
    border-color: #22c55e;
    width: 250px;
}

nav .search-bar::placeholder {
    color: #666;
}

.search-loading {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    padding: 4px 8px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    font-size: 11px;
    color: #22c55e;
    display: none;
    z-index: 1001;
}

.search-loading.htmx-request {
    display: block;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    min-width: 350px;
    max-width: 450px;
    max-height: 500px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.search-results:empty {
    display: none;
}

.search-result-item {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #2a2a2a;
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.search-badge-mma {
    background: #ef4444;
    color: #fff;
}

.search-badge-boxing {
    background: #f59e0b;
    color: #000;
}

.search-badge-bjj {
    background: #3b82f6;
    color: #fff;
}

.search-badge-sumo {
    background: #8b5cf6;
    color: #fff;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.search-result-meta {
    font-size: 12px;
    color: #888;
}

.search-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

nav .request-feature {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

nav .request-feature:hover {
    text-decoration: underline;
}

nav .logo-placeholder {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

nav .logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav a,
nav .dropdown-trigger {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}

nav a:hover {
    text-decoration: underline;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a,
.dropdown > .dropdown-trigger {
    cursor: pointer;
    display: block;
    padding: 10px 0;
}

.dropdown > .dropdown-trigger {
    cursor: default;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 1000;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding: 8px 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.dropdown-content a {
    color: #22c55e;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background-color: #2a2a2a;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.dropdown .dropdown-content:hover {
    visibility: visible;
    opacity: 1;
}

.logo-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-section .title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-section .tagline {
    font-size: 0.85em;
    font-style: italic;
    color: #fff;
    margin-top: 3px;
    margin-left: 150px;
}

.logo-section .main-logo-placeholder {
    width: 140px;
    height: 140px;
}

.logo-section .main-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 2.5em;
    margin: 0;
    color: #22c55e;
    letter-spacing: -1px;
}

.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 1.8em;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    font-weight: 600;
    text-align: center;
    color: #22c55e;
}

h3 {
    font-size: 1.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #22c55e;
    text-decoration: underline;
}

a:hover {
    color: #16a34a;
}

code {
    background: #f4f4f4;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: #22c55e;
}

pre {
    background: #1a1a1a;
    padding: 20px;
    border-left: 4px solid #22c55e;
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 2px;
}

pre code {
    background: none;
    padding: 0;
    color: #fff;
}

button {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #22c55e;
    color: #22c55e;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    margin: 10px 0;
    transition: all 0.2s;
}

button:hover {
    background: #22c55e;
    color: #fff;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1.2em;
}

li {
    margin-bottom: 0.5em;
}

hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 3em 0;
}

.results-section {
    margin: 1.5em 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.results-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.results-empty p {
    margin: 10px 0;
}

.event-results {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2a2a2a;
}

.results-category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.results-badge-mma {
    background-color: #ef4444;
    color: #fff;
}

.results-badge-boxing {
    background-color: #f59e0b;
    color: #fff;
}

.results-badge-bjj {
    background-color: #3b82f6;
    color: #fff;
}

.results-badge-sumo {
    background-color: #8b5cf6;
    color: #fff;
}

.event-results-title {
    color: #22c55e;
    font-size: 1.1em;
    margin: 0;
    font-weight: 600;
}

.fight-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fight-result-item {
    background: #2a2a2a;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.fight-result-fighters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.fight-result-fighters .winner {
    color: #22c55e;
    font-weight: 600;
}

.fight-result-fighters .vs {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

.fight-result-fighters .loser {
    color: #ccc;
}

.fight-result-method {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

/* Content Creator Cards - Video Embeds */
.creator-card {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.video-embed {
    position: relative;
    width: 100%;
    height: 330px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* YouTube embeds */
.video-embed-youtube iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* TikTok and Twitter embeds */
.video-embed-tiktok blockquote,
.video-embed-twitter blockquote {
    margin: 0 !important;
}

/* Override TikTok embed styles */
.tiktok-embed {
    margin: 0 auto !important;
}

/* Override Twitter embed styles */
.twitter-tweet {
    margin: 0 auto !important;
}

/* Compact Results Styles for Multiple Events */
.event-results-compact {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-results-header-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a2a2a;
}

.event-title-compact {
    color: #22c55e;
    font-size: 0.95em;
    font-weight: 600;
}

.fight-results-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fight-result-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 0.85em;
    border-left: 2px solid #22c55e;
}

.winner-compact {
    color: #22c55e;
    font-weight: 600;
}

.vs-compact {
    color: #666;
    font-size: 0.8em;
}

.loser-compact {
    color: #ccc;
}

.method-compact {
    color: #888;
    font-size: 0.8em;
    font-style: italic;
    margin-left: auto;
}

.more-results {
    color: #888;
    font-size: 0.8em;
    text-align: center;
    padding: 6px;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

th {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #22c55e;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: 2px solid #22c55e;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid #3a3a3a;
    background: #1a1a1a;
    transition: background 0.2s ease;
}

tr:hover td {
    background: #252525;
}

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

tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.modules-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin: 0.5em 0;
}

.module {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.module-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #22c55e;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 2px solid #22c55e;
}

.module-item {
    padding: 8px 14px;
    border-bottom: 1px solid #3a3a3a;
    transition: background 0.2s ease;
    font-size: 0.85em;
    line-height: 1.4;
}

.module-item:hover {
    background: #252525;
}

.module-item:last-child {
    border-bottom: none;
}

/* Recent Results Module Styles - Optimized for 3 events */
.results-module-container {
    padding: 10px;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-module-event {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3a3a;
}

.results-module-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.results-module-title {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 6px;
    text-transform: lowercase;
}

.results-module-fight {
    padding: 4px 0;
    border-bottom: 1px solid #2a2a2a;
}

.results-module-fight:last-child {
    border-bottom: none;
}

.results-fight-outcome {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.results-winner {
    color: #fff;
    font-weight: 500;
    font-size: 0.8em;
    line-height: 1.3;
}

.results-winner::before {
    content: "✓ ";
    color: #22c55e;
}

.results-method {
    color: #888;
    font-size: 0.7em;
    font-style: italic;
    line-height: 1.2;
}

.results-module-empty {
    padding: 40px 20px;
    text-align: center;
}

.results-module-empty p {
    margin: 8px 0;
    color: #888;
    font-size: 0.9em;
}

/* FAQ Styles */
.faq-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-question {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95em;
}

.faq-answer {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.6;
}

.event-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 5px;
}

.event-details {
    color: #888;
    font-size: 0.9em;
}

.event-promotion {
    color: #22c55e;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: lowercase;
    margin-left: 10px;
}

.status-live {
    background: #22c55e;
    color: #000;
    animation: pulse 2s infinite;
}

.status-upcoming {
    background: #3a3a3a;
    color: #888;
}

.status-past {
    background: #2a2a2a;
    color: #666;
}

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

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.slideshow-container {
    position: relative;
    min-height: 600px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s;
    width: 100%;
    padding-bottom: 50px;
}

.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide h3 {
    color: #22c55e;
    margin-bottom: 15px;
    font-size: 1.3em;
    line-height: 1.4;
}

.slide p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1em;
    max-width: 90%;
}

.news-image-container {
    width: 100%;
    max-height: 350px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.news-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.news-category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-badge-mma {
    background-color: #ef4444;
    color: #fff;
}

.news-badge-boxing {
    background-color: #f59e0b;
    color: #fff;
}

.news-badge-bjj {
    background-color: #3b82f6;
    color: #fff;
}

.news-badge-sumo {
    background-color: #8b5cf6;
    color: #fff;
}

.slide-dots {
    text-align: center;
    padding: 15px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #3a3a3a;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #22c55e;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin: 1.5em 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: lowercase;
}

.filter-btn:hover {
    border-color: #22c55e;
    background: #2a2a2a;
}

.filter-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #1a1a1a;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

    nav .nav-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    nav .search-container {
        margin-left: 0;
    }

    nav .search-bar {
        width: 140px;
    }

    nav .search-bar:focus {
        width: 180px;
    }

    .search-results {
        min-width: 280px;
        max-width: 320px;
        right: -10px;
    }

    .search-result-item {
        padding: 10px 12px;
    }

    .search-result-title {
        font-size: 13px;
    }

    .search-result-meta {
        font-size: 11px;
    }

    nav .request-feature {
        font-size: 12px;
    }

    .logo-section {
        flex-direction: column;
        padding: 20px 10px;
    }

    .logo-section .main-logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .logo-section h1 {
        font-size: 2em;
        text-align: center;
    }

    .logo-section .tagline {
        margin-left: 0;
        text-align: center;
        font-size: 0.8em;
    }

    .content-wrapper {
        padding: 10px 15px 30px;
    }

    .modules-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .slideshow-container {
        min-height: 450px;
        height: auto;
        padding: 15px;
    }

    .slide h3 {
        font-size: 1.1em;
    }

    .slide p {
        font-size: 0.9em;
    }

    .news-image-container {
        max-height: 250px;
    }

    .news-image {
        height: 250px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
        margin-top: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    button {
        width: 100%;
        padding: 15px;
    }

    .results-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .event-results {
        padding: 15px;
    }

    .event-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fight-result-fighters {
        flex-wrap: wrap;
        font-size: 0.9em;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 12px 10px;
    }
}
