/* UnitedSets Tennis - Comprehensive Color Fixes */
/* Fixes white-on-white text issues and improves overall color consistency */

/* ===== GLOBAL COLOR OVERRIDES ===== */

/* Ensure all text has proper contrast */
* {
    color: inherit;
}

/* Fix body text color inheritance */
body {
    color: #333333 !important;
    background-color: #f8f9fa !important;
}

/* ===== HEADER AND NAVIGATION FIXES ===== */

/* Header text should always be white on dark backgrounds */
header, .glass-nav {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
    color: #ffffff !important;
}

header .logo span,
header .nav-menu a,
header .mobile-menu-btn {
    color: #ffffff !important;
}

/* Mobile menu fixes */
.nav-menu {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
}

.nav-menu a {
    color: #ffffff !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c2e59c !important;
}

/* ===== HERO SECTION FIXES ===== */

.hero, .programs-hero, .about-hero, .page-header {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
    color: #ffffff !important;
}

.hero h1, .programs-hero h1, .about-hero h1, .page-header h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.hero p, .programs-hero p, .about-hero p, .page-header p {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* ===== CONTENT SECTION FIXES ===== */

/* All content sections should have proper contrast */
.page-content, .content-section, .programs-overview, .about-section {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* Section titles */
.section-title {
    color: #0a5566 !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* ===== CTA BOX FIXES - CRITICAL ===== */

.cta-box, .cta-content {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #0a5566 !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(10, 85, 102, 0.1) !important;
}

.cta-box h2, .cta-box h3, .cta-content h2, .cta-content h3 {
    color: #0a5566 !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.cta-box p, .cta-content p {
    color: #333333 !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* ===== CARD COMPONENT FIXES ===== */

.feature-card, .program-card, .tournament-card, .testimonial-card {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 15px rgba(10, 85, 102, 0.1) !important;
}

.feature-card h3, .program-card h3, .tournament-card h3, .testimonial-card h3 {
    color: #0a5566 !important;
    background: transparent !important;
    text-shadow: none !important;
}

.feature-card p, .program-card p, .tournament-card p, .testimonial-card p {
    color: #333333 !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* ===== BUTTON FIXES ===== */

.btn, .btn-primary, .btn-secondary {
    background: linear-gradient(135deg, #c2e59c 0%, #a8d8a8 100%) !important;
    color: #0a5566 !important;
    border: 2px solid #c2e59c !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover {
    background: #ffffff !important;
    color: #0a5566 !important;
    border-color: #0a5566 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(10, 85, 102, 0.2) !important;
}

.btn-outline {
    background: transparent !important;
    color: #0a5566 !important;
    border: 2px solid #0a5566 !important;
}

.btn-outline:hover {
    background: #0a5566 !important;
    color: #ffffff !important;
}

/* ===== FORM ELEMENT FIXES ===== */

input, textarea, select {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #e9ecef !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #0a5566 !important;
    box-shadow: 0 0 0 3px rgba(10, 85, 102, 0.1) !important;
    outline: none !important;
}

/* ===== TABLE FIXES ===== */

table {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e9ecef !important;
}

table th {
    background-color: #0a5566 !important;
    color: #ffffff !important;
    padding: 15px !important;
}

table td {
    color: #333333 !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* ===== FOOTER FIXES ===== */

footer {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
    color: #ffffff !important;
}

footer h4, footer h3 {
    color: #c2e59c !important;
}

footer p, footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #c2e59c !important;
}

/* ===== MOBILE SPECIFIC FIXES ===== */

@media (max-width: 768px) {
    /* Ensure mobile text is always readable */
    body {
        color: #333333 !important;
        background-color: #f8f9fa !important;
    }
    
    /* Mobile CTA boxes */
    .cta-box, .cta-content {
        background-color: #ffffff !important;
        color: #333333 !important;
        border: 2px solid #0a5566 !important;
        margin: 15px !important;
        padding: 20px !important;
    }
    
    .cta-box h2, .cta-box h3, .cta-content h2, .cta-content h3 {
        color: #0a5566 !important;
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
    
    .cta-box p, .cta-content p {
        color: #333333 !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Mobile cards */
    .feature-card, .program-card, .tournament-card {
        background-color: #ffffff !important;
        color: #333333 !important;
        margin: 10px !important;
        padding: 15px !important;
    }
    
    /* Mobile buttons */
    .btn {
        background: linear-gradient(135deg, #c2e59c 0%, #a8d8a8 100%) !important;
        color: #0a5566 !important;
        border: 2px solid #c2e59c !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-box, .feature-card, .program-card {
        border: 3px solid #0a5566 !important;
    }
    
    .btn {
        border: 3px solid #0a5566 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn, .feature-card, .program-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ===== SPECIFIC PAGE FIXES ===== */

/* Programs page specific */
.programs-hero {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
    color: #ffffff !important;
}

.programs-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.programs-hero p {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* About page specific */
.about-hero {
    background: linear-gradient(135deg, #0a5566 0%, #17a2b8 100%) !important;
    color: #ffffff !important;
}

.about-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Tournament calendar fixes */
.tournament-calendar {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.tournament-calendar .calendar-container {
    background-color: #ffffff !important;
    border: 1px solid #e9ecef !important;
}

.tournament-calendar .calendar-day {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e9ecef !important;
}

.tournament-calendar .calendar-day.has-event {
    background-color: #e8f4f8 !important;
    color: #0a5566 !important;
    border: 2px solid #0a5566 !important;
}

/* ===== CRITICAL OVERRIDES ===== */

/* Force visibility for any hidden text */
.cta-box *, .cta-content *, .feature-card *, .program-card * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure no white text on white backgrounds */
.cta-box, .cta-content, .feature-card, .program-card, .tournament-card {
    background-color: #ffffff !important;
}

.cta-box h1, .cta-box h2, .cta-box h3, .cta-box h4, .cta-box h5, .cta-box h6,
.cta-content h1, .cta-content h2, .cta-content h3, .cta-content h4, .cta-content h5, .cta-content h6 {
    color: #0a5566 !important;
}

.cta-box p, .cta-content p {
    color: #333333 !important;
}

/* ===== UTILITY CLASSES ===== */

/* Hide elements utility class */
.hidden {
    display: none !important;
}

/* ===== DEBUGGING HELPERS ===== */

/* Uncomment these lines to debug color issues */
/*
.cta-box, .cta-content {
    outline: 3px solid red !important;
}

.cta-box h1, .cta-box h2, .cta-box h3, .cta-content h1, .cta-content h2, .cta-content h3 {
    outline: 2px solid blue !important;
}

.cta-box p, .cta-content p {
    outline: 2px solid green !important;
}
*/
