﻿/* =========================
   EVENTIFY PROFILE
========================= */

.profile-page {
    width: 100%;
    min-height: calc(100vh - 72px);
    padding: 26px 30px 60px;
    box-sizing: border-box;
    background: #f8f9fc;
    color: #111827;
    font-family: "Poppins", sans-serif;
}

.profile-page-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


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

.profile-sidebar {
    min-height: 720px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.profile-sidebar-nav {
    display: grid;
    gap: 5px;
}

.profile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 11px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

    .profile-sidebar-link i {
        width: 18px;
        color: #4b5563;
        font-size: 15px;
        text-align: center;
    }

    .profile-sidebar-link:hover {
        background: #faf8ff;
        color: #7c3aed;
    }

        .profile-sidebar-link:hover i {
            color: #7c3aed;
        }

    .profile-sidebar-link.is-active {
        background: #f4efff;
        color: #7c3aed;
        font-weight: 600;
    }

        .profile-sidebar-link.is-active i {
            color: #7c3aed;
        }

.profile-sidebar-divider {
    height: 1px;
    margin: 15px 7px;
    background: #e5e7eb;
}


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

.profile-sidebar-promo {
    margin-top: 14px;
    padding: 18px 13px 14px;
    border-radius: 14px;
    background: linear-gradient( 145deg, #fbf9ff 0%, #f4efff 100%);
}

.profile-sidebar-promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 22px;
}

.profile-sidebar-promo strong {
    display: block;
    margin-bottom: 9px;
    color: #5b21b6;
    font-size: 15px;
    line-height: 1.35;
}

.profile-sidebar-promo p {
    margin: 0 0 15px;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.55;
}

.profile-sidebar-promo a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 9px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

    .profile-sidebar-promo a:hover {
        background: #6d28d9;
    }


/* =========================
   MAIN CONTENT
========================= */

.profile-content {
    min-width: 0;
}


/* =========================
   SUCCESS MESSAGE
========================= */

.profile-success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 10px;
    font-weight: 500;
}


/* =========================
   PROFILE HERO
========================= */

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 190px;
    padding: 26px 28px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: linear-gradient( 120deg, #ffffff 0%, #ffffff 55%, #f8f5ff 100%);
}

.profile-hero-decoration {
    position: absolute;
    inset: 0 0 0 52%;
    overflow: hidden;
    pointer-events: none;
}

    .profile-hero-decoration span {
        position: absolute;
        border-radius: 50%;
        background: rgba(124, 58, 237, 0.055);
    }

        .profile-hero-decoration span:nth-child(1) {
            width: 450px;
            height: 130px;
            top: -15px;
            right: -40px;
            transform: rotate(-8deg);
        }

        .profile-hero-decoration span:nth-child(2) {
            width: 360px;
            height: 105px;
            top: 80px;
            right: 100px;
            transform: rotate(9deg);
        }

        .profile-hero-decoration span:nth-child(3) {
            width: 250px;
            height: 80px;
            right: -20px;
            bottom: -15px;
        }

.profile-avatar-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 126px;
    height: 126px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #d1d5db, 0 8px 20px rgba(17, 24, 39, 0.08);
}

.profile-identity {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .profile-name-row h1 {
        margin: 0;
        color: #111827;
        font-size: 31px;
        font-weight: 750;
        line-height: 1.2;
        min-width: 0;
        overflow-wrap: anywhere;
    }

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1eaff;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 600;
}

    .profile-role-badge i {
        font-size: 9px;
    }


.profile-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin-top: 10px;
    color: #6b7280;
    font-size: 12px;
}

    .profile-location i {
        flex-shrink: 0;
        color: #6b7280;
        line-height: 1.6;
    }

    .profile-location > span {
        display: block;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.6;
    }


    .profile-location i {
        color: #6b7280;
    }


.profile-hero-bio {
    max-width: 100%;
    margin: 13px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-line;
}


.profile-placeholder-text {
    color: #9ca3af;
    font-style: italic;
}

