﻿/**
 * Neruda Modern UI — Liquid Glass, Bento Grid & Tactile Elements
 * Version: 2026.1
 */

:root {
  --ng-surface-glass: rgba(25, 27, 34, 0.72);
  --ng-surface-border: rgba(255, 255, 255, 0.12);
  --ng-surface-border-gold: rgba(216, 178, 122, 0.35);
  --ng-blur: 20px;
  --ng-radius-card: 16px;
  --ng-radius-btn: 10px;
  --ng-gold: #d8b27a;
  --ng-gold-hover: #e6c28f;
  --ng-accent-sand: rgba(216, 178, 122, 0.15);
  --ng-accent-stone: rgba(147, 161, 180, 0.15);
  --ng-accent-soil: rgba(120, 150, 100, 0.15);
}

/* 1. Header Liquid Glass on Scroll */
.header--row.is-sticky,
.site-header.is-scrolled,
.header-main-inner {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.glass-active .header-main-inner {
  background: rgba(18, 20, 26, 0.82) !important;
  backdrop-filter: blur(var(--ng-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--ng-blur)) saturate(180%);
  border-bottom: 1px solid var(--ng-surface-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 2. Tactile Buttons & Elements */
button,
.btn,
.button,
input[type= submit],
.customify-btn,
.np-cta-btn,
.neruda-btn {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
}

button:active,
.btn:active,
.button:active,
input[type=submit]:active,
.customify-btn:active,
.np-cta-btn:active,
.neruda-btn:active {
  transform: scale(0.975) !important;
}

/* 3. Bento Card Enhancements */
.bento-card,
.so-panel.widget,
.panel-grid-cell .widget,
.widget-box,
.neruda-glass-card {
  position: relative;
  border-radius: var(--ng-radius-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.neruda-glass-card {
  background: var(--ng-surface-glass);
  backdrop-filter: blur(var(--ng-blur));
  -webkit-backdrop-filter: blur(var(--ng-blur));
  border: 1px solid var(--ng-surface-border);
  padding: 24px;
}

.neruda-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--ng-surface-border-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

/* Bento Accent Tinting for Categories */
.category-sheben:hover,
.card-sheben:hover {
  box-shadow: 0 12px 30px var(--ng-accent-stone), 0 0 20px rgba(160, 175, 200, 0.1);
}

.category-pesok:hover,
.card-pesok:hover {
  box-shadow: 0 12px 30px var(--ng-accent-sand), 0 0 20px rgba(216, 178, 122, 0.15);
}

.category-grunt:hover,
.card-grunt:hover {
  box-shadow: 0 12px 30px var(--ng-accent-soil), 0 0 20px rgba(120, 150, 100, 0.12);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Lazy Loaded Media Placeholder */
img[loading=lazy] {
  content-visibility: auto;
}