/* ================================================================
   SEARCH FORM - Mobile Optimized Version
   ================================================================ */

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 24px;
    border: 2px solid rgba(212, 168, 83, 0.3);
    transition: all 0.3s ease;
    margin-right: 1rem;
    min-width: 240px;
}

.search-form:hover,
.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.2);
}

.search-form input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: #333333;
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
    width: 180px;
    transition: width 0.3s ease;
    flex: 1;
}

.search-form input[type="text"]::placeholder {
    color: rgba(85, 85, 85, 0.6);
}

.search-form input[type="text"]:focus {
    width: 280px;
}

.search-form button {
    background: transparent;
    border: none;
    color: #666666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-form button:hover {
    background: rgba(212, 168, 83, 0.2);
    transform: scale(1.1);
}

.search-form button:active {
    transform: scale(0.95);
}

/* ================================================================
   LIGHT THEME VERSION (Default for white header)
   ================================================================ */
.search-form.light-theme {
    background: rgba(26, 39, 68, 0.04);
    border: 2px solid rgba(26, 39, 68, 0.1);
}

.search-form.light-theme:hover,
.search-form.light-theme:focus-within {
    background: rgba(26, 39, 68, 0.06);
    border-color: rgba(212, 168, 83, 0.4);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.15);
}

.search-form.light-theme input[type="text"] {
    color: #1A2744;
}

.search-form.light-theme input[type="text"]::placeholder {
    color: rgba(26, 39, 68, 0.5);
}

.search-form.light-theme button {
    color: #1A2744;
}

.search-form.light-theme button:hover {
    background: rgba(212, 168, 83, 0.15);
}

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */
@media (max-width: 992px) and (min-width: 769px) {
    .search-form {
        min-width: 200px;
        margin-right: 0.75rem;
    }
    
    .search-form input[type="text"] {
        width: 140px;
    }
    
    .search-form input[type="text"]:focus {
        width: 220px;
    }
}

/* ================================================================
   RESPONSIVE - MOBILE (Below 768px)
   ================================================================ */
@media (max-width: 768px) {
    .search-form {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        margin: 0.75rem 0;
        padding: 0.6rem 0.85rem;
        order: 10;
        flex: 1 1 100%;
    }
    
    .search-form input[type="text"] {
        width: 100%;
        flex: 1;
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }
    
    .search-form input[type="text"]:focus {
        width: 100%;
    }
    
    .search-form button {
        font-size: 1.2rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ================================================================
   RESPONSIVE - SMALL MOBILE (Below 576px)
   ================================================================ */
@media (max-width: 576px) {
    .search-form {
        padding: 0.65rem 0.9rem;
        border-radius: 20px;
        margin: 0.6rem 0;
    }
    
    .search-form input[type="text"] {
        font-size: 14px;
        padding: 0.35rem 0.5rem;
    }
    
    .search-form button {
        font-size: 1.15rem;
    }
}

/* ================================================================
   ENHANCED VERSION WITH ICON INSIDE
   Usage: Add class "search-form-enhanced" and include icon
   ================================================================ */
.search-form-enhanced {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.55rem 1rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-right: 1rem;
    min-width: 260px;
}

.search-form-enhanced:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 168, 83, 0.4);
}

.search-form-enhanced:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 168, 83, 0.6);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2);
    min-width: 360px;
}

.search-input-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.search-form-enhanced:focus-within .search-input-icon {
    color: #D4A853;
}

.search-form-enhanced input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
    padding: 0;
    flex: 1;
}

.search-form-enhanced input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Keyboard Shortcut Hint */
.search-form-enhanced::after {
    content: "/";
    position: absolute;
    right: 1rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s;
}

.search-form-enhanced:focus-within::after {
    opacity: 0;
}

/* Enhanced - Light Theme */
.search-form-enhanced.light-theme {
    background: rgba(26, 39, 68, 0.04);
    border: 2px solid rgba(26, 39, 68, 0.1);
}

.search-form-enhanced.light-theme:hover {
    background: rgba(26, 39, 68, 0.06);
    border-color: rgba(212, 168, 83, 0.3);
}

.search-form-enhanced.light-theme:focus-within {
    background: rgba(26, 39, 68, 0.08);
    border-color: rgba(212, 168, 83, 0.5);
}

.search-form-enhanced.light-theme .search-input-icon {
    color: rgba(26, 39, 68, 0.5);
}

.search-form-enhanced.light-theme:focus-within .search-input-icon {
    color: #D4A853;
}

.search-form-enhanced.light-theme input[type="text"] {
    color: #1A2744;
}

.search-form-enhanced.light-theme input[type="text"]::placeholder {
    color: rgba(26, 39, 68, 0.4);
}

.search-form-enhanced.light-theme::after {
    color: rgba(26, 39, 68, 0.35);
    border-color: rgba(26, 39, 68, 0.2);
}

/* Enhanced - Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .search-form-enhanced {
        min-width: 220px;
    }
    
    .search-form-enhanced:focus-within {
        min-width: 300px;
    }
    
    .search-form-enhanced::after {
        display: none;
    }
}

/* Enhanced - Mobile */
@media (max-width: 768px) {
    .search-form-enhanced {
        width: 100%;
        min-width: unset;
        margin: 0.75rem 0;
        padding: 0.65rem 1rem;
        order: 10;
        flex: 1 1 100%;
    }
    
    .search-form-enhanced:focus-within {
        min-width: unset;
        width: 100%;
    }
    
    .search-form-enhanced::after {
        display: none;
    }
}

/* Enhanced - Small Mobile */
@media (max-width: 576px) {
    .search-form-enhanced {
        padding: 0.7rem 0.9rem;
        border-radius: 20px;
    }
    
    .search-input-icon {
        font-size: 0.95rem;
        margin-right: 0.6rem;
    }
    
    .search-form-enhanced input[type="text"] {
        font-size: 14px;
    }
}