/* Profile Component Styles */

/* ============================================================================
   CSS Custom Properties for HCCC Institutional Theming
   ============================================================================ */
:root {
    /* Default theme colors */
    --profile-bg: #ffffff;
    --profile-color: #333333;
    --profile-sidebar-bg: #f8f9fa;
    --profile-sidebar-border: #e0e0e0;
    --profile-label-color: #555555;
    --profile-content-color: #333333;  /* Sidebar text color */
    --profile-biography-color: #333333;  /* Biography text color */
    --profile-link-color: #00857a;
    --profile-link-hover: #2b3990;
    --profile-cert-bg: #e9ecef;
    --profile-cert-hover: #dee2e6;
    --profile-quote-border: #00857a;

    /* Layout properties */
    --profile-padding: 2rem;
    --profile-gap: 1.5rem;
    --profile-border-radius: 4px;
    --profile-sidebar-width: 400px;
    --profile-section-spacing: 1rem;

    /* Typography */
    --profile-font-family: "Montserrat", Arial, Helvetica, sans-serif;
    --profile-font-size: 16px;
    --profile-line-height: 1.6;
    --profile-label-weight: 700;
    --profile-heading-weight: 800;

    /* Transitions */
    --profile-transition: all 0.3s ease;

    /* Accessibility */
    --profile-focus-color: #0066cc;
}

/* ============================================================================
   HCCC Institutional Theme Variations
   ============================================================================ */

/* HCCC Primary Theme (Teal) */
.profile-component--theme-hccc-primary {
    --profile-sidebar-bg: #00857a;
    --profile-sidebar-border: #006b5e;
    --profile-label-color: #ffffff;
    --profile-content-color: #ffffff;  /* Only applies to sidebar */
    --profile-link-color: #fff200;
    --profile-link-hover: #ffffff;
    --profile-cert-bg: #006b5e;
    --profile-cert-hover: #005548;
    --profile-quote-border: #fff200;
    --profile-biography-color: #333333;  /* Biography text always dark */
}

/* HCCC Secondary Theme (Blue) */
.profile-component--theme-hccc-secondary {
    --profile-sidebar-bg: #2b3990;
    --profile-sidebar-border: #1d2974;
    --profile-label-color: #ffffff;
    --profile-content-color: #ffffff;  /* Only applies to sidebar */
    --profile-link-color: #fff200;
    --profile-link-hover: #ffffff;
    --profile-cert-bg: #1d2974;
    --profile-cert-hover: #141e5c;
    --profile-quote-border: #fff200;
    --profile-biography-color: #333333;  /* Biography text always dark */
}

/* HCCC Accent Theme (Yellow Highlights) */
.profile-component--theme-hccc-accent {
    --profile-sidebar-bg: #f8f9fa;
    --profile-sidebar-border: #fff200;
    --profile-label-color: #333333;
    --profile-content-color: #333333;  /* Sidebar text */
    --profile-biography-color: #333333;  /* Biography text */
    --profile-link-color: #00857a;
    --profile-link-hover: #2b3990;
    --profile-cert-bg: #fff200;
    --profile-cert-hover: #e6dc00;
    --profile-quote-border: #fff200;
}

/* Light Theme */
.profile-component--theme-light {
    --profile-sidebar-bg: #f8f9fa;
    --profile-sidebar-border: #e0e0e0;
    --profile-label-color: #555555;
    --profile-content-color: #333333;  /* Sidebar text */
    --profile-biography-color: #333333;  /* Biography text */
}

/* Dark Theme */
.profile-component--theme-dark {
    --profile-bg: #1a1a1a;
    --profile-color: #ffffff;
    --profile-sidebar-bg: #2d2d2d;
    --profile-sidebar-border: #404040;
    --profile-label-color: #cccccc;
    --profile-content-color: #ffffff;  /* Sidebar text */
    --profile-cert-bg: #404040;
    --profile-cert-hover: #4d4d4d;
    --profile-biography-color: #ffffff;  /* Biography also white on dark theme */
}

/* ============================================================================
   Component Structure
   ============================================================================ */

.profile-component {
    font-family: var(--profile-font-family);
    font-size: var(--profile-font-size);
    line-height: var(--profile-line-height);
    background-color: var(--profile-bg);
    color: var(--profile-color);
    margin: 2rem 0;
}

.profile-component__header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-component__header .section__header {
    margin: 0;
    font-size: 2rem;
    font-weight: var(--profile-heading-weight);
    color: var(--profile-content-color);
}

/* ============================================================================
   Profile Container (Two-Column Layout)
   ============================================================================ */

.profile-container {
    display: flex;
    gap: var(--profile-gap);
    align-items: flex-start;
}

