/*
Theme Name: WallHub – White Glass Theme
Theme URI: https://wallhub.app
Author: WallHub
Description: Clean white liquid glass wallpaper theme. Mobile-first, fast, beautiful. 2-col mobile grid, 4-col desktop. Full download timer, smart search, sticky nav tabs.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: wallhub
Tags: wallpaper, white, glass, modern, mobile-first, responsive
*/

/* ─────────────────────────────
   GOOGLE FONTS IMPORT
───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────── */
:root {
  /* Brand */
  --brand:       #6C63FF;
  --brand2:      #FF6584;
  --brand-light: rgba(108,99,255,0.1);
  --brand-mid:   rgba(108,99,255,0.2);

  /* Whites & Grays */
  --white:       #ffffff;
  --off-white:   #f7f8fc;
  --bg:          #f0f2f8;
  --surface:     rgba(255,255,255,0.75);
  --surface2:    rgba(255,255,255,0.55);
  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(108,99,255,0.25);

  /* Text */
  --text:        #1a1a2e;
  --text2:       #4a4a6a;
  --text3:       #8888aa;
  --text-on-brand: #ffffff;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.15);
  --shadow-brand: 0 6px 24px rgba(108,99,255,0.35);

  /* Glass */
  --blur:        blur(16px);
  --blur-sm:     blur(8px);

  /* Radius */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-full: 9999px;

  /* Fonts */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Sizes */
  --nav-h:  60px;
  --tab-h:  64px;
  --transition: 0.2s ease;
}

/* ─────────────────────────────
   RESET
───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--tab-h);
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select { font-family: var(--font-body); outline: none; border: none; }

/* ─────────────────────────────
   ANIMATED BACKGROUND BLOBS
───────────────────────────── */
.bg-blobs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: blobFloat 15s ease-in-out infinite alternate;
}
.bg-blob-1 {
  width: 500px; height: 500px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, #c7d2fe, #a5b4fc);
  animation-duration: 18s;
}
.bg-blob-2 {
  width: 400px; height: 400px;
  top: 30%; right: -100px;
  background: radial-gradient(circle, #fce7f3, #fbcfe8);
  animation-duration: 22s; animation-delay: -6s;
}
.bg-blob-3 {
  width: 350px; height: 350px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, #e0e7ff, #ddd6fe);
  animation-duration: 25s; animation-delay: -12s;
}
@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-40px) scale(1.08); }
}

/* ─────────────────────────────
   LAYOUT WRAPPER
───────────────────────────── */
#wh-site { position: relative; z-index: 1; }

/* ─────────────────────────────
   HEADER
───────────────────────────── */
#wh-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.wh-header-inner {
  display: flex; align-items: center;
  height: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 14px; gap: 10px;
}
/* Logo */
.wh-logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; text-decoration: none;
}
.wh-logo img {
  height: 34px; width: auto; display: block;
}
.wh-logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700; color: var(--brand);
  letter-spacing: -0.5px;
}
/* Search */
.wh-search-wrap { flex: 1; max-width: 480px; position: relative; }
.wh-search-form {
  display: flex; align-items: center;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.wh-search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.wh-search-input {
  flex: 1; background: none; padding: 9px 14px;
  font-size: 0.88rem; color: var(--text);
}
.wh-search-input::placeholder { color: var(--text3); }
.wh-search-btn {
  background: var(--brand); color: white;
  padding: 9px 16px; font-size: 0.88rem; font-weight: 700;
  border-radius: 0 var(--r-full) var(--r-full) 0;
  transition: background var(--transition);
}
.wh-search-btn:hover { background: #5549e0; }
/* Search suggestions */
.wh-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: none; z-index: 600; overflow: hidden;
}
.wh-suggestions.open { display: block; }
.wh-suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 0.85rem; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.wh-suggest-item:last-child { border-bottom: none; }
.wh-suggest-item:hover { background: var(--off-white); }
.wh-suggest-thumb {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.wh-suggest-title { font-weight: 700; font-size: 0.82rem; color: var(--text); }
.wh-suggest-meta  { font-size: 0.68rem; color: var(--text3); margin-top: 1px; }
.wh-suggest-icon  { font-size: 0.75rem; color: var(--text3); }
/* Header right */
.wh-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wh-icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--off-white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text2); transition: all var(--transition);
}
.wh-icon-btn:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

