/* Custom CSS */
html {
    scrollbar-width: thin;
    scrollbar-color: #475569 #f1f5f9;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 7px;
    border: 4px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Top Utility Bar */
.top-bar {
    background-color: #f4f5f7;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.top-bar-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar-icon {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    transition: opacity 0.2s;
}

.top-bar-icon:hover {
    opacity: 0.7;
}

.top-bar-divider {
    width: 1px;
    height: 1.5rem;
    background-color: #cbd5e1;
    display: none;
}

@media (min-width: 640px) {
    .top-bar-divider {
        display: block;
    }
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Professional Header Utilities */
.header-black {
    background-color: #000000;
    color: #ffffff;
}

.header-black .btn-ghost:hover {
    background-color: #333333;
}

.header-black .menu a {
    position: relative;
    background-color: transparent !important;
    transition: color 0.3s ease;
}

.header-black .menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    border-radius: 2px;
}

.header-black .menu a:hover::after,
.header-black .menu a:focus::after {
    width: 60%;
}

.header-black .menu a:hover {
    color: #f1f5f9;
}

.header-black .navbar-start {
    width: auto;
}

.header-black .navbar-end {
    width: 100%;
    justify-content: flex-end;
}

.header-btn-spacing {
    margin-left: 0.5rem;
}

.desktop-menu {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: block;
    }

    .mobile-dropdown-container {
        display: none;
    }
}

.logo-text {
    font-weight: 700;
}

.desktop-action {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-action {
        display: inline-flex;
    }
}

/* Responsive Navbar Styling */
.icon-hamburger {
    height: 1.5rem;
    width: 1.5rem;
}

.mobile-dropdown-content {
    margin-top: 0.75rem;
    z-index: 50;
    padding: 0.5rem;
    width: 15rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile-first approach: hide desktop menu by default */
.desktop-menu {
    display: none;
}

/* Desktop and large tablets */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }

    .desktop-menu {
        display: flex;
    }
}

/* Welcome Hero Section */
.welcome-hero {
    background-color: var(--fallback-b2, oklch(var(--b2)));
    padding: 4rem 1rem;
    border-bottom: 1px solid var(--fallback-b3, oklch(var(--b3)));
}

.welcome-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--fallback-bc, oklch(var(--bc)));
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.welcome-desc {
    font-size: 1.125rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-btn {
    font-size: 1.125rem;
    padding: 0 2rem;
}

/* Page Sections */
.page-section {
    padding: 5rem 1rem;
    background-color: var(--fallback-b2, oklch(var(--b2)));
    border-bottom: 1px solid var(--fallback-b3, oklch(var(--b3)));
}

.page-section.bg-alt {
    background-color: var(--fallback-b3, oklch(var(--b3)));
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--fallback-bc, oklch(var(--bc)));
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.7;
    margin-bottom: 3rem;
}

.placeholder-box {
    padding: 3rem;
    background-color: var(--fallback-b3, oklch(var(--b3)));
    border-radius: 0.5rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.7;
    font-weight: 500;
}



/* Tournament Cards */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.tournament-card {
    width: 350px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(128, 128, 128, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    background-color: var(--fallback-b1, oklch(var(--b1)));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tc-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom-right-radius: 0.5rem;
    text-transform: uppercase;
    z-index: 10;
}

.tc-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.tc-body {
    padding: 2.25rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tc-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tc-info {
    text-align: left;
    flex: 1;
}

.tc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fallback-bc, oklch(var(--bc)));
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-subtitle {
    font-size: 0.95rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.7;
    margin-top: 0.25rem;
}

.tc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--fallback-b3, oklch(var(--b3)));
    padding-top: 1rem;
    margin-top: auto;
}

.tc-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.8;
    font-weight: 500;
}

.tc-icon {
    width: 1rem;
    height: 1rem;
    color: var(--fallback-bc, oklch(var(--bc)));
    opacity: 0.5;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Custom Footer Styling */
.custom-footer {
    padding: 4rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-brand-col {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-icon-large {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
    margin-bottom: 0.5rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 120px;
}

.custom-footer-bottom {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-social-links a {
    transition: opacity 0.2s;
    color: #ffffff;
}

.footer-social-links a svg {
    fill: #ffffff;
}

.footer-social-links a:hover {
    opacity: 0.7;
}

/* Dynamic Back-to-Top Button */
.back-to-top-btn {
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.back-to-top-btn.footer-overlap {
    background-color: var(--fallback-b2, oklch(var(--b2))) !important;
    color: var(--fallback-bc, oklch(var(--bc))) !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.back-to-top-btn.footer-overlap:hover {
    background-color: var(--fallback-b3, oklch(var(--b3))) !important;
}

#common-header, #common-footer {
    display: contents;
}