/*
Theme Name: Linkora theme
Theme URI: https://kisskh.space
Author: Asim Javed
Author URI: https://kisskh.space
Description: A modern dark streaming theme for Asian dramas, movies & shows.
Version: 2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linkora-theme
*/

/* =====================================================================
   CSS CUSTOM PROPERTIES  (overridden via Theme Options → Appearance)
   ===================================================================== */
:root {
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Backgrounds */
  --bg-base:     #09090f;
  --bg-surface:  #0f0f1b;
  --bg-card:     #171726;
  --bg-elevated: #1f1f32;
  --bg-hover:    rgba(255,255,255,0.05);

  /* Text */
  --txt-primary:   #f0f0fa;
  --txt-secondary: #a0a0c4;
  --txt-muted:     #6868888;

  /* Brand accent — purple → blue  (customisable via admin) */
  --a1: #7c3aed;
  --a2: #3b82f6;
  --accent-grad:   linear-gradient(135deg, var(--a1) 0%, var(--a2) 100%);
  --accent-glow:   0 0 24px rgba(124,58,237,0.45);
  --shadow-accent: 0 8px 24px rgba(124,58,237,0.35);

  /* Download accent — orange → red  (customisable via admin) */
  --d1: #f97316;
  --d2: #ef4444;
  --dl-grad:   linear-gradient(135deg, var(--d1) 0%, var(--d2) 100%);
  --shadow-dl: 0 8px 24px rgba(249,115,22,0.35);

  /* Success */
  --s1: #10b981;
  --s2: #059669;
  --success-grad:   linear-gradient(135deg, var(--s1) 0%, var(--s2) 100%);
  --shadow-success: 0 8px 24px rgba(16,185,129,0.35);

  /* Borders */
  --border:       rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.20);

  /* Geometry */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(0,0,0,0.45);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.65);

  /* Motion */
  --ease:        cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--txt-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }


/* =====================================================================
   LAYOUT
   ===================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.88; }

.site-logo .logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.site-logo .logo-tagline {
  font-size: 0.68rem;
  color: var(--txt-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.main-nav li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt-secondary);
  transition: all 0.22s var(--ease-smooth);
  border: 1px solid transparent;
}

.main-nav li a:hover {
  color: var(--txt-primary);
  background: var(--bg-hover);
  border-color: var(--border);
}

.main-nav li.current-menu-item a,
.main-nav li.current_page_item a {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}


/* =====================================================================
   HERO SECTION  (homepage page 1 only)
   ===================================================================== */
.hero-section {
  background: linear-gradient(160deg, var(--bg-surface) 0%, #0b0b18 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -40px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { max-width: 740px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.28);
  color: #a78bfa;
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
  color: var(--txt-primary);
}

.hero-title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  color: var(--txt-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--txt-secondary);
}

.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
  flex-shrink: 0;
}


/* =====================================================================
   CONTENT AREA
   ===================================================================== */
.content-area {
  padding: 2.5rem 0 3rem;
}


/* =====================================================================
   SECTION HEADING
   ===================================================================== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.section-heading-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent-grad);
  flex-shrink: 0;
}

.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt-primary);
}

.section-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--txt-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
}


/* =====================================================================
   POSTS LIST  (index.php)
   ===================================================================== */
.posts-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Desktop column header */
.posts-list-head {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(59,130,246,0.12) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  white-space: nowrap;
}

.posts-list-head .col-title { flex: 1; }
.posts-list-head .col-action { width: 110px; text-align: center; }

/* Each row */
.post-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--bg-hover); }

.post-title-link {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--txt-primary);
  transition: color 0.18s ease;
}

.post-title-link:hover { color: #a78bfa; }

.post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.post-row-empty {
  text-align: center;
  padding: 2.5rem;
  color: var(--txt-muted);
  font-size: 0.92rem;
}


/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 3px;
}

/* Download */
.btn-download {
  background: var(--dl-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.28);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dl);
  color: #fff;
}
.btn-download:active { transform: translateY(0); }

