/**
 * Flavor PC Build Filters - Frontend Styles
 * Designed to integrate with Neeon theme
 */

/* ==========================================================================
   CSS Variables (matching Neeon theme tokens)
   ========================================================================== */
.flavor-pcf-container {
    --panel: #ffffff;
    --panel-dark: #f8f9fa;
    --text: #000000;
    --text-muted: #6c6f72;
    --line: #d0d0d0;
    --line-dark: #b0b0b0;
    --accent: #2962ff;
    --accent-hover: #0034c2;
    --accent-soft: rgba(41, 98, 255, 0.1);
    --radius: 6px;
    --radius-lg: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease;
    
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    display: block;
    margin-bottom: 40px;
}

.flavor-pcf-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   Filter Panel Container
   ========================================================================== */
.flavor-pcf-wrap {
    width: 100%;
    margin: 0 0 30px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: visible;
}

/* ==========================================================================
   Title Row
   ========================================================================== */
.flavor-pcf-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.flavor-pcf-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.flavor-pcf-title {
    margin: 0;
    font-family: 'Spartan', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.flavor-pcf-subtitle {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.flavor-pcf-btn {
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: #ffffff;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.flavor-pcf-btn:hover {
    background: var(--accent-hover);
}

.flavor-pcf-btn.flavor-pcf-btn-secondary {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
}

.flavor-pcf-btn.flavor-pcf-btn-secondary:hover {
    background: #f5f5f5;
    border-color: var(--line-dark);
}

/* ==========================================================================
   Currency Toggle - Neeon theme style
   ========================================================================== */
.flavor-pcf-currency-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 40px;
    background: var(--panel-dark);
    box-shadow: inset 0 0 0 1px var(--line);
}

.flavor-pcf-currency-toggle button {
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

.flavor-pcf-currency-toggle button.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

.flavor-pcf-currency-toggle button:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

/* ==========================================================================
   Filter Controls Row
   ========================================================================== */
.flavor-pcf-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 4px 0;
    position: relative;
    z-index: 200;
    overflow: visible;
}

.flavor-pcf-control {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flavor-pcf-control.flavor-pcf-price {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-basis: 220px;
}

.flavor-pcf-control.flavor-pcf-sort {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    flex-basis: 160px;
}

.flavor-pcf-label,
.flavor-pcf-advanced-label {
    display: flex;
    align-items: center;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Multi-select Dropdown - Neeon theme style
   ========================================================================== */
details.flavor-pcf-multi {
    position: relative;
    z-index: 50;
}

details.flavor-pcf-multi[open] {
    z-index: 2000;
}

details.flavor-pcf-multi summary {
    list-style: none;
    display: block;
    width: 100%;
    min-height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 9px 34px 9px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

details.flavor-pcf-multi summary:hover {
    border-color: var(--line-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

details.flavor-pcf-multi[open] summary {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

details.flavor-pcf-multi summary::-webkit-details-marker {
    display: none;
}

details.flavor-pcf-multi summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: var(--transition);
}

details.flavor-pcf-multi[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: var(--accent);
}

.flavor-pcf-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 180px;
    max-height: 320px;
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 3000;
}

.flavor-pcf-menu label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.flavor-pcf-menu label:hover {
    background: var(--accent-soft);
}

.flavor-pcf-menu input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* Prebuilt Checkbox Wrapper - Neeon theme style */
.flavor-pcf-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.flavor-pcf-checkbox-wrap:hover {
    border-color: var(--line-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.flavor-pcf-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   Price Range Slider - Neeon theme style
   ========================================================================== */
.flavor-pcf-range-wrap {
    --left: 0%;
    --right: 100%;
    position: relative;
    height: 20px;
    margin-top: 10px;
    margin-bottom: 6px;
}

.flavor-pcf-range-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.flavor-pcf-range-wrap::after {
    content: "";
    position: absolute;
    left: var(--left);
    right: calc(100% - var(--right));
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: var(--accent);
    z-index: 2;
}

.flavor-pcf-range-wrap input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    z-index: 3;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.flavor-pcf-range-wrap input[type="range"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.flavor-pcf-range-wrap input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 20px;
    outline: none;
    box-shadow: none;
}

.flavor-pcf-range-wrap input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flavor-pcf-range-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.flavor-pcf-range-wrap input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
    height: 20px;
    outline: none;
}

.flavor-pcf-range-wrap input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flavor-pcf-range-wrap input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.flavor-pcf-range-wrap input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 4px var(--accent-soft);
}

.flavor-pcf-range-wrap input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 4px var(--accent-soft);
}

#flavor-pcf-price-min {
    z-index: 4;
}

#flavor-pcf-price-max {
    z-index: 5;
}

.flavor-pcf-price-value {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    font-weight: 600;
}

/* ==========================================================================
   Sort Select - Neeon theme style
   ========================================================================== */
.flavor-pcf-sort-select {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6f72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.flavor-pcf-sort-select:hover {
    border-color: var(--line-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.flavor-pcf-sort-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.flavor-pcf-sort-select:hover {
    border-color: var(--line-dark);
}

.flavor-pcf-sort-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==========================================================================
   Advanced Panel
   ========================================================================== */
.flavor-pcf-advanced-panel {
    display: none;
    margin-top: 16px;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: #fafafa;
}

.flavor-pcf-advanced-panel.open {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.flavor-pcf-advanced-header {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    margin: 0 0 8px;
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flavor-pcf-advanced-beta {
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.05em;
    margin-left: 8px;
    padding: 2px 6px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
    vertical-align: middle;
}

.flavor-pcf-advanced-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
}

.flavor-pcf-advanced-group.flavor-pcf-color {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
}

/* ==========================================================================
   Switch / Toggle
   ========================================================================== */
.flavor-pcf-switch-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 220px;
    min-width: 220px;
}

.flavor-pcf-switch-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.flavor-pcf-switch {
    position: relative;
    width: 42px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

.flavor-pcf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.flavor-pcf-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.flavor-pcf-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--panel);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flavor-pcf-switch input:checked + .flavor-pcf-slider {
    background: var(--accent);
}

.flavor-pcf-switch input:checked + .flavor-pcf-slider::before {
    transform: translateX(18px);
}

/* ==========================================================================
   Tooltip
   ========================================================================== */
.flavor-pcf-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.flavor-pcf-tooltip-btn {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 0;
}

.flavor-pcf-tooltip {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text);
    display: none;
    z-index: 6100;
}

.flavor-pcf-tooltip-wrap:hover .flavor-pcf-tooltip,
.flavor-pcf-tooltip-wrap:focus-within .flavor-pcf-tooltip {
    display: block;
}

/* ==========================================================================
   Segmented Control (Colour)
   ========================================================================== */
.flavor-pcf-segmented {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 40px;
    background: var(--panel);
    width: 100%;
}

.flavor-pcf-segmented button {
    flex: 1 1 0;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    cursor: pointer;
    min-height: 40px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flavor-pcf-segmented button:last-child {
    border-right: 0;
}

.flavor-pcf-segmented button.active {
    background: var(--accent);
    color: #ffffff;
}

.flavor-pcf-segmented button:hover:not(.active) {
    background: #f0f0f0;
}

/* ==========================================================================
   Share Button
   ========================================================================== */
.flavor-pcf-share-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.flavor-pcf-share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 8px 12px;
    margin: -8px -12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flavor-pcf-share-link:hover {
    color: var(--accent-hover);
    background: var(--accent-soft);
}

.flavor-pcf-share-link:focus {
    outline: none;
}

.flavor-pcf-share-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.flavor-pcf-share-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   UK Only Elements
   ========================================================================== */
.flavor-pcf-uk-only {
    display: block;
}

.flavor-pcf-container[data-currency="US"] .flavor-pcf-uk-only {
    display: none;
}

/* ==========================================================================
   Results Container
   ========================================================================== */
.flavor-pcf-results {
    min-height: 200px;
    position: relative;
}

.flavor-pcf-results-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flavor-pcf-card-col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.flavor-pcf-results-count {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.flavor-pcf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 16px;
}

.flavor-pcf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: flavor-pcf-spin 0.8s linear infinite;
}

@keyframes flavor-pcf-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   No Results
   ========================================================================== */
.flavor-pcf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.flavor-pcf-no-results p {
    margin: 0;
    font-size: 16px;
}

.flavor-pcf-reset-link {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.flavor-pcf-reset-link:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Build Card (matching Neeon blog-layout-1 overlay style)
   ========================================================================== */
.flavor-pcf-card-col.blog-layout-1 {
    margin-bottom: 30px;
}

.flavor-pcf-card {
    position: relative;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.flavor-pcf-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.flavor-pcf-card .blog-img-holder {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.flavor-pcf-card .blog-img-holder .blog-img {
    display: block;
    height: 100%;
}

.flavor-pcf-card .blog-img-holder img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.85s ease-out;
}

.flavor-pcf-card:hover .blog-img-holder img {
    transform: scale3d(1.1, 1.1, 1);
}

/* Gradient overlay on image */
.flavor-pcf-card .blog-img-holder .blog-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.85) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
}

/* Content overlay positioned at bottom of image */
.flavor-pcf-card .entry-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Title styling - white text for overlay */
.flavor-pcf-card .entry-title {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #ffffff;
}

.flavor-pcf-card .entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.flavor-pcf-card .entry-title a:hover {
    color: var(--accent);
}

/* Legacy Badge - top left */
.flavor-pcf-legacy-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.flavor-pcf-card.is-legacy {
    opacity: 0.85;
}

/* Difficulty Badge - top right, styled like theme category badges with icon */
.flavor-pcf-difficulty-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 2px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    padding: 6px 9px 5px;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 10;
    background-color: #2962ff; /* Default blue */
}

.flavor-pcf-difficulty-badge svg {
    flex-shrink: 0;
}

.flavor-pcf-difficulty-badge.difficulty-easy {
    background-color: #10b981; /* Green */
}

.flavor-pcf-difficulty-badge.difficulty-medium {
    background-color: #2962ff; /* Blue */
}

.flavor-pcf-difficulty-badge.difficulty-advanced {
    background-color: #ef4444; /* Red */
}

/* Price Badge - styled like category badge (renamed to avoid conflict with filter control) */
.flavor-pcf-price-badge {
    display: inline-block;
    background-color: #2962ff;
    border-radius: 2px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 10px 5px;
    line-height: 1;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Entry Meta - Date styling matching theme */
.flavor-pcf-card ul.entry-meta {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.flavor-pcf-card ul.entry-meta li {
    display: inline-block;
    color: #d0d0d0;
    font-size: 12px;
    font-weight: 500;
    margin-right: 16px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.flavor-pcf-card ul.entry-meta li i {
    margin-right: 7px;
    width: 11px;
}

.flavor-pcf-card ul.entry-meta li:last-child {
    margin-right: 0;
}

/* Specs Chips - component names in chip style, inline and wrapping */
.flavor-pcf-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.flavor-pcf-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.flavor-pcf-spec svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Buttons Container - below image, stacked full width with spacing */
.flavor-pcf-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Full Build Guide Button - full width, blue default */
.flavor-pcf-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: #2962ff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.flavor-pcf-view-btn:hover {
    background: #0034c2;
    color: #ffffff;
}

.flavor-pcf-view-btn svg {
    transition: transform 0.2s ease;
}

.flavor-pcf-view-btn:hover svg {
    transform: translateX(4px);
}

/* Buy Prebuilt from GeekaPC Button - grey default, blue on hover, same height as main */
.flavor-pcf-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: #555555;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.flavor-pcf-buy-btn:hover {
    background: #2962ff;
    color: #ffffff;
}

.flavor-pcf-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.2;
}

.flavor-pcf-btn-main {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.flavor-pcf-btn-main svg {
    transition: transform 0.2s ease;
    width: 14px;
    height: 14px;
}

.flavor-pcf-buy-btn:hover .flavor-pcf-btn-main svg {
    transform: translateY(-2px);
}

.flavor-pcf-btn-subtitle {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.1px;
    line-height: 1;
}

/* Disabled state for prebuilt not available */
.flavor-pcf-buy-btn.flavor-pcf-btn-disabled {
    background: #e0e0e0;
    color: #777777;
    cursor: default;
    pointer-events: none;
}

.flavor-pcf-buy-btn.flavor-pcf-btn-disabled .flavor-pcf-btn-subtitle {
    opacity: 0.6;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .flavor-pcf-controls {
        flex-wrap: wrap;
    }
    
    .flavor-pcf-control {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        flex: 1 1 calc(33.333% - 8px);
    }
    
    .flavor-pcf-control.flavor-pcf-price,
    .flavor-pcf-control.flavor-pcf-sort {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
}

@media (max-width: 991px) {
    .flavor-pcf-control {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }
    
    .flavor-pcf-control.flavor-pcf-price,
    .flavor-pcf-control.flavor-pcf-sort {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
    
    .flavor-pcf-advanced-group,
    .flavor-pcf-advanced-group.flavor-pcf-color,
    .flavor-pcf-switch-row {
        width: calc(50% - 8px);
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        flex: 1 1 calc(50% - 8px);
    }
    
    .flavor-pcf-card .blog-img-holder img {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .flavor-pcf-title-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flavor-pcf-title-actions {
        width: 100%;
        margin-left: 0;
    }
    
    .flavor-pcf-title-actions .flavor-pcf-btn {
        flex: 1 1 0;
    }
    
    .flavor-pcf-control,
    .flavor-pcf-control.flavor-pcf-price,
    .flavor-pcf-control.flavor-pcf-sort {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .flavor-pcf-advanced-group,
    .flavor-pcf-advanced-group.flavor-pcf-color,
    .flavor-pcf-switch-row {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .flavor-pcf-share-row {
        justify-content: center;
    }
    
    .flavor-pcf-card .blog-img-holder img {
        min-height: 280px;
    }
    
    .flavor-pcf-card .entry-content {
        padding: 20px;
    }
    
    .flavor-pcf-card .entry-title {
        font-size: 16px;
    }
    
    .flavor-pcf-spec {
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 575px) {
    .flavor-pcf-wrap {
        padding: 16px;
    }
    
    .flavor-pcf-title {
        font-size: 24px;
    }
    
    .flavor-pcf-card-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .flavor-pcf-card .blog-img-holder img {
        min-height: 260px;
    }
    
    .flavor-pcf-card .entry-content {
        padding: 16px;
    }
    
    .flavor-pcf-view-btn,
    .flavor-pcf-buy-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Homepage Filter Variant
   ========================================================================== */
.flavor-pcf-home .flavor-pcf-wrap {
    padding: 20px;
}

.flavor-pcf-home .flavor-pcf-title {
    font-size: 24px;
}

.flavor-pcf-home .flavor-pcf-controls {
    flex-wrap: nowrap;
    gap: 12px;
}

.flavor-pcf-home .flavor-pcf-control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
}

.flavor-pcf-home .flavor-pcf-control-btn {
    flex: 0 0 auto;
    width: auto;
}

.flavor-pcf-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.flavor-pcf-search-btn:hover {
    background: var(--accent-hover);
}

.flavor-pcf-search-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Responsive adjustments for homepage */
@media (max-width: 991px) {
    .flavor-pcf-home .flavor-pcf-controls {
        flex-wrap: wrap;
    }
    
    .flavor-pcf-home .flavor-pcf-control {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
    
    .flavor-pcf-home .flavor-pcf-control-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .flavor-pcf-home .flavor-pcf-control {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
