/*
Theme Name: CroxyProxyCom
Theme URI: https://www.croxyproxycom.com/
Author: CroxyProxyCom
Description: Custom SEO-ready theme for croxyproxycom.com. Ad slots are wired for the Ad Inserter plugin — space is reserved via CSS so ads don't shift the layout (CLS-safe).
Version: 1.1
Text Domain: croxyproxycom
*/

:root{
  --bg: #F6F4EC;
  --panel: #FFFFFF;
  --line: #E1DDCC;
  --text: #262A1E;
  --muted: #6E735F;
  --green: #4C8C3C;
  --green-dark: #386B2C;
  --green-soft: #E9F0E2;
  --link: #2F6FB0;
  --radius: 10px;
  --maxw: 680px;
  --shadow: 0 1px 3px rgba(38,42,30,0.06), 0 8px 24px rgba(38,42,30,0.05);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  text-align:center;
}
a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }
img,svg{ display:block; max-width:100%; height:auto; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
::selection{ background: var(--green-soft); color: var(--green-dark); }

/* ---------- Top bars ---------- */
.topbar{ background: var(--green-dark); color: #EFF6EA; font-size: 0.82rem; padding: 9px 12px; }
.topbar a{ color: #FFE9A8; font-weight: 500; }

.userbar{ padding: 12px 0 2px; font-size: 0.85rem; color: var(--muted); }
.userbar a{ margin: 0 6px; color: var(--muted); }
.userbar a:hover{ color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero{ padding: 40px 0 8px; }
.wordmark{ font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; }
.wordmark a{ color: inherit; }
.wordmark .c1{ color: var(--green); }
.wordmark .c2{ color: var(--text); }
.hero-tagline{ color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.hero p{ color: var(--muted); max-width: 540px; margin: 8px auto; font-size: 0.95rem; }

/* ---------- Primary + footer nav menus ----------
   wp_nav_menu() always outputs a plain <ul><li> list. This turns it into a
   single horizontal row of pill links and removes the default bullets. */
.primary-nav ul{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap: 4px; margin: 6px 0 0; padding:0; font-size: 0.86rem; }
.primary-nav li{ margin:0; }
.primary-nav a{ color: var(--muted); padding: 6px 12px; border-radius: 20px; transition: background .15s, color .15s; }
.primary-nav a:hover{ color: var(--green-dark); background: var(--green-soft); text-decoration:none; }

footer .flinks ul{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap: 4px 0; margin:0; padding:0; }
footer .flinks li{ margin:0; }
footer .flinks a{ padding: 0 10px; }
footer .flinks li:not(:last-child)::after{ content:"·"; margin-left: 4px; color: var(--line); }

/* ---------- URL tool ---------- */
.url-block{ padding: 26px 0 6px; }
.url-bar{
  display:flex; max-width: 520px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; background: var(--panel); box-shadow: var(--shadow);
}
.url-bar input{ flex:1; border:none; outline:none; padding: 14px 16px; font-size: 0.95rem; background: transparent; color: var(--text); }
.url-bar button{ background: var(--green); color:#fff; border:none; padding: 0 24px; font-weight:600; font-size:0.92rem; cursor:pointer; transition: background .15s; }
.url-bar button:hover{ background: var(--green-dark); }
.premium-btn{
  display:inline-flex; align-items:center; gap:6px; background: var(--panel);
  color: var(--green-dark); border: 1px solid var(--green); padding: 8px 18px;
  border-radius: 20px; font-size: 0.86rem; font-weight:600; margin-top: 16px; cursor:pointer;
  transition: background .15s, color .15s;
}
.premium-btn:hover{ background: var(--green); color:#fff; }

.quicklinks{ font-size: 0.85rem; color: var(--muted); max-width: 560px; margin: 26px auto 0; }
.quicklinks a{ margin: 0 2px; }

.socials{ display:flex; gap:10px; justify-content:center; margin: 18px 0 8px; }
.socials a{
  width: 32px; height:32px; border-radius:50%; background: var(--green-soft);
  color: var(--green-dark); display:flex; align-items:center; justify-content:center;
  font-size: 0.8rem; font-weight:700; transition: background .15s, transform .15s;
}
.socials a:hover{ background: var(--green); color:#fff; transform: translateY(-1px); text-decoration:none; }

/* ---------- Ad Inserter block wrapper ----------
   Reserves space BEFORE the plugin's ad script runs, so the ad filling in never
   causes a layout jump (protects CLS). The dashed background is only a visual
   placeholder for while a block isn't configured in Ad Inserter yet — once a
   real ad renders inside, it sits on top and covers the pattern. */
.ad-slot{
  max-width: var(--maxw); margin: 30px auto; min-height: 100px;
  display:flex; align-items:center; justify-content:center;
  background: repeating-linear-gradient(45deg, #EEEBE0, #EEEBE0 10px, #E7E3D6 10px, #E7E3D6 20px);
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 0.72rem;
}
.ad-slot.leaderboard{ min-height: 90px; }
.ad-slot.in-article{ min-height: 250px; max-width: 336px; }
@media (min-width: 728px){ .ad-slot.leaderboard{ min-height: 90px; max-width: 728px; } }

/* ---------- Content sections ----------
   Alternating panel background gives the long page visual rhythm instead of one
   flat wall of text — easier to scan for users, and clean semantic sectioning
   for search engines. */
section.copy{ padding: 40px 0; text-align:left; }
section.copy:nth-of-type(even){ background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.copy .wrap{ max-width: 620px; }
section.copy h2{ font-size: 1.15rem; color: var(--green-dark); display:flex; align-items:center; gap:8px; justify-content:center; text-align:center; margin-bottom: 16px; }
section.copy h2::before{
  content: "✓"; color:#fff; background: var(--green); width:20px; height:20px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center; font-size: 0.68rem; flex-shrink:0;
}
section.copy p{ color: var(--text); font-size: 0.94rem; text-align:center; margin: 0 auto 12px; max-width: 560px; }
section.copy ul, section.copy ol{ text-align:left; max-width: 520px; margin: 16px auto 0; padding-left: 4px; color: var(--text); font-size: 0.92rem; list-style:none; counter-reset: item; }
section.copy ul li, section.copy ol li{ margin-bottom: 10px; padding-left: 22px; position:relative; }
section.copy ul li::before{ content:"—"; position:absolute; left:0; color: var(--green); font-weight:700; }
section.copy ol li{ counter-increment: item; }
section.copy ol li::before{ content: counter(item); position:absolute; left:0; color: var(--green-dark); font-weight:700; font-size:0.82rem; }

/* ---------- FAQ ---------- */
.faq-item{ border-top: 1px solid var(--line); padding: 18px 4px; text-align:left; max-width: 560px; margin: 0 auto; }
.faq-item:last-of-type{ border-bottom: 1px solid var(--line); }
.faq-item summary{ cursor:pointer; font-weight:600; font-size: 0.97rem; }
.faq-item summary:hover{ color: var(--green-dark); }
.faq-item p{ color: var(--muted); margin: 10px 0 0; font-size: 0.9rem; text-align:left; }

/* ---------- Footer ---------- */
footer{ padding: 40px 0 30px; font-size: 0.82rem; color: var(--muted); }
footer .copyright{ margin-top: 14px; }

@media (max-width: 480px){
  .wordmark{ font-size: 1.8rem; }
  .url-bar{ flex-direction: column; box-shadow:none; }
  .url-bar input{ padding: 13px 14px; }
  .url-bar button{ padding: 13px; }
  section.copy{ padding: 30px 0; }
}
