/* ============================================================
   PROFILE PAGE
============================================================ */

.profile-page {
    min-height: 650px;
    background: var(--page-background);
}

/* ============================================================
   PROFILE HEADER
============================================================ */

.profile-header-section {
    padding: 42px 0;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--header),
            var(--header-light)
        );
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile-avatar {
    display: flex;
    flex: 0 0 150px;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 5px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    color: var(--header);
    background: #ffffff;
    font-size: 3.2rem;
    font-weight: 800;
}

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

.profile-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.profile-kicker {
    display: block;
    margin-bottom: 5px;
    color: #c8edf5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.profile-heading h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.profile-role {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 30px;
    color: #ffffff;
    background: rgb(255 255 255 / 13%);
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-role-admin,
.profile-role-administrator,
.profile-role-sysop,
.profile-role-owner {
    color: #fff4c2;
    background: rgb(92 61 0 / 25%);
}

.profile-role-moderator,
.profile-role-staff {
    color: #d8f5ff;
    background: rgb(0 54 73 / 28%);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 14px;
    color: #d9edf2;
    font-size: 0.9rem;
}

.profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.profile-status-warning {
    color: #ffe0a3;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.profile-header-section .primary-button {
    color: var(--header);
    background: #ffffff;
}

.profile-header-section .secondary-button {
    border-color: rgb(255 255 255 / 45%);
    color: #ffffff;
    background: transparent;
}

/* ============================================================
   CONTENT LAYOUT
============================================================ */

.profile-content {
    padding-top: 34px;
    padding-bottom: 70px;
}

.profile-content-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        310px;
    gap: 24px;
}

.profile-main-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================
   PROFILE PANELS
============================================================ */

.profile-panel,
.profile-sidebar-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
}

.profile-panel {
    padding: 24px;
}

.profile-panel-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.profile-panel-icon {
    display: flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 4px;
    color: #ffffff;
    background: var(--header-light);
}

.profile-panel-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-panel-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
}

.profile-about-text {
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.profile-empty-content {
    padding: 25px;
    border: 1px dashed var(--border-dark);
    border-radius: 4px;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface-muted);
}

.profile-empty-content i {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 1.7rem;
}

.profile-empty-content p {
    margin: 0;
}

/* ============================================================
   RADIO STATION
============================================================ */

.profile-station {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-muted);
}

.profile-station-logo {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--header-light),
            var(--header)
        );
    font-size: 1.7rem;
}

.profile-station-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-station-information {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-station-information strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-station-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.profile-station-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-station-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-station-play,
.profile-station-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 8px 12px;
    border-radius: 3px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-station-play {
    border: 1px solid var(--header-light);
    color: #ffffff;
    background: var(--header-light);
    cursor: pointer;
}

.profile-station-play:hover {
    background: var(--header);
}

.profile-station-website {
    border: 1px solid var(--border-dark);
    color: var(--text);
    background: var(--surface);
}

/* ============================================================
   SIDEBAR
============================================================ */

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-sidebar-card {
    padding: 20px;
}

.profile-sidebar-card h2 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 1.1rem;
}

.profile-details-list {
    margin: 0;
}

.profile-details-list > div {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.profile-details-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-details-list > div:last-child {
    padding-bottom: 0;
}

.profile-details-list dt {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-details-list dd {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.profile-community-card {
    text-align: center;
}

.profile-community-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--header-light);
    font-size: 1.3rem;
}

.profile-community-card p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   NOT FOUND
============================================================ */

.profile-not-found {
    padding: 75px 0;
}

.profile-not-found-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 50px 25px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    background: var(--surface);
}

.profile-not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 19px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--header-light);
    font-size: 1.9rem;
}

.profile-not-found-card h1 {
    margin: 0 0 10px;
    color: var(--text);
}

.profile-not-found-card p {
    margin: 0 0 23px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .profile-header-section {
        padding: 34px 0;
    }

    .profile-header-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-avatar {
        flex-basis: 115px;
        width: 115px;
        height: 115px;
        font-size: 2.4rem;
    }

    .profile-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-actions > * {
        width: 100%;
    }

    .profile-station {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-station-information {
        min-width: calc(100% - 96px);
    }

    .profile-station-actions {
        width: 100%;
    }

    .profile-station-actions > * {
        flex: 1 1 auto;
    }

    .profile-sidebar {
        display: flex;
    }
}