/* General Styles */
:root {
    --primary-color: #2255A4;
    --secondary-color: #D6B268;
    --accent-color: #D6B268;
    --primary-color-rgb: 34, 85, 164;
    --secondary-color-rgb: 214, 178, 104;
    --text-color: #3e6b98;
    --light-bg: #f3f4f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    padding-top: 60px; /* Reduced from 76px to minimize white space */
}

/* Header Styles */
.navbar {
    padding: 0.5rem 0; /* Reduced from 1rem for more compact layout */
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Event name header styling - FIXED: Full width and no scaling on hover */
.Event {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

/* Target the container of Event name */
.event-container {
    width: 100%;
    transform: none !important;
    transition: none !important;
}

/* Target specific event name text */
a[href*="Event name"], 
span:contains("Event name"),
div:contains("Event name") > a,
div:contains("Event name") > span:first-child,
.event-name {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

/* Event name styling for specific elements - FIXED: Full width and no scaling */
.Event.name, 
.event-name-header, 
.blue-event-name,
#event-name,
div[data-testid="event-name"] {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

/* Override for the live event page */
a.Event.name,
.Event.name {
    background-color: var(--primary-color) !important;
    color: white !important;
    display: block;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

/* Additional selector for all event name elements - to catch all instances */
[class*="event"], 
[class*="Event"], 
[id*="event"],
[id*="Event"] {
    transform: none !important;
    transition: none !important;
}

/* Alternative with yellow text */
.event-name-yellow {
    background-color: var(--primary-color) !important;
    color: var(--secondary-yellow) !important;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}

.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Clients Section */
.clients {
    padding: 5rem 0;
}

.client-logo {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background-color: #1f2937;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Live page specific styles */
.filter-container {
    margin-top: 0; /* Remove extra margin */
    padding-top: 0; /* Remove extra padding */
}

/* Match list container */
.match-listings {
    margin-top: 10px; /* Minimal margin */
}

/* Fix hover issues on cards */
.card:hover .Event,
.card:hover [class*="event"],
.card:hover [class*="Event"],
.card:hover [id*="event"],
.card:hover [id*="Event"] {
    transform: none !important;
}