/* ===================================================
   APP STORE - Premium PHP Website
   Dark/Light Mode | Glassmorphism | Responsive
   =================================================== */

/* Google Fonts loaded asynchronously in header.php for PageSpeed */

/* ===== CSS Variables ===== */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-speed: 0.35s;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 8px;
  --header-height: 60px;
  --max-width: 1200px;
}

/* Light Theme (Default) */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.8);
  --bg-header: rgba(245, 245, 247, 0.72);
  --bg-footer: rgba(245, 245, 247, 0.85);
  --bg-loading: #f5f5f7;
  --bg-input: rgba(0, 0, 0, 0.04);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-link: #0066cc;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --btn-primary-bg: #1d1d1f;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(0, 0, 0, 0.06);
  --btn-secondary-text: #0066cc;
  --divider: rgba(0, 0, 0, 0.06);
  --overlay: rgba(0, 0, 0, 0.3);
  --spinner-color: #1d1d1f;
  --category-icon-bg: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.15);
  --scrollbar-track: transparent;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --bg-card: rgba(28, 28, 30, 0.7);
  --bg-card-hover: rgba(38, 38, 40, 0.85);
  --bg-glass: rgba(28, 28, 30, 0.6);
  --bg-glass-strong: rgba(28, 28, 30, 0.85);
  --bg-header: rgba(0, 0, 0, 0.72);
  --bg-footer: rgba(0, 0, 0, 0.85);
  --bg-loading: #000000;
  --bg-input: rgba(255, 255, 255, 0.06);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-link: #2997ff;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --btn-primary-bg: #f5f5f7;
  --btn-primary-text: #1d1d1f;
  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-text: #2997ff;
  --divider: rgba(255, 255, 255, 0.08);
  --overlay: rgba(0, 0, 0, 0.5);
  --spinner-color: #f5f5f7;
  --category-icon-bg: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-track: transparent;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--text-link);
  transition: opacity var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-family);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-loading);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  position: relative;
}

.loader-icon .ring {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border-color);
  border-top-color: var(--spinner-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-icon .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--spinner-color);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.loader-brand {
  margin-bottom: 16px;
}

.loader-logo {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  animation: logoPulse 2s ease-in-out infinite;
}

.loader-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeText 1.5s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 1;
  }
}

@keyframes fadeText {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  z-index: 9000;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  overflow: hidden;
}

/* Header Animated Background Particles */
.header-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.header-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.06;
  animation: headerFloat 8s ease-in-out infinite;
}

[data-theme="dark"] .header-particle {
  opacity: 0.08;
}

.header-particle.p1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(120, 120, 255, 0.5), transparent);
  top: -40px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.header-particle.p2 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 120, 180, 0.5), transparent);
  top: -30px;
  left: 50%;
  animation-delay: -3s;
  animation-duration: 10s;
}

.header-particle.p3 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(100, 220, 255, 0.5), transparent);
  top: -20px;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes headerFloat {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(30px) translateY(10px);
  }

  50% {
    transform: translateX(-20px) translateY(-5px);
  }

  75% {
    transform: translateX(15px) translateY(8px);
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.header-logo:hover {
  transform: scale(1.03);
  opacity: 1;
}

.header-logo svg {
  width: 30px;
  height: 30px;
  color: var(--text-primary);
  stroke: var(--text-primary);
  fill: var(--text-primary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), stroke var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), fill var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

/* Desktop Navigation — Enhanced Transparent Links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop .nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  letter-spacing: 0.2px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-desktop .nav-link .nav-link-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--btn-secondary-bg);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), background 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 0;
}

.nav-desktop .nav-link .nav-link-text {
  position: relative;
  z-index: 1;
}

/* Only show transparent bg on HOVER */
.nav-desktop .nav-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-desktop .nav-link:hover .nav-link-bg {
  opacity: 1;
  transform: scale(1);
  background: var(--btn-secondary-bg);
  box-shadow: 0 0 12px rgba(128, 128, 255, 0.08);
}

/* Active link - just bold text with subtle underline, no permanent bg */
.nav-desktop .nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-desktop .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--text-link);
  border-radius: 2px;
  animation: activeSlide 0.4s ease forwards;
}

@keyframes activeSlide {
  0% {
    left: 50%;
    right: 50%;
    opacity: 0;
  }

  100% {
    left: 20%;
    right: 20%;
    opacity: 1;
  }
}

