/* Basic Toggles */
.eas-search-toggle {
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.3s;
}

.eas-search-toggle:hover {
    opacity: 0.8;
}

/* Modal Container - BASE STYLES */
.eas-search-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    /* Default Dark */
    z-index: 99999;

    /* Layout */
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;

    /* Common Transition Base */
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

/* =========================================
   ANIMATION MODIFIERS
   ========================================= */

/* 1. Circle Reveal (Center) */
.eas-search-modal-container.eas-anim-circle-reveal {
    clip-path: circle(0% at 50% 50%);
    -webkit-clip-path: circle(0% at 50% 50%);
    transition-property: clip-path, -webkit-clip-path;
}

.eas-search-modal-container.eas-anim-circle-reveal.active {
    clip-path: circle(150% at 50% 50%);
    -webkit-clip-path: circle(150% at 50% 50%);
}

/* 2. Slide Down / Up */
.eas-search-modal-container.eas-anim-slide-down {
    transform: translateY(-100%);
    transition-property: transform;
}

.eas-search-modal-container.eas-anim-slide-down.active {
    transform: translateY(0);
}

/* 3. Fade In / Out */
.eas-search-modal-container.eas-anim-fade {
    opacity: 0;
    transition-property: opacity;
}

.eas-search-modal-container.eas-anim-fade.active {
    opacity: 1;
}


/* =========================================
   INNER CONTENT
   ========================================= */

/* Close Button */
.eas-modal-close {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 100000;
}

.eas-modal-close:hover {
    background-color: #fff;
    color: #000 !important;
    transform: rotate(90deg);
}

/* Search Wrapper */
.eas-search-wrapper {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
}

/* Search Box */
.eas-search-box {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 15px;
    width: 100%;
    transition: border-color 0.3s;
}

.eas-search-box:focus-within {
    border-bottom-color: #fff;
}

/* Input Field */
.eas-search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #fff;
    font-size: clamp(24px, 5vw, 64px);
    font-weight: 700;
    padding: 0;
    margin: 0;
    line-height: 1.2;
}

.eas-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Search Button inside Modal */
.eas-modal-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(24px, 5vw, 48px);
    color: #fff;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    line-height: 1;
}

/* Force Icon Visibility */
.eas-modal-search-btn i,
.eas-modal-search-btn svg {
    display: block;
    fill: currentColor;
    pointer-events: none;
}

.eas-modal-search-btn i {
    position: relative;
    z-index: 2;
}

.eas-modal-search-btn:hover {
    transform: scale(1.1);
}

/* Footer Text */
.eas-search-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
}