/* ─────────────────────────────
   CATEGORY STRIP
───────────────────────────── */
.wh-cat-section { background: var(--white); border-bottom: 1px solid var(--border); }
.wh-cat-scroll {
  display: flex; gap: 8px; padding: 10px 12px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wh-cat-scroll::-webkit-scrollbar { display: none; }
.wh-cat-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 70px; height: 70px; border-radius: var(--r-md);
  background: var(--off-white); border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--transition); gap: 4px;
  justify-content: center; text-decoration: none;
}
.wh-cat-chip:hover, .wh-cat-chip.active {
  background: var(--brand-light); border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(108,99,255,0.2); transform: translateY(-2px);
}
.wh-cat-chip .cc-icon { font-size: 1.6rem; line-height: 1; }
.wh-cat-chip .cc-name {
  font-size: 0.5rem; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.3px;
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
.wh-cat-chip:hover .cc-name, .wh-cat-chip.active .cc-name { color: var(--brand); }

/* Second cat row */
.wh-cat-scroll-2 {
  display: flex; gap: 8px; padding: 0 12px 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wh-cat-scroll-2::-webkit-scrollbar { display: none; }

/* ─────────────────────────────
   FILTER PILLS BAR
───────────────────────────── */
.wh-filter-bar {
  display: flex; gap: 7px; padding: 10px 12px 8px;
  overflow-x: auto; scrollbar-width: none; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.wh-filter-bar::-webkit-scrollbar { display: none; }
.wh-pill {
  flex-shrink: 0; padding: 6px 14px; border-radius: var(--r-full);
  font-size: 0.73rem; font-weight: 700;
  background: var(--off-white); border: 1.5px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all var(--transition);
  white-space: nowrap; letter-spacing: 0.1px;
}
.wh-pill:hover, .wh-pill.active {
  background: var(--brand); border-color: var(--brand);
  color: white; box-shadow: 0 3px 10px rgba(108,99,255,0.3);
}

/* ─────────────────────────────
   SECTION HEADING
───────────────────────────── */
.wh-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 10px;
}
.wh-section-title {
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.wh-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand2); display: inline-block;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}
.wh-see-all {
  font-size: 0.72rem; font-weight: 700; color: var(--brand);
  padding: 5px 12px; border-radius: var(--r-full);
  border: 1.5px solid var(--brand); transition: all var(--transition);
}
.wh-see-all:hover { background: var(--brand); color: white; }

/* ─────────────────────────────
   WALLPAPER GRID
───────────────────────────── */
.wh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 10px;
}

/* Responsive breakpoints */
@media (min-width: 600px)  { .wh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .wh-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 16px; } }
@media (min-width: 1200px) { .wh-grid { grid-template-columns: repeat(5, 1fr); max-width: 1280px; margin: 0 auto; } }

/* ─────────────────────────────
   WALLPAPER CARD
───────────────────────────── */
.wh-card {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 9/16;
  background: #e8eaf6;
  border: 1.5px solid var(--border);
  cursor: pointer; display: block; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wh-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--brand);
  border-color: var(--brand); z-index: 5;
}
.wh-card:active { transform: scale(0.97); }

/* Card image */
.wh-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.wh-card:hover .wh-card-img { transform: scale(1.07); }

/* Card video */
.wh-card-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: #f0f2f8; transition: transform 0.45s ease;
}
.wh-card:hover .wh-card-video { transform: scale(1.07); }

/* Gradient overlay */
.wh-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.08) 45%,
    transparent 65%
  );
  transition: opacity var(--transition);
}