/* ============================================================================
   Profile Sidebar (Information Column)
   ============================================================================ */

.profile-sidebar {
    flex: 0 0 var(--profile-sidebar-width);
    min-width: 300px;
    background-color: var(--profile-sidebar-bg);
    border: 1px solid var(--profile-sidebar-border);
    border-radius: var(--profile-border-radius);
    padding: var(--profile-padding);
}

/* Info Section Container */
.profile-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--profile-section-spacing);
    padding-bottom: var(--profile-section-spacing);
    border-bottom: 1px solid var(--profile-sidebar-border);
}

.profile-info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Info Labels */
.profile-info-label {
    font-weight: var(--profile-label-weight);
    font-size: 0.95rem;
    color: var(--profile-label-color);
    margin-bottom: 0.25rem;
}

/* Info Content */
.profile-info-content {
    font-size: 0.95rem;
    color: var(--profile-content-color);
    line-height: 1.5;
}

/* ============================================================================
   Certifications Styling
   ============================================================================ */

.profile-certifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-cert-item {
    display: inline-block;
    background-color: var(--profile-cert-bg);
    color: var(--profile-content-color);
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    transition: var(--profile-transition);
    border: 1px solid transparent;
}

.profile-cert-item:hover {
    background-color: var(--profile-cert-hover);
    transform: translateY(-1px);
}

/* ============================================================================
   Favorite Quote Styling
   ============================================================================ */

.profile-quote {
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid var(--profile-quote-border);
    color: var(--profile-content-color);
}

/* ============================================================================
   Profile Content (Biography Column)
   ============================================================================ */

.profile-content {
    flex: 1;
    min-width: 0; /* Prevent flex item overflow */
}

.profile-content__heading {
    font-size: 1.5rem;
    font-weight: var(--profile-heading-weight);
    color: var(--profile-biography-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.profile-biography {
    color: var(--profile-biography-color);
}

.profile-biography p {
    margin-bottom: 1rem;
    line-height: 1.67;
    color: var(--profile-biography-color);
}

.profile-biography p:last-child {
    margin-bottom: 0;
}

/* Links in biography */
.profile-biography a {
    color: var(--profile-link-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--profile-transition);
}

.profile-biography a:hover {
    color: var(--profile-link-hover);
    text-decoration: underline;
}

/* Lists in biography */
.profile-biography ul,
.profile-biography ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.profile-biography li {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   Layout Variations
   ============================================================================ */

/* Single column layout */
.profile-component--layout-single-column .profile-container {
    flex-direction: column;
}

.profile-component--layout-single-column .profile-sidebar {
    flex: 1;
    width: 100%;
    max-width: none;
}

/* Sidebar right positioning */
.profile-component--sidebar-right .profile-container {
    flex-direction: row-reverse;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet breakpoint */
@media (max-width: 1023px) {
    :root {
        --profile-sidebar-width: 320px;
        --profile-padding: 1.5rem;
        --profile-gap: 1.25rem;
    }

    .profile-component__header .section__header {
        font-size: 1.75rem;
    }

    .profile-content__heading {
        font-size: 1.35rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    :root {
        --profile-padding: 1rem;
        --profile-gap: 1rem;
        --profile-font-size: 15px;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .profile-component__header .section__header {
        font-size: 1.5rem;
    }

    .profile-content__heading {
        font-size: 1.25rem;
    }

    /* Stack certifications vertically on mobile */
    .profile-certifications-list {
        flex-direction: column;
    }

    .profile-cert-item {
        display: block;
        text-align: center;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    :root {
        --profile-padding: 0.75rem;
        --profile-font-size: 14px;
    }

    .profile-info-label {
        font-size: 0.875rem;
    }

    .profile-info-content {
        font-size: 0.875rem;
    }
}

/* ============================================================================
   Accessibility Features
   ============================================================================ */

/* Focus indicators */
.profile-component a:focus,
.profile-cert-item:focus {
    outline: 2px solid var(--profile-focus-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-sidebar {
        border: 2px solid currentColor;
    }

    .profile-info-section {
        border-bottom: 2px solid currentColor;
    }

    .profile-cert-item {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .profile-cert-item {
        transition: none;
    }

    .profile-cert-item:hover {
        transform: none;
    }

    .profile-biography a {
        transition: none;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    .profile-component {
        background: transparent !important;
        color: #000 !important;
    }

    .profile-sidebar {
        background: transparent !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
    }

    .profile-info-label,
    .profile-info-content {
        color: #000 !important;
    }

    .profile-cert-item {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }

    .profile-biography a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .profile-biography a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-style: italic;
    }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visually hidden but accessible */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
