/* Targeted Text Visibility Fix for Sports Fest Portal */

/* Color Variables */
:root {
    --midnight-navy: #1B2452;
    --royal-gold: #D4AF37;
    --metallic-bronze: #B08D57;
    --slate-grey: #2E2E3A;
    --pure-white: #FFFFFF;
    --text-dark: #2c3e50;
    --text-light: #34495e;
}

/* Portal Cards Text Visibility */
.portal-card h2 {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.portal-card p {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portal-features .feature span {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 1rem;
}

.portal-features .feature i {
    color: var(--royal-gold) !important;
    margin-right: 0.5rem;
}

/* Portal Buttons */
.portal-btn {
    color: var(--pure-white) !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-btn i {
    color: var(--pure-white) !important;
}

/* Hero Section - Keep original styling */
.portal-hero-content {
    color: var(--pure-white) !important;
}

.portal-hero-title {
    color: var(--pure-white) !important;
}

.portal-title-main {
    color: var(--royal-gold) !important;
}

.portal-title-sub {
    color: var(--metallic-bronze) !important;
}

.portal-hero-description {
    color: var(--pure-white) !important;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background: var(--midnight-navy) !important;
}

.navbar .nav-logo span {
    color: var(--pure-white) !important;
}

.navbar .nav-menu a {
    color: var(--pure-white) !important;
}

/* Form Elements */
.form-group label {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    color: var(--text-dark) !important;
    background: var(--pure-white) !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--royal-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Fix select dropdown option visibility */
select,
select.member-age-category,
.member-age-category {
    color: var(--text-dark) !important;
    background: var(--pure-white) !important;
}

select option,
select.member-age-category option,
.member-age-category option {
    color: var(--text-dark) !important;
    background: var(--pure-white) !important;
    padding: 0.75rem;
}

select option:checked,
select.member-age-category option:checked,
.member-age-category option:checked {
    background: var(--royal-gold) !important;
    color: var(--midnight-navy) !important;
}

select option:hover,
select.member-age-category option:hover,
.member-age-category option:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--midnight-navy) !important;
}

/* Dashboard Elements */
.dashboard-title {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-light) !important;
}

.section-header h2 {
    color: var(--text-dark) !important;
    font-weight: 600;
}

/* Sports and Member Elements */
.sport-name {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.member-name {
    color: var(--text-dark) !important;
    font-weight: 500;
}

/* Info Items */
.info-item label {
    color: var(--text-dark) !important;
    font-weight: 600;
}

.info-item span {
    color: var(--text-light) !important;
}

/* Auth Cards */
.auth-header h1 {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-light) !important;
}

/* Ensure proper contrast for all text */
.portal-card,
.auth-card,
.dashboard-container,
.form-section {
    background: var(--pure-white) !important;
}

/* Footer */
.footer {
    background: var(--midnight-navy) !important;
    color: var(--pure-white) !important;
}

.footer-logo span {
    color: var(--pure-white) !important;
}

.footer-links a {
    color: var(--pure-white) !important;
}

.footer-bottom p {
    color: var(--pure-white) !important;
}
