/**
 * NVS Authority Theme — custom.css
 * Hover animations, transitions, sticky header, micro-interactions
 */

/* ============================================================
   STICKY HEADER TRANSITION
   ============================================================ */
.nvs-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nvs-header--scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.09);
}

/* ============================================================
   CARD HOVER LIFT
   ============================================================ */
.nvs-grid-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nvs-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nvs-overlay-card {
  transition: box-shadow 0.3s ease;
}
.nvs-overlay-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.nvs-article-card {
  transition: background 0.2s ease;
  border-radius: 0;
}
.nvs-article-card:hover {
  background: var(--nvs-gray-light);
  padding-left: 6px;
}

/* ============================================================
   LINK UNDERLINE ANIMATION
   ============================================================ */
.nvs-grid-card__title,
.nvs-article-card__title,
.nvs-hero__news-title,
.nvs-overlay-card__title {
  background-image: linear-gradient(var(--nvs-red), var(--nvs-red));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.nvs-grid-card:hover .nvs-grid-card__title,
.nvs-article-card:hover .nvs-article-card__title,
.nvs-hero__news-item:hover .nvs-hero__news-title {
  background-size: 100% 1px;
}

/* ============================================================
   BUTTON RIPPLE / PRESS EFFECT
   ============================================================ */
.nvs-guest-cta__btn,
.nvs-about-card__link,
.nvs-btn-primary,
.nvs-header__wfu,
.nvs-wfu-form__submit {
  position: relative;
  overflow: hidden;
}
.nvs-guest-cta__btn::after,
.nvs-about-card__link::after,
.nvs-btn-primary::after,
.nvs-header__wfu::after,
.nvs-wfu-form__submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.nvs-guest-cta__btn:active::after,
.nvs-about-card__link:active::after,
.nvs-btn-primary:active::after,
.nvs-header__wfu:active::after,
.nvs-wfu-form__submit:active::after {
  opacity: 1;
}

/* ============================================================
   SHORTCUT ROW — icon bounce on hover
   ============================================================ */
.nvs-shortcuts__icon {
  transition: transform 0.25s ease;
  display: inline-block;
}
.nvs-shortcuts__item:hover .nvs-shortcuts__icon {
  transform: translateY(-4px) scale(1.15);
}

/* ============================================================
   NAV LINK — active indicator slide-in
   ============================================================ */
.nvs-nav__list li a {
  position: relative;
}
.nvs-nav__list li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--nvs-red);
  transition: left 0.25s ease, right 0.25s ease;
}
.nvs-nav__list li a:hover::after,
.nvs-nav__list li.current-menu-item > a::after {
  left: 0;
  right: 0;
}

/* ============================================================
   TRENDING NUMBERS — colour sweep on hover
   ============================================================ */
.nvs-trending__num {
  transition: color 0.25s ease, transform 0.25s ease;
}
.nvs-trending__item:hover .nvs-trending__num {
  color: var(--nvs-red);
  transform: scale(1.1);
}

/* ============================================================
   TICKER — pause on hover
   ============================================================ */
.nvs-ticker:hover .nvs-ticker__track {
  animation-play-state: paused;
}

/* ============================================================
   HERO FEATURED — scale title red on hover
   ============================================================ */
.nvs-hero__featured {
  transition: opacity 0.2s ease;
}
.nvs-hero__featured:hover {
  opacity: 0.95;
}

/* ============================================================
   CATEGORY STRIP — red bar slide up
   ============================================================ */
.nvs-shortcuts__item {
  overflow: hidden;
}

/* ============================================================
   TRUST LOGOS — reveal on hover
   ============================================================ */
.nvs-trust__logo {
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.nvs-trust__logo:hover {
  opacity: 0.9;
  color: var(--nvs-black);
  transform: translateY(-2px);
}

/* ============================================================
   TAB BUTTONS — slide highlight
   ============================================================ */
.nvs-tab-btn {
  position: relative;
  transition: all 0.2s ease;
}
.nvs-tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--nvs-red);
  transition: height 0.2s ease;
}
.nvs-tab-btn.is-active::before {
  height: 2px;
}

/* ============================================================
   FOOTER SOCIAL — rotate on hover
   ============================================================ */
.nvs-footer__social {
  transition: all 0.25s ease;
}
.nvs-footer__social:hover {
  transform: translateY(-2px) rotate(-5deg);
}

/* ============================================================
   NEWSLETTER INPUT — glow on focus
   ============================================================ */
.nvs-newsletter__input:focus {
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
  border-color: var(--nvs-red);
}

/* ============================================================
   SEARCH BAR — slide down
   ============================================================ */
.nvs-header__search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
  display: block !important; /* override display:none from style.css */
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.nvs-header__search-bar.is-active {
  max-height: 80px;
  visibility: visible;
  opacity: 1;
  padding: 12px 24px;
}
@media (min-width: 768px) {
  .nvs-header__search-bar.is-active {
    padding: 12px 48px;
  }
}

/* ============================================================
   PAGE LOAD — fade in sections
   ============================================================ */
@keyframes nvsFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nvs-hero        { animation: nvsFadeUp 0.5s ease both; }
.nvs-trust       { animation: nvsFadeUp 0.5s 0.1s ease both; }
.nvs-shortcuts   { animation: nvsFadeUp 0.5s 0.15s ease both; }
.nvs-cat-grid    { animation: nvsFadeUp 0.5s 0.2s ease both; }
.nvs-main-wrap   { animation: nvsFadeUp 0.5s 0.25s ease both; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nvs-ticker,
  .nvs-header__actions,
  .nvs-nav,
  .nvs-sidebar,
  .nvs-guest-cta,
  .nvs-footer { display: none !important; }
  .nvs-main-wrap { grid-template-columns: 1fr; }
  .nvs-single__content { padding: 0; }
}
