/* Variable */
:root {

    /* Button */
    --btn-height: 4.2rem;
    --btn-radius: 0.8rem;

    /* Gradient */
    --gradient-horizontal-primary: linear-gradient(to right, #ffac4e 0%,#fe4e66 100%);

    /* Figma Button Gradient */
    --gradient-button-outline: linear-gradient(138.91deg, var(--colors-peach-300, #ffbfb5) 22.107%, var(--colors-violet-300, #c4b5ff) 55.634%, var(--colors-blue-200, #b5bfff) 84.734%);

}
@media(width < 768px){
    :root {

        /* Button */
        --btn-height: 3.8rem;

    }
}

/* Button */
.btn{height: var(--btn-height); border-radius: var(--btn-radius); padding: 0 2rem; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0 .5rem; font-family: 'Gilroy-Medium'; font-size: var(--fs-sm); transition: var(--transition);}
.btn.btn-md{font-size: var(--fs); height: calc(var(--btn-height) + .4rem);}
.btn.btn-lg{font-size: var(--fs); height: calc(var(--btn-height) + 1.2rem);}
.btn.btn-secondary{color: #222; background: #fff; border: 1px solid #fff; font-family: 'Gilroy-Bold';}
.btn.btn-o{background: none; border-width: .1rem; border-style: solid; color: #020304;}

/*
 * Outline Button Component
 *
 * Usage:
 * <a href="#" class="btn-outline btn-outline-small">Create your event</a>
 * <a href="#" class="btn-outline btn-outline-large">Browse all</a>
 *
 * Size Classes:
 * - .btn-outline-small (42px height, 14px font)
 * - .btn-outline-large (52px height, 152px width, 16px font)
 *
 * State Classes (optional, CSS :hover/:active handles automatically):
 * - .btn-outline-default (default state)
 * - .btn-outline-hover (forced hover state)
 * - .btn-outline-press (forced press state)
 *
 * All variants support: Default, Hover, Press states
 */
.btn-outline {
    border-radius: var(--roundings-round, 999px);
    padding: 0 var(--spacing-24, 24px);
    backdrop-filter: blur(0.75px);
    -webkit-backdrop-filter: blur(0.75px);
    border: none;
    background: transparent;
    color: transparent;
    background-image: var(--gradient-button-outline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: var(--font-weight-medium, 500);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-8, 8px);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition, 100ms linear);
    position: relative;
    box-sizing: border-box;
    min-height: 42px;
    height: 42px;
    z-index: 1;
}

/* Gradient border using pseudo-element with mask */
.btn-outline::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--roundings-round, 999px);
    background: var(--gradient-button-outline);
    z-index: -1;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 1px;
}

/* Size Variant: Small */
.btn-outline.btn-outline-small {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    font-size: var(--font-size-text-s, 14px);
    line-height: var(--font-line-height-text-s, 21px);
    letter-spacing: var(--font-letter-spacing-text-s, 0.1px);
}

/* Size Variant: Large */
.btn-outline.btn-outline-large {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    font-size: var(--font-size-text-m, 16px);
    line-height: var(--font-line-height-text-m, 24px);
    letter-spacing: var(--font-letter-spacing-text-m, 0.1px);
}

/* Full Width Variant */
.btn-outline.btn-full-width {
    width: 100%;
}

/* State Variant: Default */
.btn-outline.btn-outline-default {
    /* Default state uses base styles */
}

/* State Variant: Hover */
.btn-outline:hover,
.btn-outline.btn-outline-hover {
    opacity: 0.9;
}

/* State Variant: Press/Active */
.btn-outline:active,
.btn-outline.btn-outline-press {
    opacity: 0.8;
    transform: translateY(0);
}

/* Default to small size if no size class specified */
.btn-outline:not(.btn-outline-small):not(.btn-outline-large) {
    height: 42px;
    font-size: var(--font-size-text-s, 14px);
    line-height: var(--font-line-height-text-s, 21px);
    letter-spacing: var(--font-letter-spacing-text-s, 0.1px);
}

/* Primary Button - SVG Background */
.btn-primary {
    position: relative;
    height: 52px;
    padding: 0 var(--spacing-24, 24px);
    border-radius: var(--roundings-round, 999px);
    background-image: url('/resources/svg/home/new/buttons/button-primary.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(200px);
    -webkit-backdrop-filter: blur(200px);
    color: var(--fg-primary-rest, #ebebee);
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-text-m, 14px);
    line-height: var(--font-line-height-text-m, 21px);
    letter-spacing: var(--font-letter-spacing-text-m, 0.1px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-12, 12px);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box;
    overflow: hidden;
    width: fit-content;
    min-width: fit-content;
    max-width: 100%;
}
@media(width < 768px){
    .btn{padding: 0 1.5rem;}
    .btn-primary {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
}
/*
 * Icon Button Component (Arrow Button)
 *
 * Usage:
 * <button type="button" class="btn-icon">
 *     <svg class="btn-icon-arrow btn-icon-arrow-right">...</svg>
 * </button>
 *
 * Direction Classes:
 * - .btn-icon-arrow-right (default)
 * - .btn-icon-arrow-left
 * - .btn-icon-arrow-up
 * - .btn-icon-arrow-down
 *
 * State Classes (optional, CSS :hover/:active handles automatically):
 * - .btn-icon-default (default state)
 * - .btn-icon-hover (forced hover state)
 * - .btn-icon-press (forced press state)
 *
 * All variants support: Default, Hover, Press states
 */
.btn-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--colors-base-black-60, rgba(11, 10, 21, 0.6));
    color: var(--fg-primary-rest, #ebebee);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition, 100ms linear);
    padding: 0;
    background: transparent;
    border: none;
    z-index: 2;
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--roundings-12, 12px);
    backdrop-filter: blur(200px);
    -webkit-backdrop-filter: blur(200px);
    background: linear-gradient(120deg, var(--Colors-Peach-300, #FBA395) 22.11%, var(--Colors-Violet-300, #BBBFF4) 55.63%, var(--Colors-Blue-200, #B5BFFF) 84.73%);
    border: 1px solid var(--colors-base-white, #ebebee);
    z-index: 1;
}

/* Icon inside button */
.btn-icon svg,
.btn-icon .btn-icon-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
    fill: currentColor;
}

/* Arrow direction variants */
.btn-icon-arrow-right {
    transform: rotate(0deg);
}

.btn-icon-arrow-left {
    transform: rotate(180deg);
}

.btn-icon-arrow-up {
    transform: rotate(-90deg);
}

.btn-icon-arrow-down {
    transform: rotate(90deg);
}

/* State Variant: Default */
.btn-icon.btn-icon-default {
    /* Default state uses base styles */
}

/* State Variant: Hover */
.btn-icon:hover,
.btn-icon.btn-icon-hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px var(--colors-base-black-60, rgba(11, 10, 21, 0.6));
}

.btn-icon:hover::before,
.btn-icon.btn-icon-hover::before {
    background: rgba(11, 10, 21, 0.9);
}

/* State Variant: Press/Active */
.btn-icon:active,
.btn-icon.btn-icon-press {
    transform: translateY(0);
    box-shadow: 0 2px 12px var(--colors-base-black-60, rgba(11, 10, 21, 0.6));
}

.btn-icon:active::before,
.btn-icon.btn-icon-press::before {
    background: rgba(11, 10, 21, 0.95);
}

/* Label Button */
.btn-label{height: 3.6rem; padding: 0 2.2rem; border-radius: 10rem; white-space: nowrap; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; border: .2rem solid #EBB1FF; background: linear-gradient(to right, #EBB1FF, #ED27BC); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.btn-label.sm{height: 2.6rem; font-size: var(--fs-sm); padding: 0 1.5rem; border-width: .1rem;}
.btn-label.xs{height: 2.6rem; padding: 0 1.2rem; font-size: var(--fs-xs);}
@media(width < 768px){
    .btn-label{border-width: .1rem;}
}


/* Burger Menu Icon */
.burger{
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    order: 3;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.burger::before{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--fg-primary-rest, #ebebee);
    transform: translate(-50%, -50%);
    box-shadow:
        0 -5px 0 0 var(--fg-primary-rest, #ebebee),
        0 5px 0 0 var(--fg-primary-rest, #ebebee);
    transition: all 0.3s ease;
}

.burger::after{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--fg-primary-rest, #ebebee);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Change burger to X when menu is open */
.burger.active::before{
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.burger.active::after{
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

header .burger{
    position: relative;
    z-index: 2;
}

.header-links-wrap > .btn{
    order: 1;
}

.header-links-wrap .burger{
    order: 2;
}

/* Close button inside mobile menu - SVG cross icon */
header nav .mobile-menu-header .burger{
    order: initial;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

header nav .mobile-menu-header .burger::before,
header nav .mobile-menu-header .burger::after{
    display: none;
}

header nav .mobile-menu-header .burger svg{
    width: 24px;
    height: 24px;
    display: block;
}

header nav .mobile-menu-header .burger svg path{
    fill: white !important;
}

/* Hide burger menu on desktop */
@media(width >= 1024px){
    .burger{
        display: none;
    }
}

/* Show burger menu on mobile and tablet */
@media(width < 1024px){
    .burger{
        display: flex;
    }
}

/* Hide burger when menu is open on mobile */
@media(width < 768px){
    body.menu-open .header-links-wrap .burger{
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Slider Controls */
.slider-control{aspect-ratio: 1; width: 5.6rem; display: grid; place-items: center; border: .5rem solid #020304;
    background: linear-gradient(to bottom, #ED27BC 0%,#9623BE 100%); border-radius: 100%; cursor: pointer;}
@media(width < 768px){
.slider-control{width: 4.4rem;border-width: .2rem;}
}

/* Read More Link */
.read-more-link{font-size: var(--fs); text-decoration: none; position: relative; background: linear-gradient(to right, var(--primary), var(--secondary)); background-clip: border-box; -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.read-more-link::after{position: absolute; left: 0; bottom: 0; width: 100%; height: .2rem; content: ""; background: linear-gradient(to right, #ffac4e 0%,#fe4e66 100%);}
.read-more-link:hover::after{display: none;}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Fixed header height to prevent content jump */
header {
    min-height: 80px;
}

/* Hero Slider Title Link */
.hero-slide-content h1 a {
    color: white;
    text-decoration: none;
}
.hero-slide-content h1 a:hover {
    opacity: 0.9;
}

/*
 * Input Field Component
 *
 * Usage:
 * <div class="input-field">
 *     <svg class="input-icon">...</svg>
 *     <input type="text" class="input-text" placeholder="Search...">
 *     <button type="button" class="input-clear-btn d-none">...</button>
 * </div>
 *
 * Features:
 * - Backdrop blur effect
 * - Peach border color
 * - Focus state with glow
 * - Icon and clear button support
 */
.input-field{
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--bg-surface-secondary-40, rgba(11, 10, 21, 0.4));
    border: 1px solid var(--colors-peach-300, #ffbfb5);
    border-radius: var(--roundings-round, 999px);
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-4, 4px) var(--spacing-24, 24px);
    position: relative;
}

.input-field:focus-within{
    border-color: var(--colors-peach-300, #ffbfb5);
    box-shadow: 0 0 0 2px rgba(255, 191, 181, 0.2);
}

.input-icon{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.input-text{
    flex: 1 0 0;
    height: 24px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-text-s, 14px);
    line-height: var(--font-line-height-text-s, 21px);
    letter-spacing: var(--font-letter-spacing-text-s, 0.1px);
    color: var(--colors-peach-300, #ffbfb5);
    min-width: 0;
}

.input-text::placeholder{
    color: var(--colors-peach-300, #ffbfb5);
    opacity: 0.7;
}

.input-clear-btn{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.input-clear-btn svg{
    width: 20px;
    height: 20px;
}

/*
 * Select Filter Component
 *
 * Usage:
 * <div class="select-filter-wrapper">
 *     <div class="select-filter-content">
 *         <span class="select-filter-label">Label</span>
 *         <svg class="select-filter-chevron">...</svg>
 *     </div>
 *     <select class="select-filter">
 *         <option value="">Option</option>
 *     </select>
 * </div>
 *
 * Features:
 * - Hidden native select with custom styling
 * - Works with Select2
 * - Custom label and chevron display
 */
.select-filter{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    font-size: var(--font-size-text-m, 16px);
}

.select-filter-content{
    display: flex;
    flex: 1 0 0;
    gap: var(--spacing-4, 4px);
    align-items: center;
    padding: var(--spacing-8, 8px);
    cursor: pointer;
    pointer-events: none;
    min-width: 0; /* Allow flex truncation */
    width: 100%;
    box-sizing: border-box;
}

.select-filter-label{
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Critical for flex truncation */
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-text-m, 16px);
    line-height: var(--font-line-height-text-m, 24px);
    letter-spacing: var(--font-letter-spacing-text-m, 0.1px);
    color: var(--fg-primary-rest, #ebebee);
}

.select-filter-chevron{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--fg-tertiary-rest, #9f9cb0);
}

/* When a clear button is visible, hide the chevron to avoid overlap */
.search-filter-item.has-selection .select-filter-chevron{
    opacity: 0;
    visibility: hidden;
}

/* Clear (unselect) button for Select2-backed filters */
.select-filter-clear-btn{
    position: absolute;
    top: 50%;
    right: var(--spacing-8, 8px);
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--colors-base-white-10, rgba(235, 235, 238, 0.1));
    background: var(--colors-base-white-5, rgba(235, 235, 238, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 3; /* Above the Select2 container */
}

.select-filter-clear-btn svg{
    fill: var(--fg-tertiary-rest, #9f9cb0);
}

.select-filter-clear-btn:hover{
    background: var(--colors-base-white-10, rgba(235, 235, 238, 0.1));
}

/* Mobile Safari fix: Prevent viewport zoom/expansion when select is clicked */
@media screen and (max-width: 768px) {
    .select-filter{
        font-size: 16px !important;
        /* Prevent iOS Safari from zooming when select is clicked */
        -webkit-text-size-adjust: 100%;
    }
}
