/**
 * Brand Filter Block Styles
 * Save as: /blocks/brand-filter/style.css
 */

/* Filter Form */
.brand-filter-form {
    width: 100%;
}

/* Filter Controls Container */
.brand-filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

/* Filter Select */
.brand-filter-select  {
    border-radius: 40px;
    min-width: 220px;
    color: var(--color-dark);
    font-weight: 500;
    transition: all 0.3s ease;

    padding: 0.75rem 6rem 0.75rem 1.5rem;
    border: none;
    background: #F2BB05;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
}

.brand-filter-select:hover {
    border-color: var(--wp--preset--color--primary, #007cba);
}

/* Filter Label */
.brand-filter-label {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    color: var(--wp--preset--color--contrast, #000);
}

/* Submit Button (for no-js fallback) */
.brand-filter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--primary, #007cba);
    color: var(--wp--preset--color--base, white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.brand-filter-submit:hover {
    background: var(--wp--preset--color--contrast, #005a87);
    color: var(--wp--preset--color--base, white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .brand-filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .brand-filter-label {
        white-space: normal;
        text-align: left;
    }
}

/* Twenty Twenty-Four Integration */
.wp-block-austeve-brand-filter.alignwide {
    width: var(--wp--style--global--wide-size, 1280px);
    max-width: 100%;
}

.wp-block-austeve-brand-filter.alignfull {
    width: var(--wp--style--global--content-size, 100vw);
    max-width: none;
}

/* Block Editor Styles */
.block-editor-block-list__layout .wp-block-austeve-brand-filter {
    margin: 1rem 0;
}

.wp-block[data-type="austeve/brand-filter"] .brand-filter-select {
    pointer-events: none;
    opacity: 0.8;
}

/* Active filter indication */
.brand-filter-active .brand-filter-select {
    border-color: var(--wp--preset--color--primary, #007cba);
    background: var(--wp--preset--color--tertiary, #f0f6fc);
}

/* Focus and accessibility */
.brand-filter-select:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #007cba);
    outline-offset: 2px;
}

.brand-filter-label {
    cursor: pointer;
}