/* Active link ALSO gets hover bg when hovered */
.nav-desktop .nav-link.active:hover .nav-link-bg {
  opacity: 1;
  transform: scale(1);
  animation: navGlow 2.5s ease-in-out infinite;
}

@keyframes navGlow {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(128, 128, 255, 0.15);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), opacity var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  z-index: 8999;
  padding: 24px 24px;
  transform: translateX(100%);
  transition: transform var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile .nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 18px 16px;
  border-bottom: 1px solid var(--divider);
  border-radius: 10px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), background 0.2s cubic-bezier(0.33, 1, 0.68, 1), padding-left 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-mobile .nav-mobile-link:hover {
  padding-left: 20px;
  background: var(--btn-secondary-bg);
  opacity: 1;
}

.nav-mobile .nav-mobile-link:last-child {
  border-bottom: none;
}

.nav-mobile-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

/* Header Right Group */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Trigger Button */
.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--btn-secondary-bg);
  transition: all var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.search-trigger:hover {
  background: var(--btn-hover);
  transform: scale(1.05);
}

/* Search Overlay Modal */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.3s;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider);
  background: var(--navbar-bg);
  gap: 16px;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.search-overlay.active .search-overlay-header {
  transform: translateY(0);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  transition: box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 2px rgba(67, 233, 123, 0.2);
}

.search-icon {
  color: var(--text-secondary);
  margin-right: 12px;
}

.global-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.global-search-input::placeholder {
  color: var(--text-secondary);
}

.search-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-close-btn:hover {
  background: var(--btn-hover);
  transform: scale(1.1) rotate(90deg);
}

.search-results-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Center loading spinner */
.search-results-container .loading-spinner {
  margin: 60px auto;
}

/* No Results State */
.no-results-message {
  text-align: center;
  margin-top: 60px;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

/* Dedicated Search Results Grid Layout */
#search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

/* Specifically style search cards to look compact and clean */
#search-results-grid .news-card {
  height: 100%;
}

#search-results-grid .news-card-img {
  height: 120px;
}

#search-results-grid .news-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

#search-results-grid .news-card-desc {
  font-size: 13px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 10px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: calc(var(--header-height) + 20px);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.section-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

/* Posts Page Header — title centered above pills */
.posts-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.posts-page-header .category-filter-bar {
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .posts-page-header .category-filter-bar {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .posts-page-header .category-filter-bar::-webkit-scrollbar {
    display: none;
  }
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.section-header .see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-link);
  white-space: nowrap;
}

/* ===== HERO SECTION — Animated Multi-Color Gradient ===== */
.hero-section {
  margin-bottom: 48px;
  padding-top: 12px;
}

.hero-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #0a0a14;
  aspect-ratio: 3 / 1;
  min-height: 300px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-card:hover {
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .hero-card {
  background: #1a1a2e;
}

/* Hero Background Image Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(2px) brightness(0.45);
  transition: opacity 1.2s ease-in-out, transform 8s cubic-bezier(0.33, 1, 0.68, 1);
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.03);
}

/* Animated Gradient Background Container */
.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  filter: blur(60px) saturate(150%);
  opacity: 0.7;
}

/* Individual Gradient Blobs */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #4285f4, #1a73e8);
  top: -80px;
  left: -60px;
  animation: blobMove1 10s ease-in-out infinite;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #ea4335, #f06292);
  top: -40px;
  right: -40px;
  animation: blobMove2 12s ease-in-out infinite;
  animation-delay: -3s;
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #34a853, #00e5ff);
  bottom: -80px;
  left: 30%;
  animation: blobMove3 14s ease-in-out infinite;
  animation-delay: -5s;
}

.blob-4 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #fbbc04, #ff9800);
  bottom: -60px;
  right: 15%;
  animation: blobMove4 8s ease-in-out infinite;
  animation-delay: -2s;
}

.blob-5 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #a855f7, #6366f1);
  top: 20%;
  left: 50%;
  animation: blobMove5 15s ease-in-out infinite;
  animation-delay: -7s;
}

/* Blob Animations — Each blob moves differently */
@keyframes blobMove1 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(80px, 40px, 0) scale(1.1);
  }

  50% {
    transform: translate3d(40px, 80px, 0) scale(0.95);
  }

  75% {
    transform: translate3d(-30px, 50px, 0) scale(1.05);
  }
}

@keyframes blobMove2 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(-70px, 50px, 0) scale(1.15);
  }

  50% {
    transform: translate3d(-40px, -30px, 0) scale(0.9);
  }

  75% {
    transform: translate3d(30px, 60px, 0) scale(1.1);
  }
}

