/* ============================================================
   OCS Search Extensions — CSS Design System
   Styles for 5 Search Layout Variants:
   1. Icon Button Modal
   2. Modern Floating Pill Input
   3. Classic Header Search Bar
   4. Expanding Search Input
   5. Fullscreen Overlay Search
   ============================================================ */

.ocs-search-wrapper {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: inline-block;
    width: 100%;
}

/* ============================================================
   1. ICON BUTTON MODAL STYLES
   ============================================================ */
.ocs-search-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--ocs-search-accent, #e02020);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(224, 32, 32, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ocs-search-icon-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(224, 32, 32, 0.38);
}

.ocs-search-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ocs-search-modal-container {
    position: fixed !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-20px) scale(0.96) !important;
    width: min(600px, 92vw) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 32px 28px 26px 28px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}
.ocs-search-modal-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}
.ocs-search-modal-container.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

.ocs-search-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.ocs-search-modal-close:hover {
    background: #fee2e2;
    color: #e02020;
}

.ocs-search-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.ocs-search-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.ocs-search-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ============================================================
   2. MODERN FLOATING PILL INPUT
   ============================================================ */
.ocs-search-pill-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 5px 6px 5px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.ocs-search-pill-form:focus-within {
    border-color: var(--ocs-search-accent, #e02020);
    box-shadow: 0 6px 24px rgba(224, 32, 32, 0.12);
}
.ocs-search-pill-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    padding: 6px 0;
}
.ocs-search-pill-btn {
    border: none;
    background: var(--ocs-search-accent, #e02020);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 22px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ocs-search-pill-btn:hover {
    background: #c81818;
    box-shadow: 0 4px 12px rgba(224, 32, 32, 0.3);
}

/* ============================================================
   3. CLASSIC HEADER SEARCH BAR
   ============================================================ */
.ocs-search-classic-form {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.ocs-search-classic-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
}
.ocs-search-classic-btn {
    border: none;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ocs-search-classic-btn:hover {
    background: var(--ocs-search-accent, #e02020);
}

/* ============================================================
   4. EXPANDABLE SEARCH BAR
   ============================================================ */
.ocs-search-expand-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.ocs-search-expand-input {
    width: 44px;
    height: 44px;
    border-radius: 25px;
    border: 1.5px solid #cbd5e1;
    padding: 0 16px 0 44px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    box-sizing: border-box;
}
.ocs-search-expand-input:focus,
.ocs-search-expand-input:not(:placeholder-shown) {
    width: 280px;
    border-color: var(--ocs-search-accent, #e02020);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.ocs-search-expand-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

/* ============================================================
   5. FULLSCREEN OVERLAY SEARCH
   ============================================================ */
.ocs-search-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ocs-search-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}
.ocs-search-fullscreen-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.8;
}
.ocs-search-fullscreen-close:hover {
    opacity: 1;
    color: var(--ocs-search-accent, #e02020);
}
.ocs-search-fullscreen-form {
    width: min(700px, 85vw);
    text-align: center;
}
.ocs-search-fullscreen-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid #ffffff;
    padding: 16px 0;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    text-align: center;
}
.ocs-search-fullscreen-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.ocs-search-fullscreen-hint {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 16px;
}
