/* =====================================================
   ROI'S OC ARCHIVE — INDIVIDUAL CHARACTER FILE
   ===================================================== */

.profile-page {
    margin-top: 30px;
}

.profile-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0;
}

.profile-ref {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 28px;

    background:
        radial-gradient(
            circle at center,
            rgba(100,85,145,0.13),
            transparent 70%
        );

    border-right: 1px solid #3d394c;
}

.profile-ref img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.profile-details {
    padding: 28px 22px;
}

.profile-details h1 {
    margin-bottom: 5px;
}

.profile-alias {
    margin-top: 0;
    color: #807891;
    font-size: 12px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 18px 0;
}

.profile-tag {
    padding: 3px 7px;
    border: 1px solid #504963;
    color: #9a91ad;
    font-size: 9px;
}

.profile-section {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #393447;
}

.profile-section h2 {
    margin-bottom: 7px;
    font-size: 17px;
}

.profile-section p {
    color: #aaa2b8;
    font-size: 12px;
}

.profile-link {
    display: inline-block;
    margin-top: 16px;
    color: #c8bfdd;
    font-size: 11px;
}

.profile-link:hover {
    color: white;
}

.profile-error {
    text-align: center;
}

.profile-error h1 {
    font-size: 28px;
}


/* =========================================================
   RELATIONSHIP SECTION
   ========================================================= */

/*
   Each relationship is now structured like this:

   [ ICON ]   Character Name

   relationship role

   relationship description...

   The role + description sit underneath the
   ENTIRE icon/name row.
*/


.relationship-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* =====================================================
   INDIVIDUAL RELATIONSHIP
   ===================================================== */

.relationship-item {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0 0 25px;

    border-bottom: 1px solid #393447;
}


/*
   Remove the divider from the final relationship
   in each category.
*/

.relationship-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


/* =====================================================
   ICON + CHARACTER NAME ROW
   ===================================================== */

.relationship-character-row {
    display: flex;

    align-items: center;

    gap: 18px;

    width: 100%;
}


/* =====================================================
   RELATIONSHIP ICON
   ===================================================== */

.relationship-icon-link {
    display: block;

    width: 100px;
    height: 100px;

    min-width: 100px;
    flex-shrink: 0;

    overflow: hidden;

    text-decoration: none;
}


.relationship-icon {
    display: block;

    width: 100px !important;
    height: 100px !important;

    min-width: 100px !important;
    min-height: 100px !important;

    max-width: 100px !important;
    max-height: 100px !important;

    object-fit: cover;

    image-rendering: pixelated;

    border: 1px solid #595271;
}


.relationship-icon-link:hover .relationship-icon {
    border-color: #9c92bc;
}


/* =====================================================
   MISSING CHARACTER ICON
   ===================================================== */

.relationship-icon-missing {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    min-width: 100px;
    min-height: 100px;

    background: #151522;

    border: 1px solid #514b69;

    color: #77708b;

    font-size: 24px;
}


/* =====================================================
   CHARACTER NAME
   =====================================================

   The name stays to the RIGHT of the icon.

   It is the same size as the profile section headers.
   ===================================================== */

.relationship-character-name {
    display: block;

    margin: 0;

    color: #ddd3f3;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 21px;

    font-weight: normal;

    line-height: 1.3;

    letter-spacing: 0.06em;

    text-align: left;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        color 0.15s;
}


.relationship-character-name:hover {
    color: #f1edff;

    text-decoration: underline;
}


/* =====================================================
   RELATIONSHIP NEWSPAPER CONTENT
   =====================================================

   This sits underneath BOTH the icon and name.
   ===================================================== */

.relationship-content {
    display: block;

    width: 100%;

    margin-top: 3px;

    min-width: 0;
}


/* =====================================================
   RELATIONSHIP ROLE
   ===================================================== */

.relationship-type {
    margin: 0 0 4px;

    color: #e7e2f3;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 16px;

    font-weight: normal;

    line-height: 1.5;

    text-transform: lowercase;
}


/* =====================================================
   RELATIONSHIP DESCRIPTION
   ===================================================== */

.relationship-note {
    margin: 0;

    color: #c6c0d8;

    font-size: 16px;

    line-height: 1.7;

    white-space: pre-line;
}


/* =====================================================
   RELATIONSHIP CATEGORY
   ===================================================== */

.relationship-group {
    margin-bottom: 30px;
}


.relationship-group-title {
    margin:
        0
        0
        15px;

    color: #c2b9dc;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 16px;

    font-weight: normal;

    line-height: 1.5;
}


/* =====================================================
   RELATIONSHIP CATEGORY SPACING
   ===================================================== */

.relationship-romantic,
.relationship-family,
.relationship-social,
.relationship-other {
    width: 100%;
}


/* =====================================================
   RELATIONSHIP CONTAINER
   ===================================================== */

.relationships-container {
    width: 100%;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 750px) {

    .profile-main {
        grid-template-columns: 1fr;
    }

    .profile-ref {
        border-right: 0;
        border-bottom: 1px solid #3d394c;
        padding: 18px;
    }

    .profile-details {
        padding: 22px 18px;
    }


    /* -----------------------------------------------
       Relationship icon + name remain side-by-side
       ----------------------------------------------- */

    .relationship-character-row {
        gap: 14px;
    }


    .relationship-character-name {
        font-size: 19px;
    }


    .relationship-content {
        margin-top: 15px;
    }


    .relationship-type {
        font-size: 15px;
    }


    .relationship-note {
        font-size: 15px;
    }

}