@keyframes blobMove3 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(60px, -50px, 0) scale(1.2);
  }

  66% {
    transform: translate3d(-50px, -40px, 0) scale(0.85);
  }
}

@keyframes blobMove4 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(-60px, -50px, 0) scale(1.15) rotate(30deg);
  }
}

@keyframes blobMove5 {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  25% {
    transform: translate3d(-80px, 30px, 0) scale(1.1) rotate(-15deg);
  }

  50% {
    transform: translate3d(40px, -40px, 0) scale(0.9) rotate(10deg);
  }

  75% {
    transform: translate3d(60px, 50px, 0) scale(1.2) rotate(-5deg);
  }
}

/* Frosted Glass Overlay */
.hero-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

/* ===== LIVE NEWS BADGE ===== */
.hero-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-family: inherit;
  user-select: none;
  animation: liveBadgeFadeIn 0.6s ease-out forwards;
}

/* Pulsing Red Dot */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  transform: translate(-50%, -50%);
  animation: livePulse 1.5s ease-out infinite;
}

/* LIVE Text */
.live-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ff3b30;
  text-transform: uppercase;
}

/* Divider */
.live-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 300;
}

/* Live Clock */
.live-clock {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* Pulse Animation */
@keyframes livePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Badge Fade In */
@keyframes liveBadgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px 40px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.hero-label:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 82px;
}

.hero-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typing cursor */
.typing-cursor {
  display: inline;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  animation: cursorBlink 0.7s ease-in-out infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===== NEWS SLIDER SECTION ===== */
.news-slider-section {
  margin-bottom: 48px;
}

/* Slider Navigation Arrows */
.slider-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: background 0.2s cubic-bezier(0.33, 1, 0.68, 1), transform 0.15s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.slider-arrow:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

/* Slider Wrapper */
.news-slider-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
}

/* Slider Track */
.news-slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ===== CATEGORY FILTER BAR ===== */
.category-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.cat-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.cat-filter-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.cat-filter-pill.active {
  background: var(--text-link);
  border-color: var(--text-link);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* Pill Icon (SVG or text) */
.cat-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cat-pill-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Clickable tag inside post cards */
.clickable-tag {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.clickable-tag:hover {
  opacity: 0.7;
}

/* Hidden card (filtered out) */
.news-card.card-hidden {
  display: none;
}

/* Privacy Grid — Index listing */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.privacy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--text-link);
}

.privacy-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(102, 126, 234, 0.15));
  margin-bottom: 16px;
}

.privacy-card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--text-link);
}

.privacy-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .privacy-card {
    padding: 20px 14px;
  }

  .privacy-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .privacy-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .privacy-card h3 {
    font-size: 14px;
  }

  .privacy-card p {
    font-size: 11px;
  }
}

/* Latest Updates Grid */
.latest-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* News Card */
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass);
}

/* Card Image Area */
.news-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.news-card-img-icon {
  font-size: 52px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: cardIconFloat 4s ease-in-out infinite;
}

@keyframes cardIconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.news-card:nth-child(even) .news-card-img-icon {
  animation-delay: -2s;
}

/* Trending Badge (top-left of card image) */
.news-card-trending {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #4ade80;
  z-index: 3;
  letter-spacing: 0.3px;
}

.trending-icon {
  width: 12px;
  height: 12px;
  fill: #4ade80;
  flex-shrink: 0;
}

/* Views & Likes Badges (Bottom of Card) */
.news-card-footer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  flex-wrap: nowrap;
}

/* Post Inside View - Meta Header */
.post-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.meta-left,
.meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.meta-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
  flex-shrink: 0;
  transition: fill var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  /* Prevent iOS touch target swallowing when tapping the icon */
  pointer-events: none;
}

