diff --git a/css/styles.css b/css/styles.css index 0bcbbf1..cd1e6fc 100644 --- a/css/styles.css +++ b/css/styles.css @@ -2,6 +2,158 @@ font-family: Verdana, Geneva, Tahoma, sans-serif; } +/* Search Hero */ +.search-hero { + position: relative; + width: 100%; + max-width: 600px; + margin-top: 1.5rem; + z-index: 50; +} +.search-bar { + display: flex; + align-items: center; + background: #fefff1; + border-radius: 100px; + padding: 4px 20px; + box-shadow: rgba(48, 46, 53, 0.4) 0 2px 4px, + rgba(45, 35, 66, 0.3) 0 7px 13px -3px; + transition: box-shadow 0.2s; +} +.search-bar:focus-within { + box-shadow: #45e3ff 0 4px 12px, rgba(45, 35, 66, 0.3) 0 7px 13px 3px; +} +.search-icon { + width: 20px; + height: 20px; + color: #3b444b; + flex-shrink: 0; +} +.search-bar input { + flex: 1; + border: none; + background: transparent; + padding: 14px 12px; + font-size: 16px; + font-family: Verdana, Geneva, Tahoma, sans-serif; + color: #1e2733; + outline: none; +} +.search-bar input::placeholder { + color: #7a8490; + font-size: 14px; +} +.search-results { + display: none; + position: absolute; + top: calc(100% + 8px); + left: 0; + right: 0; + background: #212b38; + border-radius: 16px; + box-shadow: rgba(0, 0, 0, 0.4) 0 8px 24px; + z-index: 50; + overflow: hidden; + max-height: 70vh; + overflow-y: auto; +} +.search-results.active { + display: block; +} +.search-result-item { + padding: 20px 24px; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); +} +.search-result-item:last-child { + border-bottom: none; +} +.search-result-header { + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 8px; +} +.search-result-header h4 { + margin: 0; + color: #fefff1; + font-size: 1.2em; + text-align: left; +} +.search-result-price { + color: #a162f7; + font-weight: bold; + font-size: 1.1em; +} +.search-result-item p { + color: #c0c8d4; + margin: 8px 0 12px; + font-size: 0.95em; + line-height: 1.5; +} +.search-alt-badge { + display: inline-block; + background: rgba(161, 98, 247, 0.2); + color: #c89aff; + border-radius: 100px; + padding: 4px 12px; + font-size: 0.8em; + font-weight: bold; + margin-top: 6px; +} +.search-result-actions { + display: flex; + align-items: center; + gap: 16px; + flex-wrap: wrap; +} +.search-result-actions .button-3 { + margin: 0; + font-size: 14px; + height: 38px; + padding-left: 14px; + padding-right: 14px; +} +.search-learn-more { + color: #45e3ff; + font-size: 14px; + font-weight: bold; + text-decoration: none; + transition: color 0.2s; + padding: 0; +} +.search-learn-more:hover { + color: #7eeeff; +} +.search-no-results { + text-align: center; +} +.search-no-results h4 { + color: #fefff1; + margin: 0 0 8px; + text-align: center; +} +.search-no-results p { + text-align: center; + color: #c0c8d4; +} +.search-no-results .button-3 { + margin: 12px auto 0; +} +.search-cta { + text-align: center; + background: rgba(161, 98, 247, 0.06); +} +.search-cta p { + text-align: center; + color: #a0a8b4; + margin: 0 0 8px; + font-size: 0.9em; +} +.search-cta .search-learn-more { + padding: 0; +} + body { background: #1e2733; margin: 0; @@ -581,6 +733,8 @@ input:checked + .drop + .menu-items { justify-content: space-evenly; width: 100%; min-height: 60vh; + position: relative; + z-index: 5; } .align-right { display: flex; @@ -598,6 +752,18 @@ nav a:not(.logo) { } @media all and (max-width: 960px) { + .search-hero { + max-width: 100%; + } + .search-bar input::placeholder { + font-size: 12px; + } + .search-results { + border-radius: 12px; + } + .search-result-item { + padding: 16px; + } .flex-column { padding: 10px 5px; } diff --git a/index.html b/index.html index d041690..8d2be35 100644 --- a/index.html +++ b/index.html @@ -50,6 +50,7 @@ > + @@ -64,12 +65,18 @@

Cloud hosting for the last hour so you can follow your dreams.

- Get Started - +
+ +
+