﻿/* --------------------------------------------------
   GLOBAL CARD STYLE
-------------------------------------------------- */
.card {
    border-radius: 20px !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    }

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(135deg,#0b1120,#1c2537,#0b1120);
    border-radius: 22px;
}

/* --------------------------------------------------
   DARK SECTION
-------------------------------------------------- */
.section-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 18px;
    padding: 60px 0;
}

    .section-dark h2 {
        color: #fff !important;
    }

.feature-card {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: none !important;
}

    .feature-card:hover {
        background: rgba(255,255,255,0.13) !important;
    }

/* --------------------------------------------------
   HIGHLIGHT SECTION
-------------------------------------------------- */
.section-highlight {
    background: #eef2ff;
    border-radius: 20px;
}

.clean-list .list-group-item {
    background: transparent !important;
    border: none !important;
}

/* --------------------------------------------------
   NEXT MATCH
-------------------------------------------------- */
.next-match-wrapper {
    width: 33%;
    min-width: 320px;
}

.next-match-card {
    border-radius: 22px;
    overflow: hidden;
}

.accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #00c6ff);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer-tagline {
    opacity: 0.75;
    letter-spacing: 0.3px;
}


.logo-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 120px;
    margin: 0 auto;
}

.tournament-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}


.compact-card {
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .compact-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.35);
    }


.compact-card-tiny {
    background: #1c1f26;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

    .compact-card-tiny:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.4);
    }

    /* Smaller padding */
    .compact-card-tiny .card-body {
        padding: 0.6rem !important;
    }

.logo-wrapper-sm {
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    margin: 0 auto;
}

/* Smaller logo */
    .tournament-logo-sm {
        height: 56px;
        max-width: 100%;
        object-fit: contain;
        filter: brightness(1.15) contrast(1.05);
    }




.flag-wrapper-sm {
    width: 28px;
    height: 14px; /* Better flag ratio */
    border-radius: 6px;
    overflow: hidden; /* This is key */
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.2); /* subtle background for padding look */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .flag-wrapper-sm img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(1.15) contrast(1.05);
    }

/* Tight typography */
.compact-card-sm.tournament-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.dropdown-toggle {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

    .dropdown-toggle::after {
        margin-left: 0.5rem;
        vertical-align: middle;
    }

/* Remove default bootstrap button look */
.tournament-trigger {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    position: relative;
}

    /* Subtle underline on hover */
    .tournament-trigger::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0%;
        height: 2px;
        background-color: currentColor;
        transition: width 0.25s ease;
    }

    .tournament-trigger:hover::after {
        width: 100%;
    }

/* Chevron styling */
.chevron i {
    font-size: 0.75em;
    transition: transform 0.25s ease, opacity 0.2s ease;
    opacity: 0.6;
}

/* Rotate chevron when open */
.tournament-trigger[aria-expanded="true"] .chevron i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown styling */
.tournament-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
}

/* Dropdown item polish */
.tournament-menu .dropdown-item {
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

    .tournament-menu .dropdown-item:hover {
        background-color: #f3f6ff;
        padding-left: 1.4rem;
    }

    .tournament-menu .dropdown-item.active {
        background-color: #1c2537;
        color:#fff;
        font-weight: 600;
    }

.tournament-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

    /* Only visible when Bootstrap adds .show */
    .tournament-menu.show {
        opacity: 1;
        transform: translateY(0);
    }
.tournament-dropdown {
    position: relative;
    display: inline-block;
}

/* Tournament logos fixed size */
.tournament-logo {
    width: 30px;
    height: 30px;
    object-fit: contain; /* keeps aspect ratio */
    border-radius: 4px; /* optional, small rounding */
}

/* Popular badge animation */
.popular-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.35em 0.55em;
    transform: scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .popular-badge:hover {
        transform: scale(1.15) rotate(-2deg);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.dropdown-menu.tournament-menu.show .popular-badge {
    animation: badgeFadeIn 0.25s ease forwards;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* White background for logos */
.logo-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* white background */
    padding: 2px 4px; /* small padding around logo */
    border-radius: 4px; /* rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.15); /* subtle shadow */
}

/* Ensure the logo itself is fixed size */
.tournament-logo {
    width: 30px;
    height: 30px;
    object-fit: contain; /* maintain aspect ratio */
}

.insights-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .insights-grid .nav-link {
        background: #f3f6ff;
        border-radius: 12px;
        padding: 12px 18px;
        font-weight: 500;
        color: #1c2537;
        transition: all 0.2s ease;
    }

        .insights-grid .nav-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .insights-grid .nav-link.active {
            background: #1c2537;
            color: #fff;
            border: 1px solid #fff;
        }