/* Make link badges hoverable and explicitly clickable on mobile */
a.meta-badge,
.clickable-badge {
  position: relative;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  /* Prevent horizontal scroll from swallowing taps on mobile */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a.meta-badge:hover,
.clickable-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  /* Slight brighten on hover */
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a.meta-badge:hover svg,
.clickable-badge:hover svg {
  fill: var(--text-primary);
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-badge svg {
  width: 13px;
  height: 13px;
  fill: var(--text-secondary);
  flex-shrink: 0;
}

/* Mobile Adjustments for Badges */
@media (max-width: 480px) {
  .post-meta-header {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    margin-bottom: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .post-meta-header::-webkit-scrollbar {
    display: none;
  }

  .meta-left,
  .meta-right {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .meta-badge {
    padding: 6px 10px;
    /* Enhanced tap area for mobile */
    font-size: 11px;
    gap: 4px;
    /* Enforce touch capability */
    pointer-events: auto;
  }

  .meta-badge svg {
    width: 13px;
    height: 13px;
  }

  .stat-badge {
    padding: 3px 6px;
    font-size: 10px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .stat-badge svg {
    width: 11px;
    height: 11px;
  }
}

/* Card Body */
.news-card-body {
  padding: 18px;
}

.news-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-link);
  margin-bottom: 8px;
  padding: 3px 8px;
  background: var(--btn-secondary-bg);
  border-radius: 4px;
}

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.news-card-date,
.news-card-read {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* View More Button Container */
.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 32px;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  border-radius: 30px;
  transition: transform var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), box-shadow var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  text-decoration: none;
}

.btn-view-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.4;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1), transform 0.3s cubic-bezier(0.33, 1, 0.68, 1), width 0.3s cubic-bezier(0.33, 1, 0.68, 1), background 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  padding: 0;
}

.slider-dot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.slider-dot.active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
  background: var(--text-link);
}

/* ===== FEATURED APPS GRID ===== */
.featured-section {
  margin-bottom: 48px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.2s cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.app-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.app-category {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.btn-get {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.15s cubic-bezier(0.33, 1, 0.68, 1);
  flex-shrink: 0;
}

.btn-get:hover {
  transform: scale(1.06);
}

/* ===== TOP APPS LIST ===== */
.top-apps-section {
  margin-bottom: 48px;
}

.top-apps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
}

.top-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  transition: background 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.top-app-item:hover {
  background: var(--bg-card);
}

.top-app-rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-tertiary);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.top-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.top-app-info {
  flex: 1;
  min-width: 0;
}

.top-app-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.top-app-category {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.top-app-btn {
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.15s cubic-bezier(0.33, 1, 0.68, 1);
  flex-shrink: 0;
}

.top-app-btn:hover {
  transform: scale(1.06);
}

/* ===== CATEGORIES GRID ===== */
.categories-section {
  margin-bottom: 48px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  padding: 20px 16px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.2s cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
}

.category-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--category-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg, var(--bg-footer));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

.site-description {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--divider);
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTENT PAGES (Privacy, Terms, etc.) ===== */
.page-content {
  padding: 48px 0;
}

.content-card {
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 48px;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.content-card h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.content-card .last-updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.content-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.content-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.content-card ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-card ul li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

/* Contact Form */
.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xs);
  outline: none;
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text-link);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  padding: 12px 32px;
  border-radius: var(--border-radius-xs);
  font-size: 15px;
  font-weight: 600;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), color var(--transition-speed) cubic-bezier(0.33, 1, 0.68, 1), transform 0.15s cubic-bezier(0.33, 1, 0.68, 1);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-1px);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER PARTICLES ===== */
.header-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.header-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: floatParticle 8s ease-in-out infinite alternate;
}

.header-particle.p1 {
  width: 200px;
  height: 200px;
  background: var(--text-link);
  top: -100px;
  left: 10%;
  animation-delay: 0s;
}

.header-particle.p2 {
  width: 150px;
  height: 150px;
  background: #8e44ad;
  top: -50px;
  right: 20%;
  animation-delay: 2s;
}

