/* Light modernization layer over the ported Bootstrap/Material kit.
   Kept separate so legacy parity files stay untouched. */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography
   Title: Outfit (kept — strong, modern display)
   Subheader: Plus Jakarta Sans — warm geometric, event-marketing feel
   Body: Source Sans 3 — clean humanist reading face for long copy */
.party-planner-page .sec-heading h2,
.party-planner-page .pp-header {
    font-family: "Outfit", "Montserrat", "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 650;
    letter-spacing: 0.4rem;
    margin-block: 2rem;
}

.party-planner-page .pp-subheader,
.party-planner-page .sec-heading .subheading {
    font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1.05em;
    letter-spacing: -0.01em;
    line-height: 1.45;
    text-transform: none;
    color: #555;
    margin-block: 3rem !important;
}

.party-planner-page .pp-body,
.party-planner-page .pp-body p {
    font-family: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.005em;
    color: #333;
    text-align: left;
}

.party-planner-page .pp-body p + p {
    margin-top: 0.9em;
}

/* Share row — FPP2-style pill bar. Resting outline is solid gray; on hover
   of the bar or any icon it eases into the photos-stage purple/magenta/blue/
   cyan animated gradient at the same 2px thickness (no layout jump). */
.pp-share {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px 1.75rem;
}

.pp-share-bar {
    --share-fill: #f7f7f8;
    --share-border: #c8c8c8;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--share-border);
    background: var(--share-fill);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color .45s ease;
}

/* Gradient ring sits on top of the gray border and fades in/out. */
.pp-share-bar::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        120deg,
        #a855f7 0%,
        #ec4899 25%,
        #3b82f6 50%,
        #06b6d4 75%,
        #a855f7 100%
    );
    background-size: 280% 280%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
    animation: pp-share-border 7s linear infinite;
    animation-play-state: paused;
}

.pp-share-bar:hover,
.pp-share-bar:focus-within {
    border-color: transparent;
}

.pp-share-bar:hover::before,
.pp-share-bar:focus-within::before {
    opacity: 1;
    animation-play-state: running;
    animation-duration: 3.5s;
}

.pp-share-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    margin: 0;
    border-radius: 0;
    color: #444;
    background: transparent !important;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, text-shadow .2s ease;
}

.pp-share-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.pp-share-btn:hover,
.pp-share-btn:focus {
    background: transparent !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Same palette stops as the photos mesh — one hue per icon. */
.pp-share-btn:nth-child(1):hover,
.pp-share-btn:nth-child(1):focus {
    color: #a855f7;
    text-shadow: 0 0 18px rgba(168, 85, 247, .45);
}

.pp-share-btn:nth-child(2):hover,
.pp-share-btn:nth-child(2):focus {
    color: #ec4899;
    text-shadow: 0 0 18px rgba(236, 72, 153, .45);
}

.pp-share-btn:nth-child(3):hover,
.pp-share-btn:nth-child(3):focus {
    color: #3b82f6;
    text-shadow: 0 0 18px rgba(59, 130, 246, .45);
}

.pp-share-btn:nth-child(4):hover,
.pp-share-btn:nth-child(4):focus {
    color: #06b6d4;
    text-shadow: 0 0 18px rgba(6, 182, 212, .45);
}

.pp-share-btn:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 3px;
    border-radius: 8px;
}

@keyframes pp-share-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-share-bar::before {
        animation: none;
        background-position: 40% 50%;
    }
}