/* Top badges */
.wh-card-badges {
  position: absolute; top: 9px; left: 9px;
  display: flex; flex-direction: column; gap: 4px; z-index: 3;
}
.wh-badge {
  display: inline-block; font-size: 0.5rem; font-weight: 800;
  padding: 2px 8px; border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.5px;
  backdrop-filter: blur(8px); border: 1px solid;
}
.wh-badge-new  { background: rgba(108,99,255,0.2); border-color: rgba(108,99,255,0.5); color: var(--brand); }
.wh-badge-vid  { background: rgba(255,101,132,0.2); border-color: rgba(255,101,132,0.5); color: var(--brand2); animation: livePulse 2s infinite; }
.wh-badge-4k   { background: rgba(255,193,7,0.2);   border-color: rgba(255,193,7,0.5);  color: #b8860b; }

/* DL count */
.wh-card-dl {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border-radius: var(--r-full); padding: 2px 7px;
  font-size: 0.5rem; font-weight: 700; color: var(--text2);
  border: 1px solid var(--border);
}

/* Play button (video) */
.wh-card-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--brand); z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform var(--transition), opacity var(--transition);
}
/* Play icon always visible on video, hidden on hover for images */
.wh-card-play.for-video { opacity: 0.8; }
.wh-card:hover .wh-card-play.for-video { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }

/* Card bottom info */
.wh-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 9px 8px; z-index: 3;
  transform: translateY(6px); opacity: 0;
  transition: all var(--transition);
}
.wh-card:hover .wh-card-info { transform: translateY(0); opacity: 1; }
.wh-card-title {
  font-size: 0.68rem; font-weight: 800; color: white; line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wh-card-cat { font-size: 0.56rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 6px; }
.wh-card-btns { display: flex; gap: 5px; }
.wh-card-btn {
  flex: 1; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); color: white;
  border-radius: 8px; font-size: 0.58rem; font-weight: 700;
  padding: 5px 4px; text-align: center; cursor: pointer;
  transition: all var(--transition); text-decoration: none; display: block;
}
.wh-card-btn.dl {
  background: var(--brand); border-color: var(--brand);
}
.wh-card-btn:hover { background: var(--brand); border-color: var(--brand); }
.wh-card-btn.dl:hover { background: #5549e0; }

/* ─────────────────────────────
   LOAD MORE BUTTON
───────────────────────────── */
.wh-load-more-wrap {
  padding: 18px 12px 12px;
  display: flex; justify-content: center;
}
@media(min-width:900px) { .wh-load-more-wrap { padding: 24px 16px 16px; } }

.wh-load-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 220px; width: 100%; max-width: 340px;
  background: var(--white); border: 1.5px solid var(--brand);
  color: var(--brand); padding: 12px 24px; border-radius: var(--r-full);
  font-size: 0.85rem; font-weight: 800; cursor: pointer;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.wh-load-btn:hover:not(:disabled) {
  background: var(--brand); color: white; box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.wh-load-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.wh-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(108,99,255,0.25);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite; display: none; flex-shrink: 0;
}
.wh-spinner.show { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────
   SINGLE POST PAGE
───────────────────────────── */
.wh-single-wrap {
  max-width: 720px; margin: 0 auto; padding: 14px 12px 90px;
}
@media(min-width:768px) { .wh-single-wrap { padding: 24px 20px 90px; } }

/* Media box */
.wh-single-media-box {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #f0f2f8;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
  position: relative;
}
.wh-single-media-box img,
.wh-single-media-box video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  background: #f0f2f8;
}
.wh-media-type-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.6rem; font-weight: 800; padding: 4px 10px;
  border-radius: var(--r-full); backdrop-filter: blur(8px);
  border: 1px solid;
}
.wh-media-type-badge.img-badge {
  background: rgba(255,255,255,0.85); border-color: var(--border); color: var(--text2);
}
.wh-media-type-badge.vid-badge {
  background: rgba(255,101,132,0.2); border-color: rgba(255,101,132,0.5); color: var(--brand2);
}

