/**
 * Search Enhancer - Styles v3.0
 * Formularz wyszukiwania z chipami
 */

/* Reset */
.se-search-form,
.se-search-form * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Formularz */
.se-search-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Główny box */
.se-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.se-search-box:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Filtry */
.se-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Chip (przycisk filtra) */
.se-chip {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.se-chip:hover {
    background: #e8f4fc;
    border-color: #0073aa;
}

/* Ukryj radio button */
.se-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Label chipa */
.se-chip span {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

/* Chip zaznaczony */
.se-chip:has(input:checked) {
    background: #0073aa;
    border-color: #0073aa;
}

.se-chip:has(input:checked) span {
    color: #ffffff;
}

.se-chip:has(input:checked):hover {
    background: #005a87;
    border-color: #005a87;
}

/* Separator */
.se-separator {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
    flex-shrink: 0;
}

/* Input wyszukiwania */
.se-input {
    flex: 1;
    min-width: 120px;
    border: none !important;
    background: transparent !important;
    padding: 12px !important;
    font-size: 16px !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
}

.se-input::placeholder {
    color: #999;
}

.se-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Przycisk szukaj */
.se-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.se-button:hover {
    background: #005a87;
    transform: scale(1.05);
}

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

.se-button svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */

@media (max-width: 768px) {
    .se-search-box {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px;
        gap: 12px;
    }
    
    .se-filters {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .se-separator {
        display: none;
    }
    
    .se-input {
        width: 100%;
        text-align: center;
        order: 2;
    }
    
    .se-button {
        width: 100%;
        border-radius: 25px;
        height: 48px;
        order: 3;
    }
    
    .se-chip {
        padding: 8px 14px;
    }
    
    .se-chip span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .se-filters {
        gap: 6px;
    }
    
    .se-chip {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 6px);
        padding: 10px 12px;
    }
}
