/* APlus Social Discovery */

.social-discovery-page {
    --feed-blue: #1558d6;
    --feed-navy: #10264a;
    --feed-orange: #ff7a45;

    position: relative;
    isolation: isolate;
    min-height: 70vh;
    padding-bottom: 7.5rem;
    background:
        radial-gradient(
            circle at 8% 7rem,
            rgba(255, 122, 69, 0.15),
            transparent 25rem
        ),
        radial-gradient(
            circle at 92% 18rem,
            rgba(37, 99, 235, 0.18),
            transparent 30rem
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5ff 42%,
            #f7faff 100%
        );
}

.social-discovery-page::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(
            circle,
            rgba(21, 88, 214, 0.16) 0.75px,
            transparent 0.85px
        );
    background-size: 26px 26px;
    opacity: 0.34;
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000,
            transparent 56rem
        );
    mask-image:
        linear-gradient(
            to bottom,
            #000,
            transparent 56rem
        );
}

.social-discovery-page::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 18rem;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.68),
            rgba(255, 255, 255, 0)
        );
}

.social-discovery-page > .container {
    position: relative;
    z-index: 1;
}

.social-discovery-hero {
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin-bottom: 1.6rem;
    padding: clamp(1.65rem, 4vw, 2.4rem);
    border: 1px solid rgba(188, 208, 241, 0.82);
    border-radius: 1.6rem;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(244, 249, 255, 0.9)
        );
    box-shadow:
        0 1.25rem 3.5rem rgba(21, 68, 137, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.social-discovery-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 15rem;
    height: 15rem;
    border: 2.25rem solid rgba(255, 122, 69, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.social-discovery-hero > * {
    position: relative;
    z-index: 1;
}

.social-targeting-guide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.social-targeting-guide > span {
    margin-right: 0.15rem;
    color: #4f6383;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.social-targeting-guide a {
    display: inline-flex;
    min-height: 2.1rem;
    align-items: center;
    border: 1px solid #cdddf6;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    color: #174fae;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.social-targeting-guide a:hover,
.social-targeting-guide a:focus-visible {
    transform: translateY(-1px);
    border-color: #8bb0ed;
    background: #fff;
}

.social-targeting-guide a:focus-visible {
    outline: 3px solid rgba(21, 88, 214, 0.27);
    outline-offset: 3px;
}

.social-left-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1.5rem;
}

.social-filter-card {
    border: 1px solid #dfe7f2;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(27, 55, 98, 0.075);
    backdrop-filter: blur(12px);
}

.social-filter-disclosure {
    overflow: hidden;
    scroll-margin-top: 1.25rem;
}

.social-filter-disclosure:target {
    border-color: #8db1ed;
    box-shadow:
        0 0 0 3px rgba(21, 88, 214, 0.12),
        0 14px 32px rgba(27, 55, 98, 0.1);
}

.social-filter-disclosure summary {
    position: relative;
    padding: 1rem 2.8rem 1rem 1rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.18s ease;
}

.social-filter-disclosure summary::-webkit-details-marker {
    display: none;
}

.social-filter-disclosure summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #56708f;
    border-bottom: 2px solid #56708f;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
}

.social-filter-disclosure[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.social-filter-disclosure summary:hover {
    background: #f7faff;
}

.social-filter-disclosure summary:focus-visible {
    outline: 3px solid rgba(21, 88, 214, 0.24);
    outline-offset: -3px;
}

.social-filter-summary-title {
    display: block;
    margin-top: 0.3rem;
    color: #10264a;
    font-size: 1rem;
    font-weight: 800;
}

.social-filter-disclosure[open] summary {
    border-bottom: 1px solid #edf1f6;
}

.social-filter-card h2 {
    margin: 0.3rem 0 0.7rem;
    color: #10264a;
    font-size: 1rem;
}

.social-filter-card nav {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem 0.55rem 0.75rem;
}

.social-filter-card a {
    padding: 0.62rem 0.7rem;
    border-radius: 0.65rem;
    color: #4d5e78;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 750;
}

.social-filter-card a:hover,
.social-filter-card a.is-active {
    color: #1558d6;
    background: #edf4ff;
}

.social-feed-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-feed-heading h2 {
    margin: 0.3rem 0 0.45rem;
    color: #10264a;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.social-feed-heading p {
    max-width: 680px;
    margin: 0;
    color: #60708c;
}

.social-discovery-feed {
    display: grid;
    gap: 1.5rem;
}

.social-discovery-item-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem 1rem;
    margin-bottom: 0.55rem;
    padding: 0 0.25rem;
    color: #687a96;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-discovery-event-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #174fae;
    font-weight: 850;
}

.social-discovery-event-label::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 0.52rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: var(--feed-orange);
    box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.18);
}

