/* =========================================================
   ES PREMIUM — Luxury Obsidian & Brushed Gold UI
   Loaded exclusively on ES PREMIUM page, archive & articles.
   Version: 24.0
   ========================================================= */

:root {
  --esp-obsidian: #070604;
  --esp-velvet: #0e0c08;
  --esp-surface: #14110a;
  --esp-surface-2: #1b160d;
  --esp-surface-hover: #231c10;
  --esp-gold: #eab308;
  --esp-gold-light: #f6d983;
  --esp-gold-pale: #fdf3d0;
  --esp-gold-deep: #9c7212;
  --esp-gold-border: rgba(234, 179, 8, 0.28);
  --esp-gold-border-strong: rgba(246, 217, 131, 0.58);
  --esp-gold-grad: linear-gradient(135deg, #f8e29b 0%, #eab308 48%, #b37e0c 100%);
  --esp-text: #ebe6d8;
  --esp-muted: #a69c84;
}

body.es-premium-view {
  background-color: var(--esp-obsidian) !important;
  background-image: radial-gradient(ellipse 80% 35% at 50% 0%, rgba(234, 179, 8, 0.12), transparent 68%) !important;
  color: var(--esp-text) !important;
}

/* Header turns obsidian + gold trim on ES PREMIUM */
body.es-premium-view .es-header {
  background: #0a0906;
  border-bottom: 1px solid var(--esp-gold-border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
}

/* =========================================================
   1. LUXURY HERO STAGE
   ========================================================= */
.esp-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--esp-gold-border);
  background:
    radial-gradient(ellipse 65% 85% at 50% 0%, rgba(234, 179, 8, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(18, 14, 7, 0.95) 0%, rgba(7, 6, 4, 0.98) 100%);
}

/* Subtle luxury architectural hairlines */
.esp-hero::before {
  content: "";
  position: absolute;
  inset: 14px 28px;
  border: 1px solid rgba(234, 179, 8, 0.10);
  pointer-events: none;
}

.esp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--esp-gold-light), transparent);
}

.esp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.esp-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--esp-gold-border-strong);
  background: rgba(234, 179, 8, 0.08);
  color: var(--esp-gold-light);
  font-family: var(--es-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.14);
}

.esp-hero-title {
  font-family: var(--es-font-display);
  font-size: clamp(50px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff8dc 0%, #f6d983 45%, #c99212 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(234, 179, 8, 0.18));
}

.esp-hero-logo-wrap {
  margin: 6px 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.esp-hero-logo {
  display: block;
  max-width: min(460px, 86vw);
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(234, 179, 8, 0.22));
}

.esp-hero-lead {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--esp-muted);
}

.esp-hero-ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  width: 240px;
}

.esp-hero-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--esp-gold-border-strong), transparent);
}

.esp-hero-ornament i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--esp-gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.65);
}

.esp-hero-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.esp-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(20, 17, 10, 0.85);
  border: 1px solid var(--esp-gold-border);
  font-family: var(--es-font-mono);
  font-size: 11px;
  color: var(--esp-gold-pale);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.esp-perk-pill::before {
  content: "◆";
  color: var(--esp-gold);
  font-size: 9px;
}

/* =========================================================
   2. MAIN LUXURY LAYOUT (Content + VIP Supporters Plaque)
   ========================================================= */
.esp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.esp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 40px 0 52px;
  align-items: start;
}

.esp-main-grid--full {
  grid-template-columns: 1fr;
}

/* Luxury Frosted-Gold Content Surface */
.esp-content-card {
  background: linear-gradient(180deg, rgba(24, 19, 11, 0.92) 0%, rgba(14, 12, 8, 0.96) 100%);
  border: 1px solid var(--esp-gold-border);
  border-top: 2px solid var(--esp-gold);
  padding: 36px 40px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(246, 217, 131, 0.18);
  position: relative;
}

/* Typography inside user's ES Premium page content (Gutenberg / Elementor / PPWP) */
.esp-content-card h1,
.esp-content-card h2,
.esp-content-card h3,
.esp-content-card h4,
.esp-content-card .elementor-heading-title {
  font-family: var(--es-font-display) !important;
  color: var(--esp-gold-pale) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.esp-content-card h2,
.esp-content-card .elementor-heading-title {
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 26px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--esp-gold-border);
}

.esp-content-card h2:first-child,
.esp-content-card h3:first-child {
  margin-top: 0;
}

