<?php
/**
 * Template de busca personalizado para o tema Culturando
 * Carregado automaticamente por get_search_form()
 */
$unique_id = uniqid( 'search-' ); // Evita conflito de IDs se usar em header + sidebar
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    <label class="screen-reader-text" for="<?php echo esc_attr( $unique_id ); ?>">
        <?php echo esc_attr_x( 'Buscar:', 'label', 'culturando' ); ?>
    </label>
    <input 
        type="search" 
        id="<?php echo esc_attr( $unique_id ); ?>" 
        id="search-field" 
        class="search-field" 
        placeholder="<?php echo esc_attr_x( 'Buscar...', 'placeholder', 'culturando' ); ?>" 
        value="<?php echo esc_attr( get_search_query() ); ?>" 
        name="s" 
        required
    >
    <button type="submit" class="search-submit" aria-label="Buscar">
        <i class="bi bi-search"></i>
    </button>
</form>