/* Single info card */
.wh-single-info {
  background: rgba(255,255,255,0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 18px;
  box-shadow: var(--shadow-md); margin-bottom: 14px;
}
/* Category badge */
.wh-single-cat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-light); border: 1.5px solid var(--brand-mid);
  color: var(--brand); font-size: 0.62rem; font-weight: 800;
  padding: 4px 12px; border-radius: var(--r-full);
  margin-bottom: 10px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
}
.wh-single-cat:hover { background: var(--brand-mid); }
/* Post title */
.wh-single-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 4vw, 1.55rem);
  font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 12px;
}
/* Meta row */
.wh-single-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.wh-meta-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: white; flex-shrink: 0;
}
.wh-meta-txt {
  font-size: 0.68rem; color: var(--text2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wh-meta-txt strong { color: var(--text); }
.wh-meta-sep { opacity: 0.3; }
/* Stat chips */
.wh-stat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wh-stat-chip {
  font-size: 0.6rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-full); background: var(--off-white);
  border: 1.5px solid var(--border); color: var(--text2);
}
/* Download button */
.wh-dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--brand); color: white;
  border-radius: var(--r-full); padding: 15px 20px;
  font-size: 1rem; font-weight: 800; border: none;
  cursor: pointer; text-decoration: none; transition: all var(--transition);
  box-shadow: var(--shadow-brand); font-family: var(--font-body);
  margin-bottom: 10px;
}
.wh-dl-btn:hover {
  background: #5549e0; transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}
.wh-dl-icon { animation: bounce 1.3s ease infinite; display: inline-block; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
/* Copy link btn */
.wh-copy-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border); color: var(--text2);
  border-radius: var(--r-full); padding: 11px 20px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body); margin-bottom: 12px;
}
.wh-copy-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
/* Share row */
.wh-share-row {
  display: flex; gap: 7px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.wh-share-btn {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--off-white); border: 1.5px solid var(--border);
  color: var(--text2); padding: 8px; border-radius: var(--r-md);
  font-size: 0.65rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
  font-family: var(--font-body);
}
.wh-share-btn:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

/* Tags row */
.wh-tags-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0 0; }
.wh-tag {
  font-size: 0.62rem; font-weight: 700; color: var(--brand);
  border: 1.5px solid var(--brand-mid); padding: 3px 10px;
  border-radius: var(--r-full); text-decoration: none; transition: all var(--transition);
}
.wh-tag:hover { background: var(--brand-light); }

/* Similar section */
.wh-similar-box {
  background: rgba(255,255,255,0.85); backdrop-filter: var(--blur-sm);
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.wh-similar-head {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between;
}
.wh-similar-cat-link {
  font-size: 0.65rem; color: var(--brand); font-weight: 700;
  border: 1.5px solid var(--brand); padding: 3px 10px;
  border-radius: var(--r-full); text-decoration: none; transition: all var(--transition);
}
.wh-similar-cat-link:hover { background: var(--brand); color: white; }
/* Similar grid */
.wh-sim-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 8px;
}
@media(min-width:600px) { .wh-sim-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:900px) { .wh-sim-grid { grid-template-columns: repeat(4,1fr); } }