/* Copy */
.btn-copy {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.28);
}
.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}
.btn-copy:active { transform: translateY(0); }

/* Generate (download page) */
.btn-generate {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.28);
  font-size: 0.85rem;
  padding: 0.52rem 1.25rem;
}
.btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-generate:disabled {
  background: linear-gradient(135deg, #2a2a3a, #363646);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* Final download (revealed) */
.btn-dl-final {
  background: var(--success-grad);
  color: #fff;
  box-shadow: var(--shadow-success);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.52rem 1.3rem;
}
.btn-dl-final:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--txt-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--txt-primary);
}

/* Shimmer animation on generate button */
.btn-shimmer {
  position: absolute;
  top: 0; left: -150%;
  width: 150%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shimmerMove 1.4s infinite;
  pointer-events: none;
}
@keyframes shimmerMove { 0%{left:-150%} 100%{left:150%} }


/* =====================================================================
   PAGINATION  (index.php)
   ===================================================================== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-wrap .page-numbers:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  color: var(--txt-primary);
}

.pagination-wrap .page-numbers.current {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.pagination-wrap .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  color: var(--txt-muted);
}


/* =====================================================================
   DOWNLOAD PAGE
   ===================================================================== */
.download-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.download-header-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--dl-grad);
}

.download-header-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  background: var(--dl-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-header-card p {
  color: var(--txt-secondary);
  font-size: 0.87rem;
  line-height: 1.65;
}

/* Download section */
.download-section { margin-bottom: 2.2rem; }

.download-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.download-section-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* Download list */
.download-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Desktop column header */
.dl-list-head {
  display: flex;
  align-items: center;
  padding: 0.78rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  background: rgba(124,58,237,0.07);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dl-list-head .col-label { width: 160px; flex-shrink: 0; }
.dl-list-head .col-action { flex: 1; }

/* Each row */
.dl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: var(--bg-hover); }

.dl-row-label { width: 160px; flex-shrink: 0; }
.dl-row-action { flex: 1; }

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.3rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--txt-primary);
}

.server-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  flex-shrink: 0;
}

/* Countdown timer */
.dl-timer-wrap {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.dl-timer-wrap.on { display: flex; }

.dl-c-ring {
  position: relative;
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.dl-c-ring svg { transform: rotate(-90deg); }
.dl-c-track { fill:none; stroke: var(--bg-elevated); stroke-width:4; }
.dl-c-fill  {
  fill:none; stroke:url(#dlGrad); stroke-width:4;
  stroke-linecap:round; stroke-dasharray:113; stroke-dashoffset:0;
  transition: stroke-dashoffset 0.1s linear;
}
.dl-c-num {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  font-size:0.88rem; font-weight:800; color:var(--txt-primary);
}

.dl-prog-wrap { flex:1; min-width:90px; }
.dl-prog-label { font-size:0.72rem; color:var(--txt-muted); margin-bottom:5px; }
.dl-prog-track { height:4px; background:var(--bg-elevated); border-radius:2px; overflow:hidden; }
.dl-prog-fill  { height:100%; background:var(--accent-grad); border-radius:2px; width:0%; transition:width 0.1s linear; }

/* Revealed download */
.dl-reveal { display:none; margin-top:0.8rem; animation:dlFadeUp 0.4s ease; }
.dl-reveal.on { display:block; }

.dl-reveal-inner {
  display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:rgba(16,185,129,0.07); border:1px solid rgba(16,185,129,0.22);
  border-radius:var(--radius-md); padding:0.7rem 1rem;
}

.dl-note { display:inline-flex; align-items:center; gap:5px; color:var(--s1); font-size:0.78rem; font-weight:500; }

/* Info box (hard/no subtitles) */
.dl-info-box {
  display:flex; gap:12px; align-items:flex-start;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:1.1rem 1.3rem;
  color:var(--txt-secondary); font-size:0.9rem; line-height:1.6;
}
.dl-info-icon { display:inline-flex; flex-shrink:0; margin-top:2px; }


/* =====================================================================
   PAGE.PHP CONTENT
   ===================================================================== */
.page-content-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.page-content-wrap h1, .page-content-wrap h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--txt-primary);
}
.page-content-wrap h1 { font-size: 1.8rem; letter-spacing: -0.025em; }
.page-content-wrap h2 { font-size: 1.2rem; margin-top: 1.5rem; }

.page-content-wrap p, .page-content-wrap li {
  color: var(--txt-secondary);
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 0.6rem;
}

.page-content-wrap ul { padding-left: 1.5rem; list-style: disc; }
.page-content-wrap ul li::marker { color: var(--a1); }


/* =====================================================================
   SHORTCODE TABLE  (shortcodes.php)
   ===================================================================== */
.shortcode-table-wrap { overflow-x: auto; }

.shortcode-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.shortcode-table th {
  padding: 0.78rem 1.1rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--txt-secondary);
  background: rgba(124,58,237,0.07);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.shortcode-table td {
  padding: 0.78rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.shortcode-table tbody tr:last-child td { border-bottom: none; }
.shortcode-table tbody tr:hover { background: var(--bg-hover); }

.shortcode-pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.shortcode-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--txt-secondary);
  font-size: 0.84rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.shortcode-pagination .page-numbers:hover {
  background: var(--bg-elevated);
  color: var(--txt-primary);
}

.shortcode-pagination .page-numbers.current {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}


/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-section-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 1.1rem;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.38rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--txt-secondary);
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  color: var(--txt-primary);
}