.header-particle.p3 {
  width: 100px;
  height: 100px;
  background: #2ecc71;
  bottom: -50px;
  left: 40%;
  animation-delay: 4s;
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, 20px, 0) scale(1.1);
  }
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-mobile {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  }

  .nav-mobile.open {
    bottom: 0;
  }

  .nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
  }

  .nav-mobile-icon {
    font-size: 20px;
  }

  .hamburger-btn span {
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-card {
    aspect-ratio: auto;
    min-height: 260px;
    max-height: none;
    border-radius: 20px 6px 20px 6px;
  }

  /* Mobile Category Filter Bar — horizontal scroll, no wrap */
  .category-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 8px;
    gap: 6px;
  }

  .cat-filter-pill {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Disable heavy header particles on mobile */
  .header-particle {
    display: none;
  }

  /* LIVE badge smaller on mobile */
  .hero-live-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px 4px 8px;
    gap: 5px;
  }

  .live-text {
    font-size: 9px;
  }

  .live-clock {
    font-size: 9px;
  }

  .live-dot {
    width: 6px;
    height: 6px;
  }

  .live-dot::before {
    width: 6px;
    height: 6px;
  }

  .hero-content {
    padding: 52px 20px 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-description {
    font-size: 13px;
  }

  /* GPU Optimization for mobiles: reduce blur intensity and blob sizes */
  .gradient-blob {
    filter: blur(30px);
    opacity: 0.4;
    transform: scale(0.6) translateZ(0);
  }

  /* News slider: 2 cards on mobile */
  .news-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .latest-updates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .news-card-img {
    height: 130px;
  }

  .news-card-img-icon {
    font-size: 40px;
  }

  .slider-nav-arrows {
    display: none;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .top-app-item {
    flex-wrap: wrap;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 24px;
  }

  .content-card {
    padding: 28px 0px;
    border-radius: 0;
    margin: 0;
    border-left: none;
    border-right: none;
    background: transparent;
    box-shadow: none;
  }

  .content-card h1 {
    font-size: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-card {
    min-height: 200px;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 16px 4px 16px 4px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-content {
    padding: 44px 16px 24px;
  }

  /* Mobile Grid — 2 cols */
  .latest-updates-grid,
  #search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .news-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  /* Card image */
  .news-card-img {
    height: 120px;
  }

  /* Smaller badges on mobile */
  .news-card-trending,
  .news-card-views {
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 12px;
    gap: 2px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.65);
  }

  .trending-icon,
  .views-icon {
    width: 10px;
    height: 10px;
  }

  .news-card-title {
    font-size: 13px;
  }

  .news-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .news-card-body {
    padding: 10px;
  }

  .news-card-tag {
    font-size: 9px;
    padding: 2px 8px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px 0px;
  }
}

/* ===== IMAGE LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: zoom-out;
}

/* ===== SEARCH RESULTS ANIMATION ===== */
.search-card-enter {
  animation: searchCardFadeIn 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  opacity: 0;
  transform: translateY(15px);
}

@keyframes searchCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  object-fit: contain;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-actions {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0.1s, opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0.1s;
}

.lightbox-overlay.active .lightbox-actions {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.post-image-clickable {
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.post-image-clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===== PEOPLE ALSO ASK (PAA) ACCORDION ===== */
.seo-accordion-section {
  font-family: var(--font-family);
}

.paa-accordion {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.paa-item {
  border-bottom: 1px solid var(--border-color);
}

.paa-item:last-child {
  border-bottom: none;
}

.paa-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
}

.paa-btn span {
  font-weight: 400;
}

.paa-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.paa-item.active .paa-btn svg {
  transform: rotate(180deg);
}

.paa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.paa-content-inner {
  padding-bottom: 20px;
  padding-top: 5px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.paa-content-inner p {
  margin: 0;
}

/* ===== REAL-TIME LIKES & VIEWS CSS ===== */
@keyframes heartFloatUpFade {
  0% {
    transform: scale(0.5) translate(-50%, -50%);
    opacity: 0;
  }

  20% {
    transform: scale(1.3) translate(-50%, -80%);
    opacity: 1;
  }

  80% {
    transform: scale(1) translate(-50%, -150%);
    opacity: 1;
  }

  100% {
    transform: scale(0.9) translate(-50%, -180%);
    opacity: 0;
  }
}

.floating-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  color: #ff3b30;
  animation: heartFloatUpFade 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-like-btn.liked {
  color: #ff3b30 !important;
}

.interactive-like-btn.liked .heart-icon {
  fill: #ff3b30 !important;
  color: #ff3b30 !important;
  transform: scale(1.15);
}

.interactive-like-btn.liked .count {
  font-weight: 600;
}

/* ===== CREATOR PROFILE STYLES ===== */
.creator-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.creator-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* To allow glow */
}

.creator-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -6px; 
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2997ff 0%, #ff2975 33%, #ffdf00 66%, #2997ff 100%);
  animation: rotateRing 3s linear infinite;
  z-index: 0;
}

.creator-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0px;
  background-color: var(--bg-primary);
  border-radius: 50%;
  z-index: 1;
}

.creator-img {
  position: relative;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 4px solid var(--bg-primary);
  background-color: var(--bg-primary);
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.creator-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.creator-title {
  font-size: 1.1rem;
  color: var(--text-link);
  font-weight: 600;
  margin-bottom: 12px;
}

.creator-email {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 30px;
}