/* ============================================================
   Modern Theme — plain white background, black text, blue used
   only for buttons and icons.

   Everything here is scoped under `body.modern-theme` so it can
   NEVER affect a page that doesn't opt in. Resume builder
   (index.html), cover letter (cover_letter.html), the resume
   output templates, and the blog do not include this file or
   the body class, and must stay visually untouched.
   ============================================================ */

body.modern-theme .navbar-logo img.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}
@media (min-width: 992px) {
    body.modern-theme .navbar-logo img.brand-logo { height: 32px; }
}

body.modern-theme {
    --mt-blue: #007bff;
    --mt-blue-dark: #0062cc;
    --mt-black: #111111;
    --mt-border: #e5e7eb;
    --mt-gray-bg: #f8f9fa;

    background-color: #ffffff !important;
    color: var(--mt-black) !important;
}

body.modern-theme h1, body.modern-theme h2, body.modern-theme h3,
body.modern-theme h4, body.modern-theme h5, body.modern-theme h6,
body.modern-theme p, body.modern-theme span, body.modern-theme label,
body.modern-theme td, body.modern-theme th, body.modern-theme li,
body.modern-theme small {
    color: var(--mt-black);
}

body.modern-theme a { color: var(--mt-black); text-decoration: none; }
body.modern-theme a:hover { color: var(--mt-blue); }

/* Icons: the one place blue is used besides buttons */
body.modern-theme i.fa, body.modern-theme i.fas, body.modern-theme i.far,
body.modern-theme i.fab, body.modern-theme i.fa-solid, body.modern-theme i.fa-regular,
body.modern-theme i.fa-brands {
    color: var(--mt-blue) !important;
}
/* Icons already inside a solid blue button should stay white, not blue-on-blue */
body.modern-theme .btn-primary i,
body.modern-theme .btn-primary.fa,
body.modern-theme [class*="btn-"][style*="background"] i {
    color: #fff !important;
}

