🔥 Trending
# assets/css/style.css (ADD THESE STYLES) ```css /* ===================================== PREMIUM HEADER ===================================== */ :root { --header-bg: rgba(255,255,255,0.88); --header-border: rgba(0,0,0,0.06); --search-bg: #f3f3f3; --shadow-soft: 0 10px 30px rgba(0,0,0,0.05); } .main-header { position: fixed; top: 0; left: 0; width: 100%; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--header-border); z-index: 9999; } .header-left { display: flex; align-items: center; gap: 24px; min-width: max-content; } .brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-color); font-size: 20px; font-weight: 800; } .brand-logo img { width: 42px; height: 42px; object-fit: contain; } .desktop-nav { display: flex; align-items: center; gap: 8px; } .desktop-nav a { text-decoration: none; color: #444; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all 0.2s ease; } .desktop-nav a:hover { background: #f1f1f1; color: #000; } .desktop-nav a.active { background: #111; color: #fff; } .header-search-wrapper { position: relative; flex: 1; max-width: 760px; } .search-form { width: 100%; height: 52px; background: var(--search-bg); border-radius: 999px; display: flex; align-items: center; gap: 12px; padding: 0 20px; transition: all 0.2s ease; } .search-form:focus-within { background: #ebebeb; box-shadow: var(--shadow-soft); } .search-form svg { color: #777; flex-shrink: 0; } .search-form input { width: 100%; height: 100%; border: none; outline: none; background: transparent; font-size: 15px; color: #111; } .search-form input::placeholder { color: #777; } .search-suggestions { position: absolute; top: calc(100% + 12px); left: 0; width: 100%; background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 25px 60px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.05); display: none; } .header-search-wrapper:hover .search-suggestions { display: block; } .suggestion-title { font-size: 13px; color: #777; margin-bottom: 16px; font-weight: 600; } .suggestion-tags { display: flex; flex-wrap: wrap; gap: 10px; } .suggestion-tags a { text-decoration: none; background: #f5f5f5; color: #222; padding: 10px 14px; border-radius: 999px; font-size: 13px; transition: all 0.2s ease; } .suggestion-tags a:hover { background: #111; color: #fff; } .header-right { display: flex; align-items: center; gap: 12px; } .header-pill { text-decoration: none; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: all 0.2s ease; } .hot-pill { background: #111; color: #fff; } .hot-pill:hover { transform: translateY(-2px); } /* ===================================== MOBILE HEADER ===================================== */ @media (max-width: 992px) { .desktop-nav { display: none; } .header-right { display: none; } .main-header { padding: 0 14px; gap: 12px; } .brand-logo span { display: none; } .search-form { height: 46px; } .search-form input { font-size: 14px; } } @media (max-width: 600px) { .main-header { height: 72px; } body { padding-top: 72px; } .search-suggestions { border-radius: 18px; padding: 18px; } .suggestion-tags { gap: 8px; } .suggestion-tags a { font-size: 12px; padding: 8px 12px; } }