.profile-edit-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 125px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 9px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease;
}

    .profile-edit-button:hover {
        background: #6d28d9;
    }


/* =========================
   ABOUT CARD
========================= */

.profile-about-card {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #ffffff;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.profile-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 13px;
}

.profile-section-header h2 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
}



/* About: categories (70%) and account date (30%). */
.profile-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(180px, 3fr);
    align-items: stretch;
}

.profile-about-block {
    min-width: 0;
    min-height: 100px;
}

.profile-category-block {
    padding: 0 23px 0 0;
    border-right: 1px solid #e5e7eb;
}

.profile-member-since-block {
    padding: 0 0 0 23px;
    border: 0;
}

.profile-about-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #111827;
    font-size: 11px;
    font-weight: 650;
}

    .profile-about-label i {
        width: 18px;
        color: #6b7280;
        font-size: 14px;
        text-align: center;
    }

.profile-empty-value {
    color: #9ca3af !important;
    font-style: italic;
}


.profile-about-block > p {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.65;
}

/* =========================
   CATEGORIES
========================= */

.profile-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .profile-category-list span {
        padding: 6px 11px;
        border-radius: 999px;
        background: #f3edff;
        color: #7c3aed;
        font-size: 10px;
        font-weight: 500;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

.profile-category-more {
    background: #ede9fe !important;
    color: #6d28d9 !important;
    font-weight: 700 !important;
}


/* =========================
   MEMBER SINCE
========================= */

.profile-member-date {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
}

.profile-member-caption {
    color: #6b7280 !important;
}


/* =========================
   PROFILE PREVIEW GRID
========================= */

.profile-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.profile-preview-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #ffffff;
}

.profile-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 41px;
    margin-bottom: 14px;
}

.profile-preview-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #7c3aed;
    font-size: 8px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.profile-preview-header h2 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.profile-preview-header > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    margin-top: 9px;
    color: #7c3aed;
    font-size: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

    .profile-preview-header > a:hover {
        color: #6d28d9;
    }


/* =========================
   PREVIEW LIST
========================= */

.profile-preview-list {
    display: grid;
}

.profile-preview-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 13px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 0;
    border-bottom: 1px solid #f0f1f3;
    color: inherit;
    text-decoration: none;
}

    .profile-preview-item:first-child {
        padding-top: 2px;
    }

    .profile-preview-item:last-child {
        padding-bottom: 2px;
        border-bottom: none;
    }

.profile-preview-thumbnail {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 11px;
    background: #f3f4f6;
}

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

.profile-preview-body {
    min-width: 0;
}

.profile-preview-title {
    display: block;
    overflow: hidden;
    margin: 0;
    color: #111827;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.profile-preview-body > p {
    overflow-wrap: anywhere;
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 6px;
    color: #6b7280;
    font-size: 8px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-preview-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #8b5cf6;
    font-size: 7.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .profile-preview-meta i {
        flex: 0 0 auto;
    }

.profile-preview-chevron {
    color: #c4b5fd;
    font-size: 9px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.profile-preview-item:hover
.profile-preview-chevron {
    color: #7c3aed;
    transform: translateX(2px);
}

.profile-preview-item:hover
.profile-preview-title {
    color: #7c3aed;
}


/* =========================
   DISCUSSION PREVIEW
========================= */

.profile-preview-discussion-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

    .profile-preview-discussion-heading
    .profile-preview-title {
        flex: 1;
        min-width: 0;
    }

.profile-preview-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: #f4efff;
    color: #7c3aed;
    font-size: 6.5px;
    font-weight: 600;
}


/* =========================
   PREVIEW EMPTY STATE
========================= */

.profile-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 215px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px dashed #ddd6fe;
    border-radius: 12px;
    background: #fcfaff;
    text-align: center;
}

    .profile-preview-empty > i {
        margin-bottom: 9px;
        color: #7c3aed;
        font-size: 21px;
    }

    .profile-preview-empty strong {
        margin-bottom: 4px;
        color: #111827;
        font-size: 10px;
    }

    .profile-preview-empty span {
        max-width: 220px;
        color: #6b7280;
        font-size: 8px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }


/* =========================
   DESKTOP / SMALL LAPTOP
========================= */

@media (max-width: 1050px) {

    .profile-preview-item {
        grid-template-columns: 60px minmax(0, 1fr) 10px;
    }

    .profile-preview-thumbnail {
        width: 60px;
        height: 60px;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .profile-page-layout {
        grid-template-columns: 175px minmax(0, 1fr);
    }

    .profile-hero {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-edit-button {
        grid-column: 2;
        justify-self: start;
    }
}


/* =========================
   SMALL TABLET
========================= */

@media (max-width: 820px) {

    .profile-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-page-layout {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 16px;
    }

    .profile-sidebar {
        padding: 10px;
    }

    .profile-hero {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-name-row h1 {
        font-size: 25px;
    }

    .profile-preview-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .profile-page {
        padding: 14px 10px 36px;
    }

    .profile-page-layout {
        display: block;
    }


    /* =========================
       MOBILE PROFILE NAV
    ========================= */

    .profile-sidebar {
        min-height: 0;
        margin-bottom: 14px;
        padding: 8px;
        overflow-x: auto;
        border-radius: 13px;
        scrollbar-width: none;
    }

        .profile-sidebar::-webkit-scrollbar {
            display: none;
        }

    .profile-sidebar-nav {
        display: flex;
        gap: 7px;
        width: max-content;
    }

    .profile-sidebar-link {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 13px;
        border-radius: 9px;
        white-space: nowrap;
    }

        .profile-sidebar-link span {
            font-size: 11px;
        }

    .profile-sidebar-divider,
    .profile-sidebar-promo {
        display: none;
    }


    /* =========================
       MOBILE HERO
    ========================= */

    .profile-hero {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        padding: 22px 16px;
        text-align: center;
    }

    .profile-hero-decoration {
        inset: 0;
        opacity: 0.75;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-name-row {
        justify-content: center;
        gap: 8px;
    }

        .profile-name-row h1 {
            width: 100%;
            font-size: 23px;
            line-height: 1.25;
        }

    .profile-role-badge {
        font-size: 10px;
    }

    .profile-location {
        justify-content: center;
        margin-top: 8px;
        font-size: 11px;
    }

    .profile-hero-bio {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.6;
    }

    .profile-edit-button {
        width: 100%;
        min-height: 42px;
        box-sizing: border-box;
    }


    /* =========================
       MOBILE ABOUT
    ========================= */

    .profile-about-card {
        margin-top: 12px;
        padding: 16px;
    }

    .profile-section-header {
        margin-bottom: 14px;
    }

        .profile-section-header h2 {
            font-size: 16px;
        }

    .profile-about-label {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .profile-category-list {
        gap: 6px;
    }

        .profile-category-list span {
            padding: 6px 9px;
            font-size: 9px;
        }


    /* =========================
       MOBILE PREVIEWS
    ========================= */

    .profile-preview-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .profile-preview-card {
        padding: 15px;
    }

    .profile-preview-header {
        min-height: 0;
        margin-bottom: 12px;
    }

        .profile-preview-header h2 {
            font-size: 14px;
        }

    .profile-preview-item {
        grid-template-columns: 62px minmax(0, 1fr) 10px;
        gap: 10px;
    }

    .profile-preview-thumbnail {
        width: 62px;
        height: 62px;
    }

    .profile-preview-empty {
        min-height: 170px;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 420px) {

    .profile-preview-header {
        align-items: center;
    }

    .profile-preview-item {
        grid-template-columns: 56px minmax(0, 1fr) 8px;
        gap: 9px;
    }

    .profile-preview-thumbnail {
        width: 56px;
        height: 56px;
        border-radius: 9px;
    }

    .profile-preview-title {
        font-size: 9px;
    }

    .profile-preview-body > p {
        font-size: 7.5px;
    }

    .profile-preview-type {
        display: none;
    }
}

/* =========================
   PUBLIC PROFILE
========================= */

.profile-content-public {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.profile-preview-private {
    grid-column: 1 / -1;
}


/* Public profile has no owner sidebar,
   so the main content can use the full width. */

@media (max-width: 820px) {

    .profile-content-public {
        width: 100%;
    }
}

/* =========================
   PUBLIC PROFILE VISITOR UI
========================= */

.profile-content-public {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.profile-public-context {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    padding: 10px 13px;
    border: 1px solid #e9e2ff;
    border-radius: 12px;
    background: #fbf9ff;
}

.profile-public-context-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 13px;
}

.profile-public-context strong {
    display: block;
    margin-bottom: 1px;
    color: #111827;
    font-size: 10px;
    font-weight: 650;
}

.profile-public-context span {
    display: block;
    color: #6b7280;
    font-size: 9px;
    line-height: 1.45;
}


/* Public hero has no Edit Profile button,
   so it only needs avatar + identity. */

.profile-hero-public {
    grid-template-columns: 140px minmax(0, 1fr);
}


/* =========================
   PRIVATE ACTIVITY STATE
========================= */

.profile-private-card {
    background: #ffffff;
}

.profile-private-state {
    border-color: #e5e7eb;
    background: #fafafa;
}

    .profile-private-state > i {
        color: #9ca3af;
    }

    .profile-private-state strong {
        color: #374151;
    }

    .profile-private-state span {
        color: #9ca3af;
    }


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .profile-hero-public {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}


/* =========================
   SMALL TABLET
========================= */

@media (max-width: 820px) {

    .profile-content-public {
        width: 100%;
    }

    .profile-hero-public {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .profile-public-context {
        margin-bottom: 10px;
        padding: 9px 11px;
    }

    .profile-public-context-icon {
        width: 32px;
        height: 32px;
    }

    .profile-public-context strong {
        font-size: 9px;
    }

    .profile-public-context span {
        font-size: 8px;
    }

    .profile-hero-public {
        display: flex;
    }
}

.organizer-profile-reviews {
    margin: 18px 0;
}

.organizer-profile-review-summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e5f4;
    border-radius: 10px;
}

    .organizer-profile-review-summary strong {
        color: #171d3e;
        font-size: 30px;
    }

        .organizer-profile-review-summary strong span {
            font-size: 16px;
            font-weight: 400;
        }

    .organizer-profile-review-summary > span,
    .organizer-profile-review-empty {
        color: #66708b;
    }

.organizer-profile-review {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #e7e9f3;
    color: inherit;
    text-decoration: none;
}

    .organizer-profile-review p {
        margin: 5px 0 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
    }

.organizer-profile-review-stars {
    margin-left: 8px;
    color: #f6a01a;
}

.organizer-profile-leave-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 14px;
    border: 1px solid #6236e8;
    border-radius: 8px;
    background: #6236e8;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .organizer-profile-leave-review:hover,
    .organizer-profile-leave-review:focus-visible {
        background: #5027d0;
        border-color: #5027d0;
        color: #fff;
        text-decoration: none;
    }

    .organizer-profile-leave-review:focus-visible {
        outline: 2px solid #301475;
        outline-offset: 3px;
    }

@media (max-width: 700px) {
    .organizer-profile-review-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (min-width: 701px) {
    .profile-page-layout > .profile-content-public {
        grid-column: 2;
        max-width: none;
        min-width: 0;
    }
}
/* =========================
   VERIFIED ORGANIZER OVERVIEW
========================= */

.organizer-profile-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .95fr);
    align-items: start;
    gap: 15px;
    margin-top: 15px;
}

    .organizer-profile-top-grid
    .profile-about-card,
    .organizer-profile-top-grid
    .organizer-profile-reviews {
        min-width: 0;
        margin: 0;
    }

    /* Compact review preview */

    .organizer-profile-top-grid
    .organizer-profile-reviews {
        padding: 16px;
    }

.organizer-profile-reviews
.profile-preview-header {
    margin-bottom: 8px;
}

.organizer-profile-review-summary {
    gap: 8px;
    padding: 10px 12px;
}

    .organizer-profile-review-summary strong {
        font-size: 23px;
    }

.organizer-profile-review {
    padding: 9px 2px;
}

    .organizer-profile-review p {
        -webkit-line-clamp: 1;
    }

.organizer-profile-review-empty {
    margin: 9px 0 0;
    font-size: 11px;
}

/* Published events */

.organizer-published-events {
    margin-top: 15px;
}

.organizer-event-empty {
    margin: 6px 0;
    color: #6b7280;
    font-size: 11px;
}

.organizer-published-list {
    display: grid;
    gap: 8px;
}

.organizer-published-item {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.organizer-event-cover {
    overflow: hidden;
    border-radius: 8px;
    background: #f4efff;
}

.organizer-published-item
.organizer-event-cover {
    height: 76px;
}

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

.organizer-event-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

    .organizer-event-info strong,
    .organizer-previous-item strong {
        overflow: hidden;
        color: #111827;
        font-size: 11px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .organizer-event-info span,
    .organizer-previous-item span {
        color: #66708b;
        font-size: 9px;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .organizer-event-info i,
    .organizer-previous-item i {
        margin-right: 5px;
        color: #7c3aed;
    }

.organizer-event-details {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4efff;
    color: #6d28d9;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* Previous events */

.organizer-previous-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.organizer-previous-item {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

    .organizer-previous-item
    .organizer-event-cover {
        height: 80px;
    }

/* Responsive layout */

@media (max-width: 1100px) {
    .organizer-profile-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .organizer-published-item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .organizer-event-details {
        grid-column: 2;
        justify-self: start;
    }

    .organizer-previous-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .organizer-profile-top-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .organizer-published-item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 9px;
        min-width: 0;
    }

    .organizer-event-details {
        padding: 7px 9px;
    }
}

@media (max-width: 420px) {
    .organizer-previous-list {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ORGANIZER OVERVIEW LAYOUT
========================= */

.profile-page-layout {
    max-width: 1680px;
}

.profile-content-organizer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "hero hero"
        "about about"
        "published reviews"
        "previous discussions";
    gap: 15px;
    align-content: start;
}

    .profile-content-organizer > .profile-hero {
        grid-area: hero;
    }

    /* Let cards inside the existing Razor wrappers join the main grid. */
    .profile-content-organizer > .organizer-profile-top-grid,
    .profile-content-organizer > .profile-preview-grid {
        display: contents;
    }

    .profile-content-organizer .profile-about-card {
        grid-area: about;
        margin: 0;
    }

    .profile-content-organizer .organizer-published-events {
        grid-area: published;
        margin: 0;
    }

    .profile-content-organizer .organizer-profile-reviews {
        grid-area: reviews;
        margin: 0;
    }

    .profile-content-organizer .organizer-previous-events {
        grid-area: previous;
    }

    .profile-content-organizer .organizer-profile-discussions {
        grid-area: discussions;
    }

    .profile-content-organizer .profile-preview-card,
    .profile-content-organizer .profile-about-card {
        min-width: 0;
    }

    /* Keep event details inside the Published Events card. */
    .profile-content-organizer .organizer-published-item {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-content-organizer .organizer-event-details {
        grid-column: 2;
        justify-self: start;
    }

    /* A message above the hero gets its own row. */
    .profile-content-organizer:has(> .profile-public-context),
    .profile-content-organizer:has(> .profile-success-message) {
        grid-template-areas:
            "message message"
            "hero hero"
            "about about"
            "published reviews"
            "previous discussions";
    }

    .profile-content-organizer > .profile-public-context,
    .profile-content-organizer > .profile-success-message {
        grid-area: message;
    }

@media (max-width: 700px) {
    .profile-content-organizer {
        display: block;
    }

        .profile-content-organizer .profile-about-card,
        .profile-content-organizer .profile-preview-card {
            margin-top: 12px;
        }
}

.organizer-events-page {
    min-width: 0;
}

    .organizer-events-page .profile-preview-header h1 {
        margin: 0;
        font-size: 21px;
    }

.organizer-events-page-list {
    display: grid;
    gap: 10px;
}

    .organizer-events-page-list .organizer-published-item {
        grid-template-columns: 120px minmax(0, 1fr) auto;
    }

    .organizer-events-page-list .organizer-event-cover {
        height: 76px;
    }

.organizer-events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 12px;
}

    .organizer-events-pagination a {
        color: #6d28d9;
        font-weight: 600;
        text-decoration: none;
    }

@media (max-width: 700px) {
    .organizer-events-page-list .organizer-published-item {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .organizer-events-page-list .organizer-event-details {
        grid-column: 2;
        justify-self: start;
    }
}

.private-profile-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.private-profile-card {
    width: min(100%, 480px);
    padding: 42px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.private-profile-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 24px;
}

.private-profile-card h1 {
    margin: 0 0 14px;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 24px;
}

.private-profile-card h2 {
    margin: 0 0 8px;
    color: #374151;
    font-size: 17px;
}

.private-profile-card p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.private-profile-card a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 9px;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .private-profile-card a:hover,
    .private-profile-card a:focus-visible {
        background: #6d28d9;
        color: #fff;
    }

@media (max-width: 480px) {
    .private-profile-page {
        min-height: 50vh;
        padding: 20px 12px;
    }

    .private-profile-card {
        padding: 32px 20px;
    }

        .private-profile-card h1 {
            font-size: 21px;
        }
}

.profile-hero-public:has(.profile-follow-button) {
    grid-template-columns: 140px minmax(0, 1fr) auto;
}

.profile-follow-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 125px;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid #7c3aed;
    border-radius: 9px;
    background: #7c3aed;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

    .profile-follow-button:hover {
        background: #6d28d9;
    }

    .profile-follow-button.is-following,
    .profile-follow-button.is-following span,
    .profile-follow-button.is-following i {
        background: #7c3aed;
        color: #fff !important;
    }

        .profile-follow-button.is-following:hover {
            background: #6d28d9;
        }

    .profile-follow-button:focus-visible {
        outline: 2px solid #4720a5;
        outline-offset: 3px;
    }

    .profile-follow-button:disabled {
        opacity: .6;
        cursor: wait;
    }

@media (max-width: 950px) {
    .profile-hero-public:has(.profile-follow-button) {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .profile-follow-button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .profile-hero-public:has(.profile-follow-button) {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .profile-hero-public:has(.profile-follow-button) {
        display: flex;
    }

    .profile-follow-button {
        align-self: center;
    }
}

.profile-organization-name {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #5b45a5;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .profile-organization-name i {
        font-size: 12px;
    }

.organizer-profile-review-author {
    color: #171d3e;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .organizer-profile-review-author:hover {
        color: #6236e8;
        text-decoration: underline;
    }

    .organizer-profile-review-author:focus-visible,
    .organizer-profile-review-detail:focus-visible {
        outline: 2px solid #6236e8;
        outline-offset: 3px;
        border-radius: 3px;
    }

.organizer-profile-review-detail {
    color: inherit;
    text-decoration: none;
}

    .organizer-profile-review-detail:hover {
        color: inherit;
    }
/* =========================
   ABOUT RESPONSIVE LAYOUT
========================= */

@media (max-width: 950px) {
    .profile-about-grid,
    .profile-content-organizer .profile-about-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-about-block,
    .profile-content-organizer .profile-about-block {
        min-height: 0;
    }

    .profile-category-block,
    .profile-content-organizer .profile-category-block {
        padding: 0 0 16px;
        border: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .profile-member-since-block,
    .profile-content-organizer .profile-member-since-block {
        padding: 16px 0 0;
        border: 0;
    }
}

.profile-organization-name {
    justify-content: center;
    text-align: center;
}

/* Center organization name on mobile */
@media (max-width: 700px) {
    .profile-organization-name {
        justify-content: center;
        text-align: center;
    }
}
