/* ==========================================================================
   Organizer Public Page
   Bootstrap v4.3.1 — extends events-app.blade.php layout
   ========================================================================== */

:root {
    --op-primary: #635bff; /* Follow button / active tab blue */
    --op-gradient-start: #ff7a30;
    --op-gradient-end: #ff2d78;
    --op-text-dark: #1a1d29;
    --op-text-muted: #6b7280;
    --op-border: #eceef1;
    --op-bg-soft: #f7f8fa;
    --op-radius: 14px;
}

/* ---------- Cover / Hero ---------- */

/*
 * IMPORTANT — nav-overlap guard:
 * If your `eventshub.nav.header-2` renders as position:fixed/sticky (common in
 * hero-overlay templates), it sits ON TOP of this section and eats into the
 * padding below, which is what pulls the card up behind the navbar. Set this
 * variable to your header's real rendered height (inspect it in devtools) so
 * the card always clears it with room to spare. If your header is a normal
 * static-flow element (not fixed), set it to 0.
 */
:root {
    --op-fixed-header-offset: 80px;
}

.organizer-cover {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: calc(var(--op-fixed-header-offset) + 70px) 0 100px;
    overflow: hidden;
}

.organizer-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 8, 30, 0.25) 0%,
        rgba(10, 8, 30, 0.45) 100%
    );
}

.organizer-card {
    position: relative;
    z-index: 2;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    padding: 48px 40px 40px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.12),
        0 25px 60px -10px rgba(10, 8, 30, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- Owner-only actions (Edit Profile / Share Profile) ---------- */
.organizer-owner-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.organizer-owner-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--op-text-dark);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(10, 8, 30, 0.12);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.organizer-owner-actions .btn:hover,
.organizer-owner-actions .btn:focus {
    color: var(--op-text-dark);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(10, 8, 30, 0.16);
    text-decoration: none;
}

.organizer-owner-actions .btn i {
    font-size: 14px;
    line-height: 1;
}

.organizer-owner-actions .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--op-border);
    box-shadow: 0 16px 40px rgba(10, 8, 30, 0.16);
    padding: 8px;
    min-width: 190px;
}

.organizer-owner-actions .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--op-text-dark);
}

.organizer-owner-actions .dropdown-item:hover,
.organizer-owner-actions .dropdown-item:focus {
    background: var(--op-bg-soft);
    color: var(--op-text-dark);
}

.organizer-owner-actions .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--op-text-muted);
    font-size: 14px;
}

.organizer-avatar-wrap {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 20px;
}

.organizer-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    display: block;
    box-shadow: 0 8px 24px rgba(10, 8, 30, 0.25);
    background: #fff;
}

.organizer-avatar-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2f7bff;
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.organizer-name {
    font-weight: 700;
    font-size: 32px;
    color: var(--op-text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.organizer-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2f7bff;
    color: #fff;
    font-size: 11px;
    vertical-align: middle;
}

.organizer-stats {
    /* color: #2b2f3a; */
    color: #1c1c1c;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.organizer-follow-btn {
    background: linear-gradient(90deg, #4d6bff, #6a4bff);
    color: #fff;
    font-weight: 600;
    padding: 11px 36px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 10px 24px -6px rgba(77, 107, 255, 0.55);
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.organizer-follow-btn:hover,
.organizer-follow-btn:focus {
    filter: brightness(1.08);
    color: #fff;
    transform: translateY(-1px);
}

.organizer-follow-btn.is-following {
    background: #fff;
    color: var(--op-primary);
    border: 1px solid var(--op-primary);
}

/* ---------- Tab nav ---------- */
.organizer-tabs-nav {
    background: #fff;
    border-bottom: 1px solid var(--op-border);
    position: relative;
    margin-top: -40px;
    z-index: 3;
}

.organizer-tabs {
    border-bottom: 0;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.organizer-tabs .nav-link {
    border: 0;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--op-text-muted);
    white-space: nowrap;
    position: relative;
    border-radius: 0;
}

.organizer-tabs .nav-link::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 2px;
    background: transparent;
    transition: background-color 0.15s ease;
}

.organizer-tabs .nav-link.active {
    color: var(--op-primary);
    background: transparent;
}

.organizer-tabs .nav-link.active::after {
    background: var(--op-primary);
}

.organizer-tabs .nav-link:hover {
    color: var(--op-text-dark);
}

/* ---------- Shared tab content section ---------- */
.organizer-tab-content-section {
    padding: 40px 0 70px;
    background: #fff;
}

.tab-loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--op-primary);
}

.tab-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--op-text-muted);
}

.tab-empty-state i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ==========================================================================
   ABOUT TAB
   ========================================================================== */
.about-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--op-text-dark);
    margin-bottom: 14px;
}

.about-text {
    color: #4b5060;
    line-height: 1.8;
    font-size: 15.5px;
}

.about-divider {
    border-color: var(--op-border);
    margin: 28px 0;
}

.about-pillars {
    margin-top: 32px;
    text-align: left;
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    margin-bottom: 12px;
}

.pillar-icon--purple {
    background: #efe9ff;
    color: #7c5cff;
}
.pillar-icon--blue {
    background: #e8f1ff;
    color: #3f7bff;
}
.pillar-icon--green {
    background: #e7f8ee;
    color: #22b06b;
}

.pillar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--op-text-dark);
    margin-bottom: 6px;
}

.pillar-text {
    font-size: 13.5px;
    color: var(--op-text-muted);
    line-height: 1.6;
}

.about-side-card {
    background: var(--op-bg-soft);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: 24px;
}

.about-side-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--op-text-dark);
    margin-bottom: 18px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--op-text-dark);
    height: 100%;
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.social-pill:hover {
    text-decoration: none;
    color: var(--op-text-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.social-pill strong {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.social-pill small {
    display: block;
    color: var(--op-text-muted);
    font-size: 12px;
}

.social-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.social-icon--instagram {
    background: radial-gradient(
        circle at 30% 110%,
        #fdf497,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
.social-icon--tiktok {
    background: #000;
}
.social-icon--facebook {
    background: #1877f2;
}
.social-icon--youtube {
    background: #ff0000;
}
.social-icon--twitter {
    background: #111827;
}
.social-icon--pinterest {
    background: #bd081c;
}
.social-icon--linkedin {
    background: #0a66c2;
}
.social-icon--website {
    background: linear-gradient(135deg, #3f7bff, #22b06b);
}

.email-us-btn {
    margin-top: 6px;
    background: linear-gradient(
        90deg,
        var(--op-gradient-start),
        var(--op-gradient-end)
    );
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
}

.email-us-btn:hover,
.email-us-btn:focus {
    color: #fff;
    filter: brightness(1.05);
}

.office-address {
    font-size: 14.5px;
    color: var(--op-text-dark);
    margin-bottom: 4px;
}

.office-address i {
    color: var(--op-primary);
    margin-right: 4px;
}

.view-larger-map {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--op-primary);
    display: inline-block;
    margin-bottom: 14px;
}

.office-map-embed {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--op-border);
    margin-bottom: 14px;
}

.office-map-embed iframe {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
}

.office-footnote {
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--op-text-muted);
    margin-bottom: 0;
}

.office-footnote i {
    color: var(--op-primary);
    margin-right: 4px;
}

/* ==========================================================================
   UPCOMING EVENTS TAB
   ========================================================================== */
.event-card {
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 12px 30px rgba(20, 20, 40, 0.08);
    transform: translateY(-3px);
}

.event-card-media {
    position: relative;
    height: 190px;
}

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

.event-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--op-primary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.event-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--op-text-dark);
    margin-bottom: 14px;
}

.event-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    flex: 1;
}

.event-card-date,
.event-card-time {
    font-size: 13.5px;
    color: var(--op-text-muted);
    margin-bottom: 4px;
}

.event-card-date i,
.event-card-time i {
    color: var(--op-primary);
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.event-card-price {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--op-text-muted);
}

.price-value {
    display: block;
    font-weight: 700;
    color: var(--op-primary);
    font-size: 15px;
}

.buy-ticket-btn {
    background: linear-gradient(
        90deg,
        var(--op-gradient-start),
        var(--op-gradient-end)
    );
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px;
}

.buy-ticket-btn:hover,
.buy-ticket-btn:focus {
    color: #fff;
    filter: brightness(1.05);
}

/* ==========================================================================
   PAST EVENTS GALLERY TAB
   ========================================================================== */
.gallery-tile {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 190px;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: rgba(9, 17, 36, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-tile:hover::before,
.gallery-tile:focus::before {
    opacity: 1;
}

.gallery-lightbox-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox-icon i {
    font-size: 24px;
    line-height: 1;
}

.gallery-tile:hover .gallery-lightbox-icon,
.gallery-tile:focus .gallery-lightbox-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
    .about-pillars .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    :root {
        /* Your mobile nav renders in normal flow (not fixed/sticky) — confirmed
           from the screenshot, since the white navbar sits fully above the cover
           photo with no overlap. So there's nothing to compensate for here; this
           only needs a small, honest breathing-room value, not a header-height
           estimate. If that ever changes (e.g. nav becomes sticky on scroll),
           set this back to the nav's real rendered height. */
        --op-fixed-header-offset: 0px;
    }

    .organizer-cover {
        padding: calc(var(--op-fixed-header-offset) + 20px) 0 40px;
    }

    .organizer-card {
        padding: 24px 16px 22px;
        border-radius: 20px;
    }

    .organizer-owner-actions {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0 0 18px;
    }

    .organizer-name {
        font-size: 24px;
    }

    .organizer-tabs-nav {
        margin-top: -30px;
    }

    .organizer-tabs .nav-link {
        padding: 14px 16px;
        font-size: 14px;
    }

    .organizer-tab-content-section {
        padding: 28px 0 50px;
    }

    .gallery-tile {
        height: 140px;
    }

    .event-card-media {
        height: 170px;
    }
}

@media (max-width: 575.98px) {
    .social-grid .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
