:root {
    --kl-orange: #f39200;
    --kl-blue: #004c97;
    --kl-dark: #1a1a1a;
}

/* Local Fonts Configuration */
/* Download fonts to /public/fonts/ */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem; /* Slightly smaller text */
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-header {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
}

.hover-white:hover {
    color: white !important;
}

.bg-primary {
    background-color: var(--kl-blue) !important;
}

.text-primary {
    color: var(--kl-blue) !important;
}

.btn-primary {
    background-color: var(--kl-orange);
    border-color: var(--kl-orange);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #d68100;
    border-color: #d68100;
}

.btn-custom-blue {
    background-color: var(--kl-blue);
    border-color: var(--kl-blue);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-custom-blue:hover {
    background-color: #003870;
    border-color: #003870;
    color: white;
}

.btn-login {
    background-color: white;
    color: var(--kl-blue);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--kl-orange);
    color: white;
    border-color: var(--kl-orange);
}

/* Navbar Styling */
.navbar {
    border-bottom: 4px solid var(--kl-orange);
    min-height: 70px; /* Use min-height instead of fixed height */
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    padding: 0; /* Remove default padding */
    margin-right: 2rem;
    display: flex;
    align-items: center;
    height: 70px; /* Match navbar height */
}

/* Desktop Navigation */
@media (min-width: 992px) {
    /* Reset offcanvas to behave like a normal navbar-collapse on desktop */
    .navbar-expand-lg .offcanvas {
        position: static;
        z-index: auto;
        flex-grow: 1;
        width: auto !important;
        height: auto !important;
        visibility: visible;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none;
        display: flex !important;
        align-items: center !important;
    }

    .navbar-expand-lg .offcanvas-header {
        display: none;
    }

    .navbar-expand-lg .offcanvas-body {
        display: flex !important;
        flex-direction: row;
        align-items: center !important;
        padding: 0 !important;
        overflow: visible;
        width: 100%;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
    }

    .nav-link {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: 70px; /* Match navbar height */
        display: flex;
        align-items: center;
    }

    .nav-item {
        display: flex;
        align-items: center;
        height: 70px;
    }
    
    /* Ensure buttons are centered but don't stretch */
    .nav-item .btn {
        margin: 0;
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        height: auto;
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 10px 0;
        height: auto;
    }
}

.nav-link {
    display: flex;
    align-items: center;
}

/* Role Colors */
.role-text-MASTER_ADMIN { color: #dc3545 !important; font-weight: bold; }
.role-text-MANAGER { color: var(--kl-orange) !important; font-weight: bold; }
.role-text-EDITOR { color: #198754 !important; font-weight: bold; }
.role-text-GAST { color: white !important; }

/* Hero Section */
.hero-section {
    background-image: url('/img/website/ahoy-finale-pkc-fortuna-background-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 4rem 0; /* Reduced padding */
    margin-bottom: 3rem;
}

/* Toast Position */
.toast-container {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto !important;
    right: auto !important;
}

/* Mobile Menu */
.offcanvas-body {
    display: flex;
    flex-direction: column;
}

.mobile-menu-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 76, 151, 0.85); /* Blue glow overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-match {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.match-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--kl-dark);
}

.match-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--kl-blue);
}

/* Admin Dashboard Styles */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-hover:hover .icon-circle {
    transform: scale(1.1);
}

/* Table Styles */
.table > :not(caption) > * > * {
    padding: 1rem 0.5rem;
}

.avatar-placeholder {
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 100%;
    margin-bottom: 20px;
}

.progress-custom {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

/* Player Avatar Fix */
.player-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.player-avatar-lg {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
}