/* Sim card is same as wh-card */
.wh-sim-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 9/16; background: #e8eaf6;
  border: 1.5px solid var(--border); cursor: pointer;
  display: block; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.wh-sim-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md), 0 0 0 2px var(--brand);
  z-index: 4;
}
.wh-sim-card img, .wh-sim-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.wh-sim-card:hover img, .wh-sim-card:hover video { transform: scale(1.06); }
.wh-sim-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(0,0,0,0.75) 0%,transparent 55%);
}
.wh-sim-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; }
.wh-sim-title {
  font-size: 0.6rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wh-sim-cat { font-size: 0.52rem; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
.wh-sim-btns { display: flex; gap: 4px; }
.wh-sim-btn {
  flex: 1; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  color: white; border-radius: 6px; font-size: 0.5rem; font-weight: 800;
  padding: 4px 3px; text-align: center; cursor: pointer;
  transition: all var(--transition); text-decoration: none; display: block;
}
.wh-sim-btn.dl { background: var(--brand); border-color: var(--brand); }
.wh-sim-btn:hover { background: var(--brand); border-color: var(--brand); }

/* Category explore box */
.wh-cat-box {
  background: rgba(255,255,255,0.85); backdrop-filter: var(--blur-sm);
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.wh-cat-box-title {
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.wh-cat-box-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 7px;
}
@media(min-width:600px) { .wh-cat-box-grid { grid-template-columns: repeat(6,1fr); } }
@media(min-width:900px) { .wh-cat-box-grid { grid-template-columns: repeat(8,1fr); } }
.wh-cat-box-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 6px; border-radius: var(--r-md);
  background: var(--off-white); border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--transition); text-align: center;
  text-decoration: none;
}
.wh-cat-box-item:hover { background: var(--brand-light); border-color: var(--brand); }
.wh-cat-box-item .icon { font-size: 1.3rem; }
.wh-cat-box-item .name { font-size: 0.5rem; font-weight: 700; color: var(--text2); }
.wh-cat-box-item:hover .name { color: var(--brand); }

/* ─────────────────────────────
   DOWNLOAD PAGE
───────────────────────────── */
.wh-dl-page { max-width: 680px; margin: 0 auto; padding: 14px 12px 90px; }
@media(min-width:768px){ .wh-dl-page { padding: 24px 20px 90px; } }
.wh-ad-box {
  background: rgba(255,255,255,0.85); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 14px; text-align: center;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.wh-ad-label { font-size: 0.6rem; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.wh-dl-preview {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1.5px solid var(--border); margin-bottom: 14px;
  box-shadow: var(--shadow-md); background: #000; position: relative;
  max-height: 60vh; display: flex; align-items: center; justify-content: center;
}
.wh-dl-preview img, .wh-dl-preview video {
  width: 100%; max-height: 60vh; object-fit: contain; display: block;
}
/* Timer card */
.wh-timer-card {
  background: rgba(255,255,255,0.9); backdrop-filter: var(--blur);
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-md); margin-bottom: 14px;
}
.wh-timer-label { font-size: 0.88rem; color: var(--text2); margin-bottom: 20px; font-weight: 600; }
.wh-timer-ring { position: relative; width: 110px; height: 110px; margin: 0 auto 16px; }
.wh-timer-svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.wh-timer-bg  { fill: none; stroke: #e8eaf6; stroke-width: 8; }
.wh-timer-fg  { fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round;
                stroke-dasharray: 314; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.wh-timer-num {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--brand);
}
.wh-timer-sub { font-size: 0.72rem; color: var(--text3); }
.wh-final-dl-btn {
  display: none; width: 100%;
  background: var(--brand); color: white;
  border-radius: var(--r-full); padding: 16px; font-size: 1.05rem; font-weight: 800;
  border: none; cursor: pointer; font-family: var(--font-body);
  box-shadow: var(--shadow-brand); transition: all var(--transition);
  animation: glowPulse 2s ease infinite;
}
.wh-final-dl-btn.show { display: block; }
.wh-final-dl-btn:hover { background: #5549e0; transform: scale(1.02); }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(108,99,255,0.35); }
  50%     { box-shadow: 0 6px 40px rgba(108,99,255,0.6); }
}

/* ─────────────────────────────
   SEARCH / CATEGORY PAGE
───────────────────────────── */
.wh-arch-header {
  background: rgba(255,255,255,0.85); backdrop-filter: var(--blur-sm);
  border-bottom: 1.5px solid var(--border); padding: 18px 12px 14px;
  text-align: center;
}
.wh-arch-icon { font-size: 3rem; margin-bottom: 6px; }
.wh-arch-title {
  font-family: var(--font-head); font-size: clamp(1.3rem,4vw,2rem);
  font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.wh-arch-count { font-size: 0.78rem; color: var(--text3); }

/* ─────────────────────────────
   SEARCH RESULTS BANNER
───────────────────────────── */
.wh-search-banner {
  background: rgba(255,255,255,0.85); backdrop-filter: var(--blur-sm);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; margin: 12px 12px 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.wh-search-q { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }
.wh-search-q .q { color: var(--brand); }
.wh-search-count { margin-left: auto; font-size: 0.75rem; color: var(--text3); }
.wh-related-tags { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.wh-rel-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--brand);
  border: 1.5px solid var(--brand-mid); padding: 3px 10px;
  border-radius: var(--r-full); text-decoration: none; transition: all var(--transition);
}
.wh-rel-tag:hover { background: var(--brand); color: white; }

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
#wh-footer {
  background: rgba(255,255,255,0.88); backdrop-filter: var(--blur-sm);
  border-top: 1.5px solid var(--border); padding: 18px 14px 16px; margin-top: 6px;
}
.wh-footer-cats-title {
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.wh-footer-cats {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.wh-footer-cat-link {
  font-size: 0.68rem; font-weight: 700; color: var(--text2);
  border: 1.5px solid var(--border); padding: 4px 10px;
  border-radius: var(--r-full); text-decoration: none; transition: all var(--transition);
  background: var(--off-white);
}
.wh-footer-cat-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.wh-footer-pages {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 12px; font-size: 0.68rem;
}
.wh-footer-page-link {
  color: var(--text2); text-decoration: none; padding: 2px 6px; transition: color var(--transition);
}
.wh-footer-page-link:hover { color: var(--brand); }
.wh-footer-sep { color: var(--border); }
.wh-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.wh-footer-logo {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--brand);
}
.wh-footer-copy { font-size: 0.65rem; color: var(--text3); }

/* ─────────────────────────────
   STICKY BOTTOM TABS
───────────────────────────── */
#wh-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  height: var(--tab-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.wh-tabs-inner {
  display: flex; align-items: stretch; height: 100%;
  max-width: 500px; margin: 0 auto;
}
.wh-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer;
  text-decoration: none; position: relative; padding: 6px 4px;
  transition: all var(--transition);
}
.wh-tab::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2.5px; background: var(--brand); border-radius: 2px;
  opacity: 0; transition: opacity var(--transition);
}
.wh-tab.active::after, .wh-tab:hover::after { opacity: 1; }
.wh-tab-icon { font-size: 1.2rem; transition: transform var(--transition); }
.wh-tab-label {
  font-size: 0.52rem; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px; transition: color var(--transition);
}
.wh-tab.active .wh-tab-icon, .wh-tab:hover .wh-tab-icon { transform: translateY(-2px); }
.wh-tab.active .wh-tab-label, .wh-tab:hover .wh-tab-label { color: var(--brand); }
/* Center HOME tab highlight */
.wh-tab.tab-home {
  background: var(--brand-light);
  border-left: 1px solid rgba(108,99,255,0.15);
  border-right: 1px solid rgba(108,99,255,0.15);
}
.wh-tab.tab-home .wh-tab-icon { font-size: 1.4rem; }
.wh-tab.tab-home .wh-tab-label { color: var(--brand); }

/* ─────────────────────────────
   TOAST
───────────────────────────── */
.wh-toast {
  position: fixed; bottom: calc(var(--tab-h) + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--text); color: white; padding: 10px 18px;
  border-radius: var(--r-full); font-size: 0.82rem; font-weight: 700;
  display: none; align-items: center; gap: 8px; z-index: 700;
  white-space: nowrap; box-shadow: var(--shadow-lg);
  animation: toastUp 0.3s ease;
}
.wh-toast.show { display: flex; }
@keyframes toastUp { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ─────────────────────────────
   CARD ANIMATION
───────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wh-card-anim { animation: cardIn 0.35s ease both; }

/* ─────────────────────────────
   404 PAGE
───────────────────────────── */
.wh-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem;
}
.wh-404-num { font-family: var(--font-head); font-size: 5rem; font-weight: 900; color: var(--brand); line-height: 1; margin-bottom: 0.5rem; }
.wh-404-msg { color: var(--text2); margin-bottom: 1.5rem; }

/* ─────────────────────────────
   SCROLLBAR
───────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--brand-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
