﻿/* =========================
   My - Profile
   Display view
   ========================= */

.botc-profile-card {
    background: rgba(250, 245, 255, 0.88);
    border: 1px solid var(--botc-border-soft);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(37, 25, 70, 0.12);
}

.botc-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.botc-profile-title {
    color: var(--botc-text-main);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

.botc-profile-email {
    color: var(--botc-text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.botc-profile-edit-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.botc-profile-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.botc-profile-photo-wrap {
    display: flex;
    justify-content: flex-start;
}

.botc-profile-photo-box {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--botc-border-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 25, 70, 0.05);
}

    .botc-profile-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* INFO */

.botc-profile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.botc-profile-field {
    min-width: 0;
}

.botc-profile-field-wide {
    grid-column: 1 / -1;
}

.botc-profile-label {
    color: var(--botc-text-main);
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.botc-profile-value {
    min-height: 38px;
    background: #f1eef8;
    border: 1px solid rgba(120, 93, 160, 0.22);
    border-radius: 0.45rem;
    color: var(--botc-text-main);
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
}

.botc-profile-section-title {
    color: var(--botc-text-main);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

/* FAVORITE ROLES */

.botc-fav-roles {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 1rem;
}

.botc-fav-role-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--botc-border-soft);
    border-radius: 1rem;
    padding: 0.9rem 0.8rem 0.75rem;
    box-shadow: 0 6px 18px rgba(37, 25, 70, 0.05);
    text-align: center;
}

.botc-fav-role-logo {
    width: 76px;
    height: 76px;
    border-radius: 0.9rem;
    border: 1px solid var(--botc-border-soft);
    background: #faf6ff;
    color: var(--botc-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    overflow: hidden;
    font-weight: 800;
}

    .botc-fav-role-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
    }

.botc-fav-role-name {
    font-weight: 900;
    color: var(--botc-text-main);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.botc-fav-role-type {
    color: var(--botc-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

/* TABLET */

@media (max-width: 992px) {
    .botc-profile-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .botc-profile-photo-wrap {
        justify-content: center;
    }

    .botc-profile-photo-box {
        width: 220px;
        height: 220px;
    }

    .botc-fav-roles {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

/* MOBILE */

@media (max-width: 576px) {
    .botc-hero.botc-narrow {
        margin-top: 0.5rem !important;
    }

    .botc-profile-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .botc-profile-head {
        flex-direction: column;
        align-items: stretch;
    }

    .botc-profile-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .botc-profile-email {
        text-align: center;
    }

    .botc-profile-edit-btn {
        width: 100%;
        justify-content: center;
    }

    .botc-profile-photo-box {
        width: min(240px, 78vw);
        height: min(240px, 78vw);
    }

    .botc-profile-info {
        grid-template-columns: 1fr;
    }

    .botc-profile-field-wide {
        grid-column: auto;
    }

    .botc-profile-value {
        min-height: 42px;
    }

    .botc-fav-roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .botc-fav-role-card {
        padding: 0.8rem 0.65rem 0.7rem;
    }

    .botc-fav-role-logo {
        width: 68px;
        height: 68px;
        border-radius: 0.8rem;
    }

    .botc-fav-role-name {
        font-size: 0.92rem;
    }

    .botc-fav-role-type {
        font-size: 0.82rem;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {
    .botc-fav-roles {
        grid-template-columns: 1fr;
    }
}


/* =========================
   My - Edit Profile
   ========================= */

.botc-profile-edit-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.botc-profile-photo-button {
    width: 240px;
    height: 240px;
    border-radius: 1rem;
    border: 1px solid var(--botc-border-soft);
    padding: 0;
    overflow: hidden;
    background: #fff;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 25, 70, 0.05);
}

    .botc-profile-photo-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.18s ease, filter 0.18s ease;
    }

.botc-profile-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 14, 42, 0.52);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.18s ease;
    text-align: center;
    padding: 1rem;
}

    .botc-profile-photo-overlay i {
        font-size: 1.65rem;
    }

.botc-profile-photo-button:hover img {
    transform: scale(1.04);
    filter: blur(1px);
}

.botc-profile-photo-button:hover .botc-profile-photo-overlay {
    opacity: 1;
}

.botc-profile-value-locked {
    opacity: 0.88;
}

.botc-profile-help {
    margin-top: -0.45rem;
    color: var(--botc-text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.botc-profile-input {
    background-color: #fff;
    border: 1px solid rgba(120, 93, 160, 0.28);
    color: var(--botc-text-main);
}

    .botc-profile-input:focus {
        border-color: rgba(99, 62, 160, 0.6);
        box-shadow: 0 0 0 0.2rem rgba(99, 62, 160, 0.12);
    }

.botc-required-star {
    color: #c82333;
    font-weight: 900;
    margin-left: 0.15rem;
}

.botc-public-profile-settings {
    background: rgba(241, 238, 248, 0.65);
    border: 1px solid rgba(120, 93, 160, 0.16);
    border-radius: 0.85rem;
    padding: 1rem;
}

.botc-public-profile-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.botc-public-profile-options .form-check-label {
    color: var(--botc-text-main);
}

.botc-fav-role-button {
    cursor: pointer;
    border: 1px solid var(--botc-border-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

    .botc-fav-role-button:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 62, 160, 0.35);
        box-shadow: 0 10px 22px rgba(37, 25, 70, 0.11);
    }

.botc-role-picker-modal {
    border-radius: 1rem;
    border: 1px solid var(--botc-border-soft);
    overflow: hidden;
}

.botc-role-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.botc-role-picker-row {
    border: 1px solid rgba(120, 93, 160, 0.18);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.55rem 0.65rem;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 0.45rem;
    align-items: center;
    text-align: left;
    color: var(--botc-text-main);
    transition: background 0.14s ease, border-color 0.14s ease;
}

    .botc-role-picker-row:hover {
        background: #faf6ff;
        border-color: rgba(99, 62, 160, 0.34);
    }

.botc-role-picker-logo {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

    .botc-role-picker-logo img {
        width: 15px;
        height: 15px;
        object-fit: contain;
        display: block;
    }

.botc-role-picker-bg {
    min-width: 0;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.botc-role-picker-en {
    min-width: 0;
    color: var(--botc-text-muted);
    font-size: 0.82rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Mobile edit */

@media (max-width: 992px) {
    .botc-profile-photo-button {
        width: 220px;
        height: 220px;
    }

    .botc-role-picker-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .botc-profile-edit-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .botc-profile-photo-button {
        width: min(240px, 78vw);
        height: min(240px, 78vw);
    }

    .botc-profile-photo-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(22, 14, 42, 0.62), rgba(22, 14, 42, 0.08) );
        justify-content: flex-end;
        font-size: 0.9rem;
    }

    .botc-role-picker-row {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .botc-public-profile-options {
        grid-template-columns: 1fr;
    }

    .botc-role-picker-en {
        grid-column: 2;
    }
}
