|
60 | 60 | } |
61 | 61 | } |
62 | 62 |
|
63 | | -/* === AI Tire Advisor (inside filter panel) === */ |
64 | | -.rtg-ai-section { |
| 63 | +/* === Search Row (input + Search button + optional AI button) === */ |
| 64 | +.rtg-search-section { |
65 | 65 | margin-bottom: 20px; |
66 | 66 | } |
67 | 67 |
|
68 | | -/* Flex row: [ search-container ] [ submit button ] */ |
69 | | -.rtg-ai-row { |
| 68 | +.rtg-search-row { |
70 | 69 | display: flex !important; |
71 | 70 | align-items: center !important; |
72 | 71 | gap: 8px !important; |
73 | 72 | } |
74 | 73 |
|
75 | | -/* The search-container fills remaining space; button sits outside */ |
76 | | -.rtg-ai-row .search-container { |
| 74 | +.rtg-search-row .search-container { |
77 | 75 | flex: 1 !important; |
78 | 76 | min-width: 0 !important; |
79 | 77 | } |
80 | 78 |
|
81 | | -/* Accent-colored wand icon (uses standard .search-icon absolute positioning) */ |
82 | | -.rtg-ai-icon { |
83 | | - color: var(--rtg-accent) !important; |
| 79 | +/* Search button */ |
| 80 | +.rtg-search-btn { |
| 81 | + flex-shrink: 0 !important; |
| 82 | + display: flex !important; |
| 83 | + align-items: center !important; |
| 84 | + justify-content: center !important; |
| 85 | + gap: 6px !important; |
| 86 | + height: 44px !important; |
| 87 | + min-width: 44px !important; |
| 88 | + padding: 0 14px !important; |
| 89 | + margin: 0 !important; |
| 90 | + background: var(--rtg-bg-input) !important; |
| 91 | + color: var(--rtg-text-primary) !important; |
| 92 | + border: 2px solid transparent !important; |
| 93 | + border-radius: 8px !important; |
| 94 | + cursor: pointer !important; |
| 95 | + font-size: 14px !important; |
| 96 | + font-weight: 600 !important; |
| 97 | + line-height: 1 !important; |
| 98 | + white-space: nowrap !important; |
| 99 | + transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease; |
| 100 | + position: static !important; |
| 101 | + transform: none !important; |
84 | 102 | } |
85 | 103 |
|
86 | | -/* Keep input border-radius rounded on focus */ |
87 | | -.rtg-ai-input:focus { |
88 | | - border-radius: 8px !important; |
| 104 | +.rtg-search-btn i { |
| 105 | + font-size: 14px !important; |
89 | 106 | } |
90 | 107 |
|
91 | | -/* Submit button outside the bar */ |
| 108 | +.rtg-search-btn:hover { |
| 109 | + background: var(--rtg-accent) !important; |
| 110 | + color: #fff !important; |
| 111 | +} |
| 112 | + |
| 113 | +.rtg-search-btn:active { |
| 114 | + transform: scale(0.93) !important; |
| 115 | +} |
| 116 | + |
| 117 | +/* AI submit button */ |
92 | 118 | .rtg-ai-submit { |
93 | 119 | flex-shrink: 0 !important; |
94 | 120 | display: flex !important; |
95 | 121 | align-items: center !important; |
96 | 122 | justify-content: center !important; |
97 | | - width: 44px !important; |
| 123 | + gap: 6px !important; |
98 | 124 | height: 44px !important; |
99 | 125 | min-width: 44px !important; |
100 | | - padding: 0 !important; |
| 126 | + padding: 0 14px !important; |
101 | 127 | margin: 0 !important; |
102 | 128 | background: var(--rtg-accent) !important; |
103 | 129 | color: #fff !important; |
104 | 130 | border: none !important; |
105 | 131 | border-radius: 8px !important; |
106 | 132 | cursor: pointer !important; |
107 | | - font-size: 16px !important; |
| 133 | + font-size: 14px !important; |
| 134 | + font-weight: 600 !important; |
108 | 135 | line-height: 1 !important; |
| 136 | + white-space: nowrap !important; |
109 | 137 | transition: background-color 0.2s ease, transform 0.1s ease; |
110 | 138 | position: static !important; |
111 | 139 | transform: none !important; |
|
240 | 268 | } |
241 | 269 | } |
242 | 270 |
|
243 | | -/* === Ask AI suggestion in search dropdown === */ |
244 | | -.search-suggestion-ai { |
245 | | - border-top: 1px solid var(--rtg-border) !important; |
246 | | -} |
247 | | - |
248 | 271 | /* === Filter Section — Card style matching compare page === */ |
249 | 272 | .filter-wrapper { |
250 | 273 | background: var(--rtg-bg-card); |
|
278 | 301 | } |
279 | 302 |
|
280 | 303 | /* === Search === */ |
281 | | -.filter-search { |
282 | | - margin-bottom: 20px; |
283 | | - width: 100%; |
284 | | -} |
285 | 304 | .search-container { |
286 | 305 | position: relative !important; |
287 | 306 | width: 100%; |
288 | 307 | z-index: 10; |
289 | 308 | } |
290 | 309 | .search-input { |
291 | 310 | width: 100% !important; |
292 | | - padding: 12px 16px 12px 40px !important; |
| 311 | + padding: 12px 16px !important; |
293 | 312 | border-radius: 8px !important; |
294 | 313 | border: 2px solid transparent !important; |
295 | 314 | background-color: var(--rtg-bg-input) !important; |
|
301 | 320 | .search-input::placeholder { |
302 | 321 | color: #9ca3af !important; |
303 | 322 | } |
304 | | -.search-icon { |
305 | | - position: absolute; |
306 | | - top: 50%; |
307 | | - left: 14px; |
308 | | - transform: translateY(-50%); |
309 | | - color: #9ca3af; |
310 | | - font-size: 16px; |
311 | | - pointer-events: none; |
312 | | - transition: color .15s; |
313 | | -} |
314 | 323 | .search-input:focus { |
315 | 324 | outline: none !important; |
316 | 325 | background-color: #1f2937 !important; |
317 | 326 | box-shadow: 0 0 0 2px var(--rtg-accent) !important; |
318 | 327 | border-color: var(--rtg-accent) !important; |
319 | | - border-radius: 8px 8px 0 0 !important; |
320 | | -} |
321 | | -.search-input:focus + .search-icon { |
322 | | - color: var(--rtg-accent) !important; |
| 328 | + border-radius: 8px !important; |
323 | 329 | } |
324 | 330 |
|
325 | 331 | /* === Filter Controls === */ |
@@ -1935,137 +1941,6 @@ a.rtg-review-card-title-link:hover { |
1935 | 1941 | } |
1936 | 1942 | } |
1937 | 1943 |
|
1938 | | -/* === Smart Search Auto-Complete === */ |
1939 | | -.search-suggestions-dropdown { |
1940 | | - position: absolute; |
1941 | | - top: 100%; |
1942 | | - left: 0; |
1943 | | - right: 0; |
1944 | | - background: var(--rtg-bg-primary); |
1945 | | - border: 2px solid var(--rtg-accent); |
1946 | | - border-radius: 0 0 8px 8px; |
1947 | | - border-top: none; |
1948 | | - max-height: 320px; |
1949 | | - overflow-y: auto; |
1950 | | - z-index: 1000; |
1951 | | - box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); |
1952 | | - animation: slideDown 0.2s ease; |
1953 | | - backdrop-filter: blur(8px); |
1954 | | -} |
1955 | | -@keyframes slideDown { |
1956 | | - from { |
1957 | | - opacity: 0; |
1958 | | - transform: translateY(-10px); |
1959 | | - max-height: 0; |
1960 | | - } |
1961 | | - to { |
1962 | | - opacity: 1; |
1963 | | - transform: translateY(0); |
1964 | | - max-height: 320px; |
1965 | | - } |
1966 | | -} |
1967 | | -.search-suggestion-item { |
1968 | | - padding: 14px 16px; |
1969 | | - cursor: pointer; |
1970 | | - display: flex; |
1971 | | - align-items: center; |
1972 | | - justify-content: space-between; |
1973 | | - transition: all 0.15s; |
1974 | | - border-bottom: 1px solid var(--rtg-border); |
1975 | | - position: relative; |
1976 | | - background: transparent; |
1977 | | - color: var(--rtg-text-light); |
1978 | | -} |
1979 | | -.search-suggestion-item:last-child { |
1980 | | - border-bottom: none; |
1981 | | - border-radius: 0 0 6px 6px; |
1982 | | -} |
1983 | | -.search-suggestion-item:hover, |
1984 | | -.search-suggestion-item.active { |
1985 | | - background: linear-gradient(135deg, var(--rtg-accent), var(--rtg-accent-hover)) !important; |
1986 | | - color: #1a1a1a !important; |
1987 | | - transform: translateX(2px); |
1988 | | -} |
1989 | | -.search-suggestion-item:hover .suggestion-icon, |
1990 | | -.search-suggestion-item.active .suggestion-icon { |
1991 | | - color: #1a1a1a !important; |
1992 | | -} |
1993 | | -.search-suggestion-item:hover .suggestion-meta, |
1994 | | -.search-suggestion-item.active .suggestion-meta { |
1995 | | - color: #1a1a1a !important; |
1996 | | -} |
1997 | | -.search-suggestion-item:hover .suggestion-type-badge, |
1998 | | -.search-suggestion-item.active .suggestion-type-badge { |
1999 | | - background: rgba(26, 26, 26, 0.2) !important; |
2000 | | - color: #1a1a1a !important; |
2001 | | -} |
2002 | | -.suggestion-content { |
2003 | | - display: flex; |
2004 | | - align-items: center; |
2005 | | - gap: 12px; |
2006 | | - flex: 1; |
2007 | | - min-width: 0; |
2008 | | -} |
2009 | | -.suggestion-icon { |
2010 | | - color: var(--rtg-text-muted); |
2011 | | - font-size: 14px; |
2012 | | - width: 18px; |
2013 | | - text-align: center; |
2014 | | - flex-shrink: 0; |
2015 | | - transition: color 0.15s; |
2016 | | -} |
2017 | | -.suggestion-text { |
2018 | | - color: var(--rtg-text-light); |
2019 | | - font-weight: 500; |
2020 | | - font-size: 14px; |
2021 | | - white-space: nowrap; |
2022 | | - overflow: hidden; |
2023 | | - text-overflow: ellipsis; |
2024 | | - flex: 1; |
2025 | | - transition: color 0.15s; |
2026 | | -} |
2027 | | -.suggestion-meta { |
2028 | | - display: flex; |
2029 | | - align-items: center; |
2030 | | - gap: 8px; |
2031 | | - flex-shrink: 0; |
2032 | | - transition: color 0.15s; |
2033 | | -} |
2034 | | -.suggestion-type-badge { |
2035 | | - background: var(--rtg-bg-input); |
2036 | | - color: #9ca3af; |
2037 | | - font-size: 10px; |
2038 | | - padding: 3px 6px; |
2039 | | - border-radius: 4px; |
2040 | | - text-transform: uppercase; |
2041 | | - font-weight: 600; |
2042 | | - letter-spacing: 0.5px; |
2043 | | - transition: all 0.15s; |
2044 | | -} |
2045 | | -.suggestion-count { |
2046 | | - color: #6b7280; |
2047 | | - font-size: 11px; |
2048 | | - font-weight: 500; |
2049 | | - transition: color 0.15s; |
2050 | | -} |
2051 | | -.search-suggestions-dropdown::-webkit-scrollbar { |
2052 | | - width: 6px; |
2053 | | -} |
2054 | | -.search-suggestions-dropdown::-webkit-scrollbar-track { |
2055 | | - background: var(--rtg-border); |
2056 | | - border-radius: 0 0 6px 0; |
2057 | | -} |
2058 | | -.search-suggestions-dropdown::-webkit-scrollbar-thumb { |
2059 | | - background: var(--rtg-accent); |
2060 | | - border-radius: 3px; |
2061 | | -} |
2062 | | -.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover { |
2063 | | - background: var(--rtg-accent-hover); |
2064 | | -} |
2065 | | -.suggestion-type-brand .suggestion-icon { color: #fbbf24; } |
2066 | | -.suggestion-type-model .suggestion-icon { color: #60a5fa; } |
2067 | | -.suggestion-type-category .suggestion-icon { color: #a78bfa; } |
2068 | | -.suggestion-type-size .suggestion-icon { color: #34d399; } |
2069 | 1944 |
|
2070 | 1945 | /* === Animations === */ |
2071 | 1946 | @keyframes fadeIn { |
@@ -2137,25 +2012,6 @@ a.rtg-review-card-title-link:hover { |
2137 | 2012 | font-size: 15px; |
2138 | 2013 | line-height: 1.7; |
2139 | 2014 | } |
2140 | | - .search-suggestions-dropdown { |
2141 | | - max-height: 250px; |
2142 | | - } |
2143 | | - .search-suggestion-item { |
2144 | | - padding: 12px 14px; |
2145 | | - } |
2146 | | - .suggestion-text { |
2147 | | - font-size: 13px; |
2148 | | - } |
2149 | | - .suggestion-meta { |
2150 | | - gap: 6px; |
2151 | | - } |
2152 | | - .suggestion-type-badge { |
2153 | | - font-size: 9px; |
2154 | | - padding: 2px 5px; |
2155 | | - } |
2156 | | - .suggestion-count { |
2157 | | - font-size: 10px; |
2158 | | - } |
2159 | 2015 | #compareBar { |
2160 | 2016 | flex-wrap: wrap; |
2161 | 2017 | justify-content: space-between; |
@@ -2277,15 +2133,6 @@ a.rtg-review-card-title-link:hover { |
2277 | 2133 |
|
2278 | 2134 | /* === Reduced Motion === */ |
2279 | 2135 | @media (prefers-reduced-motion: reduce) { |
2280 | | - .search-suggestions-dropdown { |
2281 | | - animation: none; |
2282 | | - } |
2283 | | - .search-suggestion-item { |
2284 | | - transition: none; |
2285 | | - } |
2286 | | - .search-suggestion-item:hover { |
2287 | | - transform: none; |
2288 | | - } |
2289 | 2136 | .tire-card { |
2290 | 2137 | transition: none; |
2291 | 2138 | } |
|
0 commit comments