/*
Theme Name: VPN MK
Theme URI: https://vpn-mk.com
Author: StepFox
Description: High-converting VPN comparison block theme for North Macedonia
Version: 1.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: vpn-mk
*/

/* ============================================
   WORDPRESS NUCLEAR RESET
   Forces our styles over everything WP injects
   ============================================ */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
body.wp-theme-vpn-mk {
  margin: 0 !important;
  padding: 0 !important;
  background: #0b0f1a !important;
  color: #e2e8f0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

*,*::before,*::after { box-sizing: border-box; }

.wp-site-blocks,
.wp-site-blocks > *,
.wp-block-template-part,
.wp-block-group,
[class*="wp-container-"],
[class*="is-layout-"] {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  gap: 0 !important;
}

.wp-site-blocks { display: block !important; }

/* ============================================
   HEADER — Glassmorphism nav bar
   ============================================ */

header.wp-block-template-part {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(11, 15, 26, 0.8) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 !important;
}

.site-header.wp-block-group {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 14px 28px !important;
}

.site-header .wp-block-group.is-layout-flex,
.site-header .is-layout-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  gap: 16px !important;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.025em;
}

.logo-icon-box {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #22d3a7, #0ea5e9);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-vpn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #22d3a7 0%, #0ea5e9 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(34,211,167,0.25);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-vpn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,211,167,0.35);
  color: #fff !important;
}

/* ============================================
   HERO — Full impact landing
   ============================================ */

.hero-section {
  padding: 160px 0 100px !important;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(34,211,167,0.07) 0%, transparent 70%);
}

.hero-shield {
  width: 100px; height: 100px;
  margin: 0 auto 28px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(34,211,167,0.25));
}

@keyframes float {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-14px) }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,211,167,0.08);
  color: #22d3a7;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(34,211,167,0.2);
  margin-bottom: 28px;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  line-height: 1.1 !important;
  margin: 0 0 20px !important;
  color: #fff !important;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3a7, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  color: #8896ab !important;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #22d3a7;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #5a6a80;
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8a9e;
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-icon { font-size: 1.15rem; }

/* ============================================
   VPN CARDS — The money maker
   ============================================ */

.vpn-card {
  background: linear-gradient(180deg, rgba(22,28,45,1) 0%, rgba(17,23,39,1) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  margin-bottom: 20px;
}

.vpn-card:hover {
  border-color: rgba(34,211,167,0.25);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}

.vpn-card.featured {
  border-color: rgba(34,211,167,0.4);
  box-shadow: 0 0 0 1px rgba(34,211,167,0.15), 0 8px 32px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(26,35,55,1) 0%, rgba(17,23,39,1) 100%);
}

.vpn-card.featured::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #22d3a7, #0ea5e9);
}

/* Card Header Grid */
.vpn-card-header {
  display: grid;
  grid-template-columns: 52px 68px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
}

.vpn-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.rank-number.gold { color: #fbbf24; }
.rank-number.silver { color: #8896ab; }
.rank-number.bronze { color: #e59c2e; }

.rank-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(34,211,167,0.1);
  color: #22d3a7;
  padding: 3px 7px;
  border-radius: 50px;
  white-space: nowrap;
}

/* Logo squares */
.vpn-logo {
  width: 68px; height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.vpn-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

/* VPN Info */
.vpn-info { display: flex; flex-direction: column; gap: 6px; }

.vpn-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.vpn-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vpn-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
}

.vpn-price {
  font-size: 0.82rem;
  color: #7a8a9e;
}

.vpn-price strong {
  color: #e2e8f0;
  font-size: 1rem;
}

.vpn-discount {
  background: rgba(34,211,167,0.12);
  color: #22d3a7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* CTA column */
.vpn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 175px;
}

.vpn-action .btn-vpn { width: 100%; }

.vpn-guarantee {
  font-size: 0.68rem;
  color: #5a6a80;
}

/* Stats Bar */
.vpn-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}

.vpn-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 8px;
  border-right: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.vpn-stat:last-child { border-right: none; }
.vpn-stat-icon { font-size: 0.95rem; }

.vpn-stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #22d3a7;
}

.vpn-stat-val.good { color: #fbbf24; }

.vpn-stat-lbl {
  font-size: 0.6rem;
  color: #5a6a80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Feature Tags */
.vpn-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 28px 18px;
}

.vpn-feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #7a8a9e;
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.vpn-feat .ck { color: #22d3a7; font-weight: 700; }

/* ============================================
   BENEFIT CARDS
   ============================================ */

.benefit-card {
  background: rgba(22,28,45,0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: rgba(34,211,167,0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.benefit-icon { font-size: 2.2rem; margin-bottom: 18px; }
.benefit-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #e2e8f0; }
.benefit-text { font-size: 0.85rem; color: #7a8a9e; line-height: 1.6; margin: 0; }

/* ============================================
   STEPS
   ============================================ */

.step-card { text-align: center; }

.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(34,211,167,0.08);
  border: 2px solid rgba(34,211,167,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #22d3a7;
  margin: 0 auto 20px;
}

.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #e2e8f0; }
.step-text { font-size: 0.85rem; color: #7a8a9e; line-height: 1.6; margin: 0; }

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  background: rgba(22,28,45,0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(34,211,167,0.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: #22d3a7; }

.faq-toggle {
  font-size: 1.15rem;
  color: #5a6a80;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); color: #22d3a7; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 22px 18px;
  color: #7a8a9e;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CTA BOX
   ============================================ */

.cta-box {
  background: linear-gradient(180deg, rgba(26,35,55,1) 0%, rgba(17,23,39,1) 100%);
  border: 1px solid rgba(34,211,167,0.2);
  border-radius: 24px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,167,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 { color: #fff !important; }
.cta-box p { color: #7a8a9e !important; }

/* ============================================
   FOOTER
   ============================================ */

footer.wp-block-template-part {
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer .wp-block-group {
  max-width: 700px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
}

.footer-disclosure {
  font-size: 0.78rem;
  color: #5a6a80;
  line-height: 1.7;
  text-align: center;
  margin: 0 auto 16px;
}

.footer-copyright {
  font-size: 0.7rem;
  color: #3d4c60;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .vpn-card-header {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 16px !important;
    padding: 22px 20px !important;
  }
  .vpn-rank { flex-direction: row; justify-content: center; }
  .vpn-logo { margin: 0 auto; }
  .vpn-meta { justify-content: center; }
  .vpn-action { min-width: unset; width: 100%; }
  .vpn-stats-bar { grid-template-columns: repeat(3, 1fr) !important; }
  .vpn-features { justify-content: center; }
  .hero-stats { gap: 36px; }
}

@media (max-width: 680px) {
  .hero-section { padding: 130px 0 64px !important; }
  .hero-section h1 { font-size: 2rem !important; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .trust-items { gap: 14px; }
  .vpn-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
  .cta-box { padding: 48px 24px; }
  .site-header.wp-block-group { padding: 12px 16px !important; }
}