/* ---- Buttons: flat blue, no gradients ---- */
body.modern-theme .btn-primary {
    background: var(--mt-blue) !important;
    border: 1px solid var(--mt-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.modern-theme .btn-primary:hover {
    background: var(--mt-blue-dark) !important;
    border-color: var(--mt-blue-dark) !important;
    transform: translateY(-1px);
}
body.modern-theme .btn-outline-primary {
    border: 1px solid var(--mt-blue) !important;
    color: var(--mt-blue) !important;
    background: #fff !important;
}
body.modern-theme .btn-outline-primary:hover {
    background: var(--mt-blue) !important;
    color: #fff !important;
}
/* Neutralize other Bootstrap contextual buttons so blue stays the only accent */
body.modern-theme .btn-success, body.modern-theme .btn-danger, body.modern-theme .btn-warning,
body.modern-theme .btn-info, body.modern-theme .btn-secondary, body.modern-theme .btn-dark,
body.modern-theme .btn-light {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    border: 1px solid var(--mt-black) !important;
    box-shadow: none !important;
}
body.modern-theme .btn-success:hover, body.modern-theme .btn-danger:hover,
body.modern-theme .btn-warning:hover, body.modern-theme .btn-info:hover,
body.modern-theme .btn-secondary:hover, body.modern-theme .btn-dark:hover {
    background: var(--mt-black) !important;
    color: #fff !important;
}
body.modern-theme .btn-outline-success, body.modern-theme .btn-outline-danger,
body.modern-theme .btn-outline-warning, body.modern-theme .btn-outline-info,
body.modern-theme .btn-outline-secondary, body.modern-theme .btn-outline-dark {
    border: 1px solid var(--mt-black) !important;
    color: var(--mt-black) !important;
    background: #fff !important;
}

/* Hide the resume accent-color swatch picker — only relevant to the resume builder */
body.modern-theme .theme-switcher { display: none !important; }

/* ---- Navbar: flat white, no blur/gradient/glow ---- */
body.modern-theme .navbar-animated,
body.modern-theme .navbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--mt-border) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
}
body.modern-theme .brand-mark {
    background: var(--mt-blue) !important;
    box-shadow: none !important;
}
body.modern-theme .brand-text {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--mt-black) !important;
}
body.modern-theme .navbar .nav-link { color: var(--mt-black) !important; }
body.modern-theme .navbar-animated .nav-link:hover,
body.modern-theme .navbar-animated .nav-link:focus,
body.modern-theme .navbar .nav-link.active {
    color: var(--mt-blue) !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.modern-theme .navbar .nav-link::after,
body.modern-theme .navbar .nav-link.active::before {
    display: none !important;
}

/* ---- Cards/containers: flat white, thin gray border, no colored glow ---- */
body.modern-theme .section-card,
body.modern-theme .template-card,
body.modern-theme .job-card,
body.modern-theme .order-card,
body.modern-theme .plan-card,
body.modern-theme .payment-method-card,
body.modern-theme .bg-white,
body.modern-theme .preview-container,
body.modern-theme .card {
    background: #ffffff !important;
    border: 1px solid var(--mt-border) !important;
    box-shadow: none !important;
}
body.modern-theme .section-card::before,
body.modern-theme .template-card::before,
body.modern-theme .job-card::before,
body.modern-theme .order-card::before,
body.modern-theme .plan-card::before,
body.modern-theme .payment-method-card::before,
body.modern-theme .bg-white::before,
body.modern-theme .preview-container::before,
body.modern-theme .card::before {
    content: none !important;
    display: none !important;
}
body.modern-theme .section-card:hover,
body.modern-theme .template-card:hover,
body.modern-theme .job-card:hover,
body.modern-theme .bg-white:hover,
body.modern-theme .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border-color: var(--mt-border) !important;
}
body.modern-theme .template-card.selected {
    border-color: var(--mt-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px var(--mt-blue) !important;
}
body.modern-theme .bg-light { background-color: #ffffff !important; }

body.modern-theme .section-title { color: var(--mt-black) !important; }
body.modern-theme .section-title i { color: var(--mt-blue) !important; }

/* Icon chips (feature-icon, icon-box, etc.): a light blue tint so icons read as
   an intentional accent instead of disappearing into the white page */
body.modern-theme .feature-icon,
body.modern-theme .icon-box,
body.modern-theme .icon-chip {
    background: #eaf3ff !important;
    border: 1px solid #d6e9ff !important;
}
body.modern-theme .feature-icon i,
body.modern-theme .icon-box i,
body.modern-theme .icon-chip i {
    color: var(--mt-blue) !important;
}

/* ---- Badges/alerts: monochrome, status via text/icon not color ---- */
body.modern-theme .badge,
body.modern-theme .bg-success, body.modern-theme .bg-danger,
body.modern-theme .bg-warning, body.modern-theme .bg-info,
body.modern-theme .bg-secondary, body.modern-theme .bg-dark, body.modern-theme .bg-primary {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    border: 1px solid var(--mt-black) !important;
}
body.modern-theme .text-success, body.modern-theme .text-danger,
body.modern-theme .text-warning, body.modern-theme .text-info,
body.modern-theme .text-secondary, body.modern-theme .text-muted {
    color: #4b5563 !important;
}
body.modern-theme .text-primary { color: var(--mt-blue) !important; }

/* Bootstrap 5.3 "-subtle" background utilities (bg-primary-subtle, bg-success-subtle, etc.)
   used heavily as colored icon-chip backgrounds — flatten to white/bordered */
body.modern-theme [class*="-subtle"] {
    background-color: #ffffff !important;
    border: 1px solid var(--mt-border) !important;
}
body.modern-theme .glass,
body.modern-theme .btn-gradient,
body.modern-theme .gradient-btn,
body.modern-theme .bg-gradient-primary {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--mt-border) !important;
    box-shadow: none !important;
}
body.modern-theme .btn-gradient,
body.modern-theme .gradient-btn {
    background: var(--mt-blue) !important;
    color: #fff !important;
    border: 1px solid var(--mt-blue) !important;
}
body.modern-theme .bg-gradient-primary::before { display: none !important; }
body.modern-theme .modal-header.bg-gradient-primary {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    border-bottom: 1px solid var(--mt-border) !important;
}
body.modern-theme .modal-header.bg-gradient-primary .btn-close {
    filter: none !important;
}

body.modern-theme .alert {
    background: #ffffff !important;
    border: 1px solid var(--mt-border) !important;
    color: var(--mt-black) !important;
}
body.modern-theme .alert i { color: var(--mt-blue) !important; }

/* Accordion: flat white, no active-state blue tint */
body.modern-theme .accordion-button {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    box-shadow: none !important;
}
body.modern-theme .accordion-button:not(.collapsed) {
    background: #ffffff !important;
    color: var(--mt-black) !important;
}
body.modern-theme .accordion-button::after {
    filter: none;
}
body.modern-theme .accordion-item {
    border-color: var(--mt-border) !important;
}

/* ---- Forms ---- */
body.modern-theme .form-control,
body.modern-theme .form-select {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    border: 1px solid #d1d5db !important;
}
body.modern-theme .form-control:focus,
body.modern-theme .form-select:focus {
    border-color: var(--mt-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}
body.modern-theme .form-label { color: var(--mt-black) !important; }

/* ---- Tables ---- */
body.modern-theme table, body.modern-theme .table {
    background: #ffffff !important;
    color: var(--mt-black) !important;
}
body.modern-theme .table th {
    border-bottom: 2px solid var(--mt-black) !important;
    color: var(--mt-black) !important;
    background: #ffffff !important;
}
body.modern-theme .table td { border-color: var(--mt-border) !important; }
body.modern-theme .table-hover tbody tr:hover { background: var(--mt-gray-bg) !important; }

body.modern-theme .hero-band {
    background: #ffffff;
    border-bottom: 1px solid var(--mt-border);
}
@media (min-width: 768px) {
    body.modern-theme .py-md-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

/* ---- Hero / header bands: flatten to white ---- */
body.modern-theme .hero,
body.modern-theme .hero-section,
body.modern-theme .job-header,
body.modern-theme .search-hero,
body.modern-theme .page-header,
body.modern-theme .gradient-hero {
    background: #ffffff !important;
    color: var(--mt-black) !important;
    border-bottom: 1px solid var(--mt-border);
}

/* Safety net for stray inline/utility gradients on pages not yet fully cleaned up */
body.modern-theme [style*="gradient"] {
    background: #ffffff !important;
    color: var(--mt-black) !important;
}

/* ---- Footer: compact, sleek, single-row modern style ---- */
body.modern-theme .site-footer {
    background: #ffffff !important;
    border-top: 1px solid var(--mt-border) !important;
    color: var(--mt-black) !important;
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
    margin-top: 2rem !important;
    font-size: 0.8rem;
}
body.modern-theme .footer-link { color: var(--mt-black) !important; }
body.modern-theme .footer-link:hover { color: var(--mt-blue) !important; }

/* Social/action icons: plain, no button chrome — a normal footer icon row, not a row of bordered circles */
body.modern-theme .site-footer .btn-outline-secondary.rounded-circle,
body.modern-theme .site-footer .btn-outline-success.rounded-circle {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.modern-theme .site-footer .btn-outline-secondary.rounded-circle:hover,
body.modern-theme .site-footer .btn-outline-success.rounded-circle:hover {
    transform: none;
    opacity: 0.7;
}
body.modern-theme .site-footer a.btn-outline-secondary:not(.rounded-circle) {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.2rem 0.4rem !important;
    color: var(--mt-black) !important;
    font-size: 0.8rem;
}
body.modern-theme .site-footer a.btn-outline-secondary:not(.rounded-circle):hover {
    color: var(--mt-blue) !important;
    transform: none;
}
body.modern-theme .site-footer form .form-control-sm {
    font-size: 0.8rem;
}

/* ---- Progress/match bars: blue fill only ---- */
body.modern-theme .match-bar-fill,
body.modern-theme .progress-bar {
    background: var(--mt-blue) !important;
}

body.modern-theme .stat-value, body.modern-theme .stat-number {
    color: var(--mt-black) !important;
}