.esp-content-card p,
.esp-content-card li,
.esp-content-card .elementor-widget-text-editor {
  color: var(--esp-text) !important;
  font-size: 16px;
  line-height: 1.75;
}

.esp-content-card p {
  margin-bottom: 16px;
}

.esp-content-card ul,
.esp-content-card ol {
  margin: 0 0 18px 22px;
}

.esp-content-card li::marker {
  color: var(--esp-gold);
}

.esp-content-card a {
  color: var(--esp-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.esp-content-card a:hover {
  color: #ffffff;
}

.esp-content-card blockquote {
  background: rgba(234, 179, 8, 0.06);
  border-left: 3px solid var(--esp-gold);
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--esp-gold-pale);
  font-style: italic;
}

.esp-content-card img {
  border: 1px solid var(--esp-gold-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* Luxury Metallic Gold Buttons (Elementor, Gutenberg, PPWP, Forms) */
.esp-content-card .elementor-button,
.esp-content-card .wp-block-button__link,
.esp-content-card input[type="submit"],
.esp-content-card button[type="submit"],
.esp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--esp-gold-grad) !important;
  color: #090704 !important;
  border: 1px solid var(--esp-gold-light) !important;
  border-radius: 2px !important;
  padding: 12px 26px !important;
  font-family: var(--es-font-display) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.esp-content-card .elementor-button:hover,
.esp-content-card .wp-block-button__link:hover,
.esp-content-card input[type="submit"]:hover,
.esp-content-card button[type="submit"]:hover,
.esp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.42);
  filter: brightness(1.06);
}

/* Password Protect WordPress (PPWP) & Login Forms — Dark Velvet & Gold */
.esp-content-card form.post-password-form,
.esp-content-card .ppw-post-password-form,
.esp-content-card .ppwp-form {
  background: rgba(10, 8, 5, 0.85) !important;
  border: 1px solid var(--esp-gold-border) !important;
  padding: 26px 28px !important;
  margin: 20px 0 !important;
}

.esp-content-card input[type="password"],
.esp-content-card input[type="text"],
.esp-content-card input[type="email"] {
  background: #090805 !important;
  border: 1px solid var(--esp-gold-border) !important;
  color: var(--esp-gold-pale) !important;
  padding: 11px 14px !important;
  font-family: var(--es-font-body);
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.esp-content-card input[type="password"]:focus,
.esp-content-card input[type="text"]:focus,
.esp-content-card input[type="email"]:focus {
  border-color: var(--esp-gold-light) !important;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.18);
}

/* =========================================================
   3. VIP SUPPORTERS PLAQUE (Engraved Gold Card)
   ========================================================= */
.esp-vip-aside {
  position: sticky;
  top: 86px;
}

.esp-vip-aside .es-sidebar-box {
  background: linear-gradient(180deg, #211a0b 0%, #130f07 100%) !important;
  border: 1px solid var(--esp-gold-border-strong) !important;
  border-top: 3px solid var(--esp-gold) !important;
  padding: 22px 24px !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(250, 204, 21, 0.25);
  margin-bottom: 20px;
}

.esp-vip-aside .es-section-title {
  color: var(--esp-gold-light) !important;
  font-size: 21px !important;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--esp-gold-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
}

.esp-vip-aside .es-section-title::before {
  content: "★ ";
  color: var(--esp-gold);
}

.esp-vip-aside p,
.esp-vip-aside li {
  color: var(--esp-text) !important;
  font-size: 14.5px;
  line-height: 1.65;
  border-bottom-color: rgba(234, 179, 8, 0.16) !important;
}

.esp-vip-aside strong,
.esp-vip-aside b {
  color: var(--esp-gold-pale);
}

/* =========================================================
   4. EXCLUSIVE ES PREMIUM ARTICLES SHOWCASE SECTION
   ========================================================= */
.esp-vault-section {
  border-top: 1px solid var(--esp-gold-border);
  background: linear-gradient(180deg, rgba(16, 13, 7, 0.96) 0%, rgba(7, 6, 4, 1) 100%);
  padding: 46px 0 64px;
}

.esp-vault-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--esp-gold-border);
  padding-bottom: 14px;
  margin-bottom: 26px;
  position: relative;
}

.esp-vault-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: var(--esp-gold-grad);
}

