/* ============================================
   Environment Filter Component - Pill Button Design
   Based on Figma: VW - Internal (Node: 48-3236)
   Horizontal pill-button layout
   ============================================ */

/* Main Container */
.environment-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding-bottom: 24px;
    border-bottom: 1px solid #EBEBEB;
}

/* Label Typography */
.environment-filter__label {
    font-family: 'Neue Plak', 'Neue Plak Regular', 'Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: #212324; /* Grey 2 */
    margin: 0;
    width: 204px;
}

/* Horizontal Options Container */
.environment-filter__options {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Individual Option Container */
.environment-filter__option {
    position: relative;
}

/* Hide Default Radio Input */
.environment-filter__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Pill Button Styling */
.environment-filter__button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 4px 8px;
    background-color: #F7F7F7; /* Grey 9 */
    border: 1px solid transparent;
    border-radius: 4px;

    /* Typography from Figma */
    font-family: 'Neue Plak', 'Neue Plak Regular', 'Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #464646; /* Grey 4 */

    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hover State */
.environment-filter__button:hover {
    background-color: #EFEFEF;
}

/* Selected/Checked State */
.environment-filter__input:checked + .environment-filter__button {
    background-color: #F7F7F7; /* Grey 9 */
    border: 1px solid #464646; /* Grey 4 */
    color: #181A1B; /* Grey 1 - darker text */
}

/* Focus State for Accessibility */
.environment-filter__input:focus + .environment-filter__button {
    outline: 2px solid #464646;
    outline-offset: 2px;
}

/* Active/Pressed State */
.environment-filter__button:active {
    transform: scale(0.98);
}

/* Disabled State */
.environment-filter__input:disabled + .environment-filter__button {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #F0F0F0;
}

.environment-filter__input:disabled + .environment-filter__button:hover {
    background-color: #F0F0F0;
    border-color: transparent;
    transform: none;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .environment-filter__label {
        font-size: 14px;
    }

    .environment-filter__button {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .environment-filter {
        padding-bottom: 20px;
        gap: 12px;
    }

    .environment-filter__options {
        gap: 6px;
    }

    .environment-filter__label {
        width: 100%;
    }

    .environment-filter__button {
        font-size: 12px;
        padding: 6px 10px;
        height: 32px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .environment-filter__option {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .environment-filter__button {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ============================================
   Dark Mode Support (Future Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Keep light theme for now - uncomment when dark mode is implemented */
    /*
    .environment-filter__label {
        color: #F7F7F7;
    }

    .environment-filter__button {
        background-color: #2A2A2A;
        color: #F7F7F7;
        border-color: #3A3A3A;
    }

    .environment-filter__button:hover {
        background-color: #333333;
    }

    .environment-filter__input:checked + .environment-filter__button {
        border-color: #F7F7F7;
        color: #FFFFFF;
    }
    */
}
