/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #2e2d48; /* Updated Primary */
    --primary-light: #47456d;
    --primary-dark: #1e1d32;
    --accent-color: #9c8948;  /* Updated Accent */
    --accent-light: #c0ab6b;
    --accent-dark: #7b6c37;
    --text-color: #2C3E50;    /* Gunmetal */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Nav */
header {
    background: linear-gradient(to bottom, rgba(46, 45, 72, 0.7) 0%, rgba(46, 45, 72, 0) 100%);
    position: absolute;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

header.sticky {
    background: rgba(46, 45, 72, 0.9);
    position: fixed;
    top: 0;
    backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.sticky .navbar-brand {
    font-size: 1.4rem;
}

.nav-link {
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-dark);
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}


/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 0;
    background: var(--primary-color);
    min-width: 200px;
}

@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 6px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--accent-color);
    color: #fff;
}

/* CTA style for last menu item */
.btn-nav-cta {
    background: var(--accent-color) !important;
    color: #fff !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem !important;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(156, 137, 72, 0.3);
}

@media (max-width: 991px) {
    .btn-nav-cta {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        width: auto;
    }
}

.btn-nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 137, 72, 0.4);
}

.btn-nav-cta::after {
    display: none !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown animation for mobile */
.dropdown-menu.show {
    animation: fadeInDown 0.3s ease;
}

/* Navbar specific fixes for dropdown */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

/* Hero Section */
.hero {
    min-height: 70vh;
    padding-top: 120px;
    padding-bottom: 60px;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 200px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 10%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
    pointer-events: none;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-header .lead {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-button {
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    border: none;
}

.cta-button:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Table Styles */
.table-elegant {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table-elegant thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: none;
    padding: 1.25rem 1.5rem;
}

.table-elegant thead th:first-child {
    border-top-left-radius: 12px;
}

.table-elegant thead th:last-child {
    border-top-right-radius: 12px;
}

.table-elegant tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color);
}

.table-elegant tbody tr:last-child td {
    border-bottom: none;
}

.table-elegant.table-hover tbody tr:hover {
    background-color: rgba(156, 137, 72, 0.05); /* Very light accent color */
    transition: var(--transition);
}

/* UI Elements Helpers */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.border-primary {
    border-color: var(--primary-color) !important;
}
.border-accent {
    border-color: var(--accent-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    margin-top: 60px;
}

/* Hero Tournament Widget Adjustments */
.hero .tournament-list-widget .list-group-item {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0 !important;
}

.hero .tournament-list-widget .list-group-item:last-child {
    border-bottom: 0;
}

.tournament-list-widget .list-group-item {
    padding: 0.75rem 0;
}

.hero .tournament-list-widget .list-group-item h6 {
    color: #fff;
    font-weight: 600;
}

.hero .tournament-list-widget .list-group-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hero .tournament-list-widget .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero .tournament-list-widget .btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.hero .tournament-list-widget p.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.latest-news-widget .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.latest-news-widget .btn-link:hover {
    color: var(--primary-color) !important;
}

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

.footer-grid, .footer-info, .footer-links, .footer-social {
    /* Classes removed in favor of Bootstrap grid */
}

.ls-wide {
    letter-spacing: 1.5px;
}

.taf-item-compact {
    transition: all 0.2s ease;
}

.taf-item-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    border-color: rgba(46, 45, 72, 0.1);
}

.taf-horizontal-container ::-webkit-scrollbar {
    height: 6px;
}

.taf-horizontal-container ::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}

.taf-horizontal-container ::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.taf-horizontal-container ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-white-20:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Forms Uniformity */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(46, 45, 72, 0.05);
    background-color: #fff;
}

.form-check-label {
    font-size: 0.95rem;
    color: #444;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
