/* ===============================================
   Person Profile Block Styles
   Using Kredlo Design System - Based on Emil Daugaard design
   =============================================== */

.person-profile-section {
    padding: 0 0 118px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.person-profile-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* =================================================================
   CONTENT COLUMN (Left Side)
   ================================================================= */
.person-profile-section__content-wrapper {
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header with name and role */
.person-profile-section__header {
    margin-bottom: 0;
}

.person-profile-section__name {
    /* Using .h1 styles from design system */
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 50px;
    line-height: 61px;
    letter-spacing: 0px;
    color: #000233;
    margin: 0 0 16px 0;
}

.person-profile-section__role {
    /* Using design system variables for consistent styling */
    font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0px;
    margin: 0;
}

/* Main content area */
.person-profile-section__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.person-profile-section__biography,
.person-profile-section__education,
.person-profile-section__other-assignments {
    margin-bottom: 0;
}

.person-profile-section__biography p,
.person-profile-section__education p,
.person-profile-section__other-assignments p {
    /* Using .bröd styles from design system */
    font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0px;
    color: #000233;
    margin: 0 0 16px 0;
}

.person-profile-section__biography p:last-child,
.person-profile-section__education p:last-child,
.person-profile-section__other-assignments p:last-child {
    margin-bottom: 0;
}

/* Section titles for education and other assignments */
.person-profile-section__section-title {
    /* Using .h6 styles from design system */
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0px;
    color: #000233;
    margin: 0 0 12px 0;
}

/* =================================================================
   IMAGE COLUMN (Right Side)
   ================================================================= */
.person-profile-section__image-wrapper {
    position: relative;
}

.person-profile-section__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.person-profile-section__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.person-profile-section__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: #F2EAE2; /* Using --beige from design system */
    border: 2px dashed #A5A8A9; /* Using --ljusgrå from design system */
    border-radius: 12px;
    color: #868B8C; /* Using --grå from design system */
}

.person-profile-section__image-placeholder .placeholder-content {
    text-align: center;
}

.person-profile-section__image-placeholder p {
    margin: 12px 0 0 0;
    font-size: 14px;
    font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =================================================================
   RESPONSIVE DESIGN - matching other block patterns
   ================================================================= */

/* Large desktop - increase spacing */
@media (min-width: 1400px) {
    .person-profile-section__container {
        gap: 80px;
    }

    .person-profile-section__name {
        font-size: 56px;
        line-height: 68px;
    }
}

/* Desktop adjustments */
@media (max-width: 1200px) {
    .person-profile-section__container {
        gap: 60px;
    }

    .person-profile-section__name {
        font-size: 44px; /* Using .h2 size from design system */
        line-height: 54px;
    }
}

/* Tablet - stack vertically */
@media (max-width: 768px) {
    .person-profile-section__container {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }

    .person-profile-section__content-wrapper {
        gap: 24px;
        order: 2; /* Text below image on mobile */
        padding-top: 0;
    }

    .person-profile-section__image-wrapper {
        order: 1; /* Image above text on mobile */
    }

    .person-profile-section__name {
        line-height: 44px;
        margin-bottom: 12px;
        font-size: var(--font-size-44) !important;
        line-height: var(--line-height-54) !important;
    }

    .person-profile-section__role {
        font-size: 16px;
        line-height: 20px;
    }

    .person-profile-section__biography p,
    .person-profile-section__education p,
    .person-profile-section__other-assignments p {
        font-size: 15px;
        line-height: 20px;
    }

    .person-profile-section__section-title {
        font-size: 15px;
        line-height: 18px;
    }

    /* Adjust image on tablet */
    .person-profile-section__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .person-profile-section__image-placeholder {
        min-height: 300px;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .person-profile-section__container {
        gap: 32px;
    }

    .person-profile-section__content-wrapper {
        gap: 20px;
    }

    .person-profile-section__name {
        font-size: 28px; /* Using .h3 size from design system */
        line-height: 34px;
    }

    .person-profile-section__role {
        font-size: 15px;
        line-height: 19px;
    }

    .person-profile-section__biography p,
    .person-profile-section__education p,
    .person-profile-section__other-assignments p {
        font-size: 14px; /* Using design system mobile size */
        line-height: 20px;
    }

    .person-profile-section__section-title {
        font-size: 14px;
        line-height: 17px;
    }

    .person-profile-section__content {
        gap: 20px;
    }

    .person-profile-section__image-placeholder {
        min-height: 250px;
    }
}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .person-profile-section__name,
    .person-profile-section__section-title {
        color: #000000;
    }

    .person-profile-section__biography p,
    .person-profile-section__education p,
    .person-profile-section__other-assignments p {
        color: #333333;
    }

    .person-profile-section__image {
        border: 1px solid #000000;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .person-profile-section__image img {
        transition: none;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .person-profile-section {
        background: white !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .person-profile-section__container {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .person-profile-section__name,
    .person-profile-section__section-title {
        color: black !important;
    }

    .person-profile-section__biography p,
    .person-profile-section__education p,
    .person-profile-section__other-assignments p,
    .person-profile-section__role {
        color: black !important;
    }

    .person-profile-section__image {
        box-shadow: none !important;
        max-width: 300px;
    }
}
