/* College Baseball Fit Finder — Custom Styles */

/* Leaflet popup buttons: Bootstrap's `.btn-primary` text color gets shadowed
   by Leaflet's `.leaflet-popup-content a` rule (which sets a Leaflet blue),
   making "View full profile" appear faded blue until hover. Force white. */
.leaflet-popup-content a.btn-primary,
.leaflet-popup-content a.btn-primary:link,
.leaflet-popup-content a.btn-primary:visited,
.leaflet-popup-content a.btn-primary:hover,
.leaflet-popup-content a.btn-primary:focus {
    color: #fff !important;
    text-decoration: none !important;
}


:root {
    --navy: #1a2744;
    --navy-light: #2a3f6f;
    --gold: #f5a623;
    --green: #28a745;
}

/* Navy color utility */
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }
.btn-navy {
    background-color: var(--navy);
    color: white;
    border: none;
}
.btn-navy:hover {
    background-color: var(--navy-light);
    color: white;
}

/* Navbar */
.bg-navy {
    background-color: var(--navy) !important;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3a5a9f 100%);
    min-height: 180px;
}

/* Athlete hero card */
.athlete-hero-card {
    border-left: 5px solid var(--gold) !important;
    transition: box-shadow 0.2s;
}
.athlete-hero-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
}

/* Athlete avatar */
.athlete-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.athlete-avatar-sm {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.athlete-avatar-lg {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

/* Stat box */
.stat-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Athlete row hover */
.athlete-row:hover {
    background-color: #f0f4ff;
}
.athlete-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
    transform: translateY(-1px);
    transition: all 0.2s;
}

/* Division badges */
.division-badge-ncaa_d1 { background-color: #6f42c1; color: white; }
.division-badge-ncaa_d2 { background-color: #0d6efd; color: white; }
.division-badge-ncaa_d3 { background-color: #198754; color: white; }
.division-badge-naia { background-color: #0dcaf0; color: #000; }
.division-badge-juco { background-color: #fd7e14; color: white; }
.division-badge-nccaa { background-color: #6c757d; color: white; }
.division-badge-other { background-color: #adb5bd; color: #000; }
.division-badge-unknown { background-color: #e9ecef; color: #6c757d; }
[class*="division-badge-"] {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: 0.375rem;
    font-size: 0.8em;
    font-weight: 600;
}

/* Markdown body styles */
.markdown-body h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.markdown-body h2 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--navy); }
.markdown-body ul { padding-left: 1.5rem; }
.markdown-body li { margin-bottom: 0.25rem; }
.markdown-body code { background: #f0f4ff; padding: 0.1rem 0.3rem; border-radius: 3px; }

/* Small button utility */
.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* Form widget defaults */
input[type=text], input[type=email], input[type=number], input[type=url],
select, textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color 0.15s;
}
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=url]:focus,
select:focus, textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Progress bars */
.progress { border-radius: 10px; }

/* Table striping */
.table th { background-color: #f8f9fa; font-weight: 600; font-size: 0.875rem; }

/* Footer */
footer { font-size: 0.875rem; }

/* Card transitions */
.card { transition: box-shadow 0.15s; }

/* Code pre */
pre code { font-size: 0.8rem; }