/* Catalog search — slightly softer control. */
.pp-catalog-search input {
    border-radius: 999px;
    border-color: #ddd;
    padding: 12px 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pp-catalog-search input:focus {
    border-color: #02bcc4;
    box-shadow: 0 0 0 3px rgba(2, 188, 196, .18);
}

.pp-catalog-search button {
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
}

.pp-catalog-search button:hover {
    background: #ececec;
    border-color: #ccc;
}

/* Category tiles — gentler lift, rounded covers. */
.template-picker .template-item .cover {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.template-picker .template-item a h6 {
    font-family: "Outfit", "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 0.65rem;
}

.template-picker .new-badge {
    border-radius: 8px;
    font-family: "Outfit", "Montserrat", sans-serif;
    letter-spacing: .08em;
}

/* Footer polish */
.pp-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.pp-footer .to-the-top {
    transition: color .2s ease;
}

/* FAQ items feel less boxed-in when present */
.pp-faq-item {
    border-radius: 10px;
    overflow: hidden;
}

/* Concept detail rhythm */
.concept-detail-modern .sec-heading,
.pp-photos .sec-heading,
.pp-videos .sec-heading {
    margin-bottom: 1.4rem;
}

/* Photos section — living marketing gradient (replaces the dated sea-1.jpg
   parallax from .circles-counters). Soft blurred blobs of purple / magenta /
   blue / cyan that drift, morph, and hue-shift so the field never sits still. */
.pp-photos-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 30% 40%, #312e81 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 75% 65%, #831843 0%, transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #0e7490 100%);
    background-size: 160% 160%, 170% 170%, 200% 200%;
    /* Mesh drift only on the stage — no filter here, or the photos/heading
       would hue-shift with it. Color morph lives on the blob pseudos. */
    animation: pp-photos-mesh 18s ease-in-out infinite alternate;
}

/* Soft blueprint grid — stays put while color blobs move underneath. */
.pp-photos-stage::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    width: 70%;
    height: 80%;
    border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
    background:
        radial-gradient(circle at 35% 40%, rgba(168, 85, 247, .95) 0%, rgba(236, 72, 153, .55) 42%, transparent 68%),
        radial-gradient(circle at 70% 65%, rgba(192, 38, 211, .7) 0%, transparent 55%);
    filter: blur(42px);
    opacity: .9;
    mix-blend-mode: screen;
    animation: pp-blob-a 16s ease-in-out infinite;
    will-change: transform, border-radius, filter;
}

.pp-photos-stage::after {
    content: "";
    position: absolute;
    inset: auto;
    z-index: 0;
    pointer-events: none;
    right: -15%;
    bottom: -25%;
    width: 75%;
    height: 85%;
    border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
    background:
        radial-gradient(circle at 45% 40%, rgba(6, 182, 212, .95) 0%, rgba(59, 130, 246, .6) 45%, transparent 70%),
        radial-gradient(circle at 65% 70%, rgba(34, 211, 238, .55) 0%, transparent 50%);
    filter: blur(48px);
    opacity: .88;
    mix-blend-mode: screen;
    animation: pp-blob-b 20s ease-in-out infinite;
    will-change: transform, border-radius, filter;
}

/* Grid drawn on the content section wrapper so we keep both blob pseudos free. */
.pp-photos-stage > .section {
    position: relative;
    z-index: 1;
}

.pp-photos-stage > .section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 100%);
    opacity: .5;
}

.pp-photos-stage > .section > * {
    position: relative;
    z-index: 1;
}

.pp-photos-stage .sec-heading h2 {
    color: #fff;
    text-shadow: 0 1px 18px rgba(15, 10, 40, .35);
}

@keyframes pp-photos-mesh {
    0% {
        background-position: 0% 30%, 100% 20%, 0% 50%;
    }
    50% {
        background-position: 45% 55%, 40% 70%, 50% 40%;
    }
    100% {
        background-position: 90% 20%, 10% 80%, 100% 60%;
    }
}

@keyframes pp-blob-a {
    0% {
        transform: translate(-8%, -6%) scale(1) rotate(0deg);
        border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
        filter: blur(42px) hue-rotate(0deg);
    }
    33% {
        transform: translate(18%, 12%) scale(1.18) rotate(8deg);
        border-radius: 40% 60% 35% 65% / 60% 35% 65% 40%;
        filter: blur(50px) hue-rotate(25deg);
    }
    66% {
        transform: translate(8%, 28%) scale(0.92) rotate(-6deg);
        border-radius: 65% 35% 50% 50% / 40% 60% 40% 60%;
        filter: blur(38px) hue-rotate(-15deg);
    }
    100% {
        transform: translate(-8%, -6%) scale(1) rotate(0deg);
        border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
        filter: blur(42px) hue-rotate(0deg);
    }
}

@keyframes pp-blob-b {
    0% {
        transform: translate(6%, 4%) scale(1.05) rotate(0deg);
        border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
        filter: blur(48px) hue-rotate(0deg);
    }
    40% {
        transform: translate(-22%, -14%) scale(0.88) rotate(-10deg);
        border-radius: 60% 40% 55% 45% / 35% 65% 35% 65%;
        filter: blur(56px) hue-rotate(-30deg);
    }
    70% {
        transform: translate(-8%, 10%) scale(1.22) rotate(7deg);
        border-radius: 35% 65% 40% 60% / 50% 45% 55% 50%;
        filter: blur(40px) hue-rotate(20deg);
    }
    100% {
        transform: translate(6%, 4%) scale(1.05) rotate(0deg);
        border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
        filter: blur(48px) hue-rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-photos-stage,
    .pp-photos-stage::before,
    .pp-photos-stage::after {
        animation: none;
    }

    .pp-photos-stage {
        filter: none;
        background-size: cover;
        background-position: center;
    }
}
