/*
Theme Name: HomeIPVPN
Theme URI: https://homeipvpn.com
Author: HomeIPVPN Team
Author URI: https://homeipvpn.com
Description: Clean, High-Contrast WordPress Gutenberg Block Theme for HomeIPVPN with Light/Dark Mode & Single Router Pages.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeipvpn
Tags: block-theme, full-site-editing, custom-colors, grid-layout, dark-mode
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* Dark Mode Variables */
:root {
  --homeip-bg: #0F172A;
  --homeip-card-bg: #1E293B;
  --homeip-footer-bg: #0B1120;
  --homeip-footer-border: #334155;
  --homeip-accent: #2563EB;
  --homeip-accent-hover: #1D4ED8;
  --homeip-light-blue: #3B82F6;
  --homeip-success: #10B981;
  --homeip-amazon: #F59E0B;
  --homeip-text-main: #F8FAFC;
  --homeip-text-muted: #94A3B8;
  --homeip-border: #334155;
  --homeip-header-bg: rgba(15, 23, 42, 0.95);
  --homeip-font-heading: 'Outfit', 'Inter', sans-serif;
  --homeip-font-body: 'Inter', -apple-system, sans-serif;
}

/* Light Mode Variables */
[data-theme="light"] {
  --homeip-bg: #F8FAFC;
  --homeip-card-bg: #FFFFFF;
  --homeip-footer-bg: #F1F5F9;
  --homeip-footer-border: #E2E8F0;
  --homeip-accent: #2563EB;
  --homeip-accent-hover: #1D4ED8;
  --homeip-light-blue: #2563EB;
  --homeip-success: #059669;
  --homeip-amazon: #D97706;
  --homeip-text-main: #0F172A;
  --homeip-text-muted: #475569;
  --homeip-border: #E2E8F0;
  --homeip-header-bg: rgba(255, 255, 255, 0.95);
}

body {
  font-family: var(--homeip-font-body);
  background-color: var(--homeip-bg);
  color: var(--homeip-text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--homeip-border);
  color: var(--homeip-text-main);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.theme-toggle-btn:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--homeip-light-blue);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--homeip-card-bg);
  border: 1px solid var(--homeip-border);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--homeip-success);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-byoh {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--homeip-light-blue);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Clean Professional VPN Protocol Tag Styling */
.badge-protocol {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

/* Light Theme VPN Protocol Tag Overrides */
[data-theme="light"] .badge-protocol {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--homeip-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--homeip-border);
  padding: 16px 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--homeip-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--homeip-text-main);
  text-decoration: none;
}

.brand-logo span.accent {
  color: var(--homeip-light-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--homeip-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--homeip-text-main);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #2563EB;
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #F59E0B;
  color: #0F172A !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-amazon:hover {
  background-color: #D97706;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--homeip-text-main) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--homeip-border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--homeip-light-blue);
  background: rgba(148, 163, 184, 0.1);
}

/* Router Grid Cards */
.router-card {
  background: var(--homeip-card-bg);
  border: 1px solid var(--homeip-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.router-image-placeholder {
  width: 100%;
  height: 120px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px dashed var(--homeip-border);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
  font-size: 0.875rem;
  color: var(--homeip-text-muted);
}

.spec-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--homeip-border);
}

.spec-list li.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.spec-list li.spec-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-list li span.val {
  color: var(--homeip-text-main);
  font-weight: 600;
  text-align: right;
}

.spec-list li.spec-stacked span.val {
  text-align: left;
}

/* Pricing Card */
.pricing-card {
  position: relative;
  background: var(--homeip-card-bg);
  border: 1px solid var(--homeip-border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--homeip-accent);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--homeip-accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--homeip-font-heading);
  color: var(--homeip-text-main);
  margin: 16px 0 4px 0;
}

.pricing-sub {
  color: var(--homeip-success);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* FAQ Accordion */
details.faq-item {
  background: var(--homeip-card-bg);
  border: 1px solid var(--homeip-border);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

details.faq-item[open] {
  border-color: var(--homeip-light-blue);
}

summary.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--homeip-text-main);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 12px;
  color: var(--homeip-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Single Router Wrapper */
.single-router-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.router-spec-box {
  background: var(--homeip-card-bg);
  border: 1px solid var(--homeip-border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Footer (Fully Responsive to Light / Dark Mode) */
.site-footer {
  background: var(--homeip-footer-bg);
  border-top: 1px solid var(--homeip-footer-border);
  padding: 60px 24px 30px 24px;
  margin-top: 80px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: var(--homeip-text-main);
}

.footer-col a {
  color: var(--homeip-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--homeip-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--homeip-footer-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--homeip-text-muted);
  font-size: 0.85rem;
}