.esp-vault-kicker {
  display: block;
  font-family: var(--es-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--esp-gold);
  margin-bottom: 4px;
}

.esp-vault-title {
  font-family: var(--es-font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--esp-gold-pale);
}

.esp-vault-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.esp-vault-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1e180b 0%, #120e06 100%);
  border: 1px solid var(--esp-gold-border);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.esp-vault-card:hover {
  transform: translateY(-4px);
  border-color: var(--esp-gold-border-strong);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(234, 179, 8, 0.16);
}

.esp-vault-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070604;
  overflow: hidden;
}

.esp-vault-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.esp-vault-card:hover .esp-vault-thumb img {
  transform: scale(1.05);
}

.esp-vault-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 6, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.esp-vault-thumb .es-badge--premium {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  background: var(--esp-gold-grad);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.esp-vault-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.esp-vault-card-title {
  font-family: var(--es-font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--esp-gold-pale);
  transition: color 0.15s ease;
}

.esp-vault-card:hover .esp-vault-card-title {
  color: var(--esp-gold-light);
}

.esp-vault-excerpt {
  font-size: 13.5px;
  color: var(--esp-muted);
  line-height: 1.55;
  flex: 1;
}

.esp-vault-meta {
  font-family: var(--es-font-mono);
  font-size: 11px;
  color: #8c8168;
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px solid rgba(234, 179, 8, 0.14);
}

/* Luxury Archive Pagination & Layout Switcher Overrides */
body.es-premium-view .es-layout-btn.is-active,
body.es-premium-view .es-pagination .current,
body.es-premium-view .es-pagination a:hover {
  background: var(--esp-gold-grad);
  border-color: var(--esp-gold-light);
  color: #090704;
}

body.es-premium-view .es-footer {
  background: #0b0906;
  border-top: 1px solid var(--esp-gold-border);
}

/* Responsive */
@media (max-width: 1180px) {
  .esp-main-grid {
    grid-template-columns: 1fr;
  }
  .esp-vip-aside {
    position: static;
  }
  .esp-vault-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .esp-wrap,
  .esp-hero-inner {
    padding: 0 16px;
  }
  .esp-hero {
    padding: 46px 0 38px;
  }
  .esp-hero::before {
    inset: 10px 12px;
  }
  .esp-content-card {
    padding: 22px 20px;
  }
  .esp-vault-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   5. PINNED "PREDSTAVUJEME ES PREMIUM" CARD ABOVE PODPOROVATELIA
   ========================================================= */
.esp-intro-card {
  display: block;
  background: linear-gradient(180deg, #251d0c 0%, #141007 100%);
  border: 1px solid var(--esp-gold-border-strong);
  border-top: 3px solid var(--esp-gold);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(250, 204, 21, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.esp-intro-card:hover {
  transform: translateY(-2px);
  border-color: var(--esp-gold-light);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(234, 179, 8, 0.2);
}

.esp-intro-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070604;
  overflow: hidden;
  border-bottom: 1px solid var(--esp-gold-border);
}

.esp-intro-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.esp-intro-card:hover .esp-intro-thumb img {
  transform: scale(1.04);
}

.esp-intro-thumb .es-badge--premium {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: var(--esp-gold-grad);
}

.esp-intro-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esp-intro-kicker {
  font-family: var(--es-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esp-gold);
}

.esp-intro-title {
  font-family: var(--es-font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--esp-gold-pale);
}

.esp-intro-card:hover .esp-intro-title {
  color: var(--esp-gold-light);
}

.esp-intro-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--esp-muted);
}

.esp-intro-cta {
  margin-top: 4px;
  font-family: var(--es-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--esp-gold-light);
}

/* =========================================================
   6. HERO "PREDPLATIŤ" BUTTON & SIDEBAR BUY ME A COFFEE BOX
   ========================================================= */
.esp-hero-cta-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.esp-hero-subscribe-btn {
  padding: 13px 34px !important;
  font-size: 19px !important;
  letter-spacing: 0.12em !important;
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.32) !important;
}

.esp-bmc-box {
  text-align: left;
}

.esp-bmc-desc {
  margin-bottom: 16px;
  color: var(--esp-muted) !important;
  font-size: 14px;
  line-height: 1.55;
}

.esp-bmc-btn {
  width: 100%;
  padding: 12px 18px !important;
  font-size: 16px !important;
  letter-spacing: 0.08em !important;
}