.social-discovery-item .uae-advertisement {
    box-shadow:
        0 1.15rem 2.8rem rgba(17, 45, 86, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.social-feed-continuous {
    display: grid;
    place-items: center;
    min-height: 4.25rem;
    margin-top: 1rem;
    text-align: center;
}

.social-feed-continuous p {
    margin: 0;
    border: 1px solid rgba(200, 215, 238, 0.88);
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    color: #5c6f8b;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 0.6rem 1.4rem rgba(27, 55, 98, 0.055);
    font-size: 0.8rem;
    font-weight: 750;
}

.social-feed-continuous button {
    margin-left: 0.4rem;
    border: 0;
    padding: 0;
    color: #1558d6;
    background: transparent;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.social-feed-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
}

.social-empty-state {
    padding: 3rem 1.5rem;
    border: 1px solid #dfe7f2;
    border-radius: 1rem;
    background: #fff;
    text-align: center;
}

.social-empty-state > span {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 0.85rem;
    color: #1558d6;
    background: #edf4ff;
    font-size: 1.4rem;
    font-weight: 900;
}

.social-empty-state h3 {
    margin: 0 0 0.55rem;
    color: #10264a;
}

.social-empty-state p {
    max-width: 520px;
    margin: 0 auto 1.2rem;
    color: #60708c;
}

.discovery-sidebar-symbol {
    display: inline-grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border-radius: 999px;
    color: #1558d6;
    background: #edf4ff;
    font-size: 0.78rem;
    font-weight: 900;
}

.social-site-access {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.social-site-access summary {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #1558d6,
            #123d8a
        );
    box-shadow:
        0 0.85rem 2rem rgba(18, 61, 138, 0.28),
        0 0 0 4px rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.social-site-access summary::-webkit-details-marker {
    display: none;
}

.social-site-access summary:hover {
    background:
        linear-gradient(
            135deg,
            #2468e1,
            #16469d
        );
}

.social-site-access summary:focus-visible {
    outline: 3px solid #ff9a70;
    outline-offset: 4px;
}

.social-site-access__menu-icon {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 0.75rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.social-site-access__menu-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    border-top: 2px solid currentColor;
    transform: translateY(-50%);
}

.social-site-access__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: none;
    width: min(20rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid #d7e2f2;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1.4rem 4rem rgba(16, 38, 74, 0.22);
    backdrop-filter: blur(16px);
}

.social-site-access[open] .social-site-access__panel {
    display: block;
}

.social-site-access__panel strong {
    display: block;
    margin: 0 0 0.7rem;
    color: #10264a;
    font-size: 0.9rem;
}

.social-site-access__panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.social-site-access__panel a {
    display: flex;
    min-height: 2.45rem;
    align-items: center;
    border-radius: 0.72rem;
    padding: 0.55rem 0.65rem;
    color: #405572;
    font-size: 0.78rem;
    font-weight: 780;
    text-decoration: none;
}

.social-site-access__panel a:hover,
.social-site-access__panel a:focus-visible {
    color: #1558d6;
    background: #edf4ff;
}

.social-site-access__panel a:focus-visible {
    outline: 2px solid rgba(21, 88, 214, 0.4);
    outline-offset: 1px;
}

.social-footer-access-point {
    display: block;
    height: 1px;
    scroll-margin-top: 1rem;
}

@media (max-width: 1080px) {
    .social-left-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .social-discovery-page {
        padding-bottom: 7rem;
    }

    .social-discovery-hero {
        border-radius: 1.25rem;
    }

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

    .social-filter-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .social-feed-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .social-left-sidebar {
        grid-template-columns: 1fr;
    }

    .social-filter-card:last-child {
        grid-column: auto;
    }

    .social-discovery-hero {
        margin-bottom: 1rem;
        padding: 1.05rem 0.9rem 1rem;
        border-radius: 1.05rem;
    }

    .social-discovery-hero::after {
        display: none;
    }

    .social-discovery-hero .section-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }

    .social-discovery-hero h1 {
        margin: 0.35rem 0 0.55rem;
        font-size: clamp(1.72rem, 8.5vw, 2.05rem);
        line-height: 1.05;
    }

    .social-discovery-hero p {
        max-width: 30rem;
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .social-targeting-guide {
        gap: 0.38rem;
        margin-top: 0.8rem;
    }

    .social-targeting-guide > span {
        flex-basis: 100%;
        margin: 0;
        font-size: 0.65rem;
    }

    .social-targeting-guide a {
        min-height: 1.85rem;
        padding: 0.25rem 0.58rem;
        font-size: 0.7rem;
    }

    .social-site-access {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .social-site-access__panel {
        width: min(19rem, calc(100vw - 1.5rem));
    }

    .social-site-access__panel nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-targeting-guide a,
    .social-discovery-item .uae-advertisement {
        transition: none;
    }

    .social-targeting-guide a:hover,
    .social-targeting-guide a:focus-visible {
        transform: none;
    }
}
