/* ============================================
   Animated Heading with Toggle on Scroll
   ============================================ */

.pretpot-animated-heading-toggle {
    position: relative;
    width: 100%;
}

/* ---- Layout System ---- */
.pretpot-aht-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Horizontal: Heading 1 | Toggle | Heading 2 */
.pretpot-aht-grid.pretpot-aht-layout-horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
}

.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h1,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h2,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h3,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h4,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h5,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-left h6 {
    text-align: right;
}

.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h1,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h2,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h3,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h4,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h5,
.pretpot-aht-grid.pretpot-aht-layout-horizontal .pretpot-aht-heading-right h6 {
    text-align: left;
}

/* Vertical: Heading 1 / Toggle / Heading 2 */
.pretpot-aht-grid.pretpot-aht-layout-vertical {
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-toggle-center {
    text-align: center;
}

.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h1,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h2,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h3,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h4,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h5,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-left h6,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h1,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h2,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h3,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h4,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h5,
.pretpot-aht-grid.pretpot-aht-layout-vertical .pretpot-aht-heading-right h6 {
    text-align: center;
}

/* Headings */
.pretpot-aht-heading-left,
.pretpot-aht-heading-right {
    flex: 1;
    min-width: 120px;
}

.pretpot-aht-heading-left .pretpot-aht-heading-text,
.pretpot-aht-heading-right .pretpot-aht-heading-text {
    margin: 0;
    line-height: 1.2;
    transition: color 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), text-shadow 0.25s ease, opacity 0.25s ease;
}

/* Toggle Center */
.pretpot-aht-toggle-center {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

/* ========== PILL TOGGLE ========== */
.pretpot-aht-pill {
    position: relative;
    background-color: #1e1e24;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.pretpot-aht-pill-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #f7ff9e, #e6f04c);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pretpot-aht-pill.pretpot-aht-active {
    background-color: #2a2a32;
}

/* Vertical pill */
.pretpot-aht-layout-vertical .pretpot-aht-pill {
    width: 54px;
    height: 110px;
}

.pretpot-aht-layout-vertical .pretpot-aht-pill-knob {
    left: 4px;
    top: 4px;
}

/* ========== ARROW LOADER ========== */
.pretpot-aht-arrow-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.pretpot-aht-arrow-svg {
    transition: transform 0.3s ease;
}

/* Horizontal: arrow points RIGHT */
.pretpot-aht-layout-horizontal .pretpot-aht-arrow-svg {
    transform: rotate(-90deg);
}

/* Vertical: arrow points DOWN */
.pretpot-aht-layout-vertical .pretpot-aht-arrow-svg {
    transform: rotate(0deg);
}

.pretpot-aht-arrow-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pretpot-aht-arrow-track {
    height: 3px;
    background-color: #2c2c34;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.pretpot-aht-arrow-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #f7ff9e, #c5f048);
    border-radius: 10px;
    transition: width 0.08s linear;
}

.pretpot-aht-toggle-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-transform: uppercase;
    color: #aaa;
    margin-top: 6px;
}

/* ========== STICKY / FIXED BEHAVIOR ========== */
.pretpot-aht-sticky-wrapper {
    position: relative;
    min-height: 1px;
}

.pretpot-aht-sticky-wrapper .pretpot-aht-inner {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
}

.pretpot-aht-sticky-wrapper.pretpot-aht-is-sticky .pretpot-aht-inner {
    position: fixed;
    z-index: 100;
}

.pretpot-aht-sticky-wrapper.pretpot-aht-sticky-ended .pretpot-aht-inner {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 780px) {
    .pretpot-aht-heading-left .pretpot-aht-heading-text,
    .pretpot-aht-heading-right .pretpot-aht-heading-text {
        font-size: clamp(1.3rem, 4.5vw, 3.8rem) !important;
    }
    .pretpot-aht-grid.pretpot-aht-layout-horizontal {
        gap: 1rem;
    }
}