/* ============================================================================
   Biography / Developer Portfolio — AMI Global Theme Bridge
   Loaded after biography-professional.css
   ========================================================================== */

body.biography-page {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Header uses brand gradient */
body.biography-page .bio-header {
    background: var(--ami-grad-hero) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 8px 24px rgba(var(--ami-brand-deep-rgb), 0.35) !important;
}

body.biography-page .bio-hero {
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%, rgba(var(--ami-brand-rgb), 0.28), transparent 55%),
        radial-gradient(ellipse 50% 45% at 85% 30%, rgba(var(--ami-accent-rgb), 0.18), transparent 50%),
        var(--bio-gradient-dark) !important;
}

/* Replace fixed SVG pattern with brand-tinted grid */
body.biography-page .bio-hero::before {
    background-image:
        linear-gradient(rgba(var(--ami-brand-rgb), 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ami-brand-rgb), 0.07) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    background-color: transparent !important;
    opacity: 0.55;
}

body.biography-page .bio-shape {
    background: var(--ami-grad-brand) !important;
}

body.biography-page .bio-card-header {
    background: var(--ami-grad-brand) !important;
}

body.biography-page .bio-card {
    border-color: rgba(var(--ami-brand-rgb), 0.10) !important;
    box-shadow: var(--ami-sh-sm) !important;
}

body.biography-page .bio-card:hover {
    box-shadow: var(--ami-sh-lg) !important;
    border-color: rgba(var(--ami-brand-rgb), 0.22) !important;
}

body.biography-page .bio-social-link:hover,
body.biography-page .bio-contact-icon,
body.biography-page .bio-cert-icon,
body.biography-page .bio-status-badge {
    background: var(--ami-brand-600) !important;
}

body.biography-page .bio-profile-ring {
    background: conic-gradient(
        from 0deg,
        var(--ami-brand-500),
        var(--ami-accent),
        var(--ami-brand-300),
        var(--ami-brand-500)
    ) !important;
}

body.biography-page .bio-footer {
    background: var(--bio-gradient-dark) !important;
}

body.biography-page .bio-footer a:hover {
    color: var(--ami-brand-300) !important;
}

/* Theme controls — same style as login */
body.biography-page .bio-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: var(--bio-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.biography-page .bio-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(180deg) scale(1.08);
}

body.biography-page #theme-icon-light {
    display: none;
    color: #ffc107;
}

body.biography-page #theme-icon-dark {
    display: block;
    color: #a0c4ff;
}

body.biography-page #theme-icon-appearance {
    display: block;
    color: #b8a4ff;
}

[data-bs-theme="dark"] body.biography-page #theme-icon-dark {
    display: none;
}

[data-bs-theme="dark"] body.biography-page #theme-icon-light {
    display: block;
}

body.biography-page #amiThemePanel {
    z-index: 10050;
}