.footer-copyright {
  text-align: center;
  font-size: 0.78rem;
  color: var(--txt-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}


/* =====================================================================
   NOTIFICATION TOAST
   ===================================================================== */
.notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--txt-primary);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.notification-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes dlFadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.06); opacity:0.85; }
}

@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    min-height: auto;
    gap: 0.75rem;
  }

  .main-nav { flex-wrap: wrap; gap: 0.2rem; }
  .main-nav li a { padding: 0.38rem 0.85rem; font-size: 0.83rem; }

  .hero-section { padding: 2.5rem 0 1.8rem; }
  .hero-title   { font-size: 2rem; }

  .download-header-card h1 { font-size: 1.3rem; }
  .download-header-card { padding: 1.3rem 1.4rem; }

  .page-content-wrap { padding: 1.5rem; }
}

@media (max-width: 540px) {
  .hero-title { font-size: 1.65rem; }

  .posts-list-head { display: none; }

  .post-row {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .post-title-link {
    flex: none;
    width: 100%;
  }

  .post-actions {
    width: 100%;
  }

  .post-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .btn { padding: 0.44rem 0.85rem; font-size: 0.78rem; }
  .btn-text-hide { display: none; }

  .pagination-wrap .page-numbers { min-width: 32px; height: 32px; font-size: 0.8rem; }

  .dl-list-head { display: none; }

  .dl-row {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
  }

  .dl-row-label,
  .dl-row-action {
    width: 100%;
  }
}


/* =====================================================================
   SITE LINKS SECTION  (configurable position via Theme Options)
   ===================================================================== */
.site-links-section {
  background: linear-gradient(135deg,
    rgba(124,58,237,0.07) 0%,
    rgba(59,130,246,0.05) 50%,
    rgba(124,58,237,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}

/* When placed immediately after the sticky header — no top border overlap */
.site-links-section.pos-after-header { border-top: none; }

/* When placed inside the footer area */
.site-links-section.pos-before-footer {
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 0 0 2rem;
}

.links-section-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 0.9rem;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* ── Link icon ── */
.fl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  overflow: visible;
  line-height: 0;
}
.fl-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  fill: currentColor;
  opacity: 0.9;
  overflow: visible;
}

/* ── Base footer link ── */
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.44rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--txt-secondary);
  transition: all 0.25s ease;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.footer-link:hover {
  background: var(--bg-elevated);
  border-color: rgba(255,255,255,0.28);
  color: var(--txt-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Shine sweep — fires on hover for all variants */
.footer-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.28),
    transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}

.footer-link:hover::before {
  animation: flShine 0.55s ease forwards;
}

@keyframes flShine {
  from { left: -100%; }
  to   { left: 160%; }
}

/* ── Style variants ── */

/* gradient-purple  (brand) */
.fl-gradient-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(124,58,237,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-purple:hover {
  color: #fff; background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
  box-shadow: 0 7px 22px rgba(124,58,237,0.55); transform: translateY(-3px);
}

/* gradient-orange */
.fl-gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(249,115,22,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-orange:hover {
  color: #fff; background: linear-gradient(135deg, #ea6c0d 0%, #dc2626 100%);
  box-shadow: 0 7px 22px rgba(249,115,22,0.55); transform: translateY(-3px);
}

/* gradient-green */
.fl-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(16,185,129,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-green:hover {
  color: #fff; background: linear-gradient(135deg, #0ea872 0%, #047857 100%);
  box-shadow: 0 7px 22px rgba(16,185,129,0.55); transform: translateY(-3px);
}

/* gradient-pink */
.fl-gradient-pink {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(236,72,153,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-pink:hover {
  color: #fff; background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  box-shadow: 0 7px 22px rgba(236,72,153,0.55); transform: translateY(-3px);
}

/* gradient-teal */
.fl-gradient-teal {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(6,182,212,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-teal:hover {
  color: #fff; background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  box-shadow: 0 7px 22px rgba(6,182,212,0.55); transform: translateY(-3px);
}

/* gradient-gold */
.fl-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px rgba(245,158,11,0.32);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.fl-gradient-gold:hover {
  color: #fff; background: linear-gradient(135deg, #d97706 0%, #ea6c0d 100%);
  box-shadow: 0 7px 22px rgba(245,158,11,0.55); transform: translateY(-3px);
}

/* glass */
.fl-glass {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--txt-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fl-glass:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.32);
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.08);
}

/* neon */
.fl-neon {
  background: rgba(124,58,237,0.06);
  border: 1.5px solid #7c3aed;
  color: #c4b5fd;
  box-shadow: 0 0 10px rgba(124,58,237,0.35), inset 0 0 12px rgba(124,58,237,0.08);
  text-shadow: 0 0 8px rgba(196,181,253,0.85);
}
.fl-neon:hover {
  color: #fff; border-color: #a78bfa;
  background: rgba(124,58,237,0.15);
  box-shadow: 0 0 20px rgba(124,58,237,0.65), inset 0 0 20px rgba(124,58,237,0.15);
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(255,255,255,0.8);
}

/* outline */
.fl-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--txt-secondary);
}
.fl-outline:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  color: var(--txt-primary); transform: translateY(-2px);
}

/* dark */
.fl-dark {
  background: #15152a;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--txt-secondary);
}
.fl-dark:hover {
  background: #1e1e38; color: var(--txt-primary);
  border-color: rgba(255,255,255,0.18); transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 540px) {
  .footer-link { font-size: 0.78rem; padding: 0.38rem 0.9rem; }
}

/* ── Logo types ──────────────────────────────────────────────────── */
/* Text-group (used for text & text_svg types) */
.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Icon box – gradient pill with hover rotate */
.logo-icon-box {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124,58,237,0.38);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
}
.site-logo:hover .logo-icon-box {
  transform: rotate(14deg) scale(1.1);
  box-shadow: 0 6px 22px rgba(124,58,237,0.55);
}
.logo-icon-box svg {
  width: 22px; height: 22px;
  fill: #fff;
  display: block;
}

/* Image logo */
.logo-type-image .logo-img {
  height: 44px; width: auto; max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.site-logo:hover .logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.52));
}

@media (max-width: 480px) {
  .logo-icon-box { width: 32px; height: 32px; border-radius: 8px; }
  .logo-icon-box svg { width: 18px; height: 18px; }
  .logo-type-image .logo-img { height: 36px; }
}
