/*
 Theme Name:   WPDetector Blocksy Child
 Theme URI:    https://wpdetector.com
 Description:  Blocksy child theme for WPDetector.com — warm, approachable, modern redesign.
 Author:        WPDetector
 Template:      blocksy
 Version:       1.0.0
 Text Domain:   blocksy-child
*/

/* ============================================================
   GOOGLE FONTS — Nunito (headings) + Inter (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand palette — warm coral-and-cream */
  --wpd-primary:        #FF6B35;   /* warm coral-orange */
  --wpd-primary-dark:   #E8531E;
  --wpd-primary-light:  #FF8F65;
  --wpd-accent:         #2D6A4F;   /* deep teal-green */
  --wpd-accent-light:   #52B788;
  --wpd-success:        #2D9E6B;
  --wpd-danger:         #E74C3C;
  --wpd-warning:        #F6A623;

  /* Neutrals */
  --wpd-bg:             #FFFAF7;   /* warm off-white */
  --wpd-bg-card:        #FFFFFF;
  --wpd-bg-section:     #FFF3EC;
  --wpd-text:           #2C2C2C;
  --wpd-text-muted:     #6B6B6B;
  --wpd-border:         #F0E5DC;

  /* Typography */
  --wpd-font-head:      'Nunito', sans-serif;
  --wpd-font-body:      'Inter', sans-serif;

  /* Radii & shadows */
  --wpd-radius-sm:      8px;
  --wpd-radius-md:      16px;
  --wpd-radius-lg:      24px;
  --wpd-shadow-sm:      0 2px 8px rgba(255,107,53,0.08);
  --wpd-shadow-md:      0 4px 20px rgba(255,107,53,0.12);
  --wpd-shadow-lg:      0 8px 40px rgba(255,107,53,0.18);
}

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--wpd-font-body);
  background-color: var(--wpd-bg);
  color: var(--wpd-text);
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wpd-font-head);
  font-weight: 800;
  line-height: 1.25;
  color: var(--wpd-text);
}

a {
  color: var(--wpd-primary);
  transition: color 0.2s ease;
}
a:hover { color: var(--wpd-primary-dark); }

/* ============================================================
   BLOCKSY OVERRIDES — Header
   ============================================================ */
.site-header,
[data-id="header"] {
  background: #FFFFFF !important;
  border-bottom: 2px solid var(--wpd-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Logo height */
.site-logo img,
.ct-header-logo img {
  height: 56px !important;
  width: auto !important;
  max-width: none;
}

/* Nav links */
.ct-main-nav .menu-item > a,
.main-nav .menu-item > a {
  font-family: var(--wpd-font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--wpd-text) !important;
  padding: 8px 14px;
  border-radius: var(--wpd-radius-sm);
  transition: background 0.2s, color 0.2s;
}
.ct-main-nav .menu-item > a:hover,
.main-nav .menu-item > a:hover {
  background: var(--wpd-bg-section);
  color: var(--wpd-primary) !important;
}
.ct-main-nav .current-menu-item > a,
.main-nav .current-menu-item > a {
  color: var(--wpd-primary) !important;
}

/* ============================================================
   LOADING SPINNER (unchanged from GP child)
   ============================================================ */
@keyframes ldio-447m3hhydsp {
  0%      { transform: translate(2px,2px) }
  33.33%  { transform: translate(102px,2px) }
  66.66%  { transform: translate(42px,102px) }
  100%    { transform: translate(2px,2px) }
}
.ldio-447m3hhydsp > div {
  transform: scale(0.5);
  transform-origin: 100px 100px;
}
.ldio-447m3hhydsp > div > div {
  animation: ldio-447m3hhydsp 1s linear infinite;
  position: absolute;
}
.ldio-447m3hhydsp > div > div div:nth-child(1) {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 12px solid var(--wpd-primary);
  background: #ffffff;
}
.ldio-447m3hhydsp > div > div div:nth-child(2) {
  width: 17px; height: 51px;
  transform: rotate(-45deg);
  background: var(--wpd-primary);
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 68px; left: 85px;
}
.loadingio-spinner-magnify-4jzz8eroto {
  width: 200px; height: 200px;
  display: inline-block;
  overflow: hidden;
  background: transparent;
}
.ldio-447m3hhydsp {
  width: 100%; height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
}

/* ============================================================
   HOMEPAGE HERO — Detector Tool
   ============================================================ */
.wpd-hero {
  background: linear-gradient(135deg, var(--wpd-bg-section) 0%, #FFFFFF 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wpd-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.wpd-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wpd-hero__badge {
  display: inline-block;
  background: var(--wpd-bg-section);
  color: var(--wpd-primary);
  font-family: var(--wpd-font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,107,53,0.25);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wpd-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--wpd-text);
}
.wpd-hero h1 .wpd-highlight {
  color: var(--wpd-primary);
  position: relative;
}
.wpd-hero h1 .wpd-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wpd-primary), var(--wpd-primary-light));
  border-radius: 2px;
  opacity: 0.4;
}

.wpd-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--wpd-text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Search form */
.wpd-search-form {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto 20px;
  background: #fff;
  border: 2px solid var(--wpd-border);
  border-radius: 60px;
  box-shadow: var(--wpd-shadow-md);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.wpd-search-form:focus-within {
  border-color: var(--wpd-primary);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.12), var(--wpd-shadow-md);
}

#search_data {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 16px 24px;
  font-family: var(--wpd-font-body);
  font-size: 16px;
  color: var(--wpd-text);
  background: transparent;
  box-shadow: none !important;
}
#search_data::placeholder { color: #b0a8a0; }

#submit {
  border: none;
  background: linear-gradient(135deg, var(--wpd-primary), var(--wpd-primary-dark));
  color: #fff;
  font-family: var(--wpd-font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 0 32px;
  cursor: pointer;
  border-radius: 0 60px 60px 0;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
#submit:hover  { opacity: 0.92; transform: translateX(1px); }
#submit:active { opacity: 0.85; transform: translateX(0); }

.wpd-hero__trust {
  font-size: 13px;
  color: var(--wpd-text-muted);
  margin-top: 12px;
}
.wpd-hero__trust span {
  display: inline-block;
  margin: 0 8px;
}

/* Loading overlay */
#loading {
  background: rgba(255,250,247,0.95);
  position: fixed;
  width: 100vw; height: 100vh;
  left: 0; top: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 100vw !important;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error message */
.common_error {
  max-width: 700px;
  margin: 0 auto 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--wpd-primary), var(--wpd-primary-dark));
  padding: 16px 24px;
  font-weight: 600;
  border-radius: var(--wpd-radius-md);
  font-size: 15px;
}

/* ============================================================
   RESULTS AREA
   ============================================================ */
.wpd-results-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Status banners */
.mobile-friendly-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--wpd-radius-md);
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--wpd-font-head);
}
.mobile-friendly-banner.passed {
  background: linear-gradient(135deg, rgba(45,158,107,0.1), rgba(82,183,136,0.06));
  color: var(--wpd-success);
  border: 1.5px solid rgba(45,158,107,0.2);
}
.mobile-friendly-banner.common_msg {
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,143,101,0.04));
  color: var(--wpd-primary);
  border: 1.5px solid rgba(255,107,53,0.15);
  font-size: 15px;
  font-weight: 700;
}
.mobile-friendly-banner .noWp {
  background: linear-gradient(135deg, var(--wpd-danger), #c0392b) !important;
  color: #fff !important;
  border-radius: var(--wpd-radius-md) !important;
  font-size: 16px;
  padding: 14px 20px;
  border: none !important;
}
.mobile-friendly-banner .isWpuse {
  background: linear-gradient(135deg, var(--wpd-success), var(--wpd-accent-light)) !important;
  color: #fff !important;
  border-radius: var(--wpd-radius-md) !important;
  font-size: 18px;
  padding: 14px 20px;
  border: none !important;
}
.dashicons-wordpress {
  font-size: 40px; width: 40px; height: 40px;
  margin-right: 8px;
  vertical-align: middle;
}
.dashicons-dismiss {
  font-size: 36px; width: 36px; height: 36px;
  vertical-align: middle;
}

/* Cards */
.theme_card,
.plug_in_card {
  background: var(--wpd-bg-card);
  border: 1.5px solid var(--wpd-border);
  border-radius: var(--wpd-radius-md);
  box-shadow: var(--wpd-shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}
.theme_card:hover,
.plug_in_card:hover {
  box-shadow: var(--wpd-shadow-md);
  transform: translateY(-2px);
}

/* Theme card */
.theme_card_left {
  width: 28%;
  float: left;
}
.theme_card_left img {
  border-radius: var(--wpd-radius-sm);
  max-width: 100%;
  display: block;
}
.theme_card_right {
  width: 72%;
  float: left;
}
.theme_card_info {
  padding-left: 18px;
  position: relative;
}
.theme_card_info p {
  margin: 8px 0;
  font-size: 15px;
  color: var(--wpd-text-muted);
}
.theme_title {
  font-family: var(--wpd-font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--wpd-text);
  margin-bottom: 6px;
}

/* Plugin card */
.card_left  { width: 38%; float: left; }
.card_right { width: 62%; float: left; }
.card_right_top { padding: 0 0 0 16px; }
.plugin_top_main { overflow: hidden; }
.plugin_title {
  font-family: var(--wpd-font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--wpd-text);
  margin-bottom: 4px;
}
.plugin_title p { margin-bottom: 4px; }
.plugin_desc p  { color: var(--wpd-text-muted); margin-top: 4px; font-size: 14px; }
.plugin_img img {
  max-width: 100%;
  border-radius: var(--wpd-radius-sm);
}

/* Plugin bottom stats */
.plugin_bottom_main { margin-top: 16px; border-top: 1px solid var(--wpd-border); padding-top: 14px; }
.common_btm {
  text-align: center;
  display: inline-block;
  padding: 0;
  margin: 0 12px;
}
.common_btm div {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wpd-text-muted);
  margin-bottom: 4px;
}
.common_btm p { margin-bottom: 0; color: var(--wpd-text); font-weight: 600; }
.common_btm:last-child { padding-right: 0; }
.cardLeft  { width: 55%; display: inline-block; vertical-align: middle; }
.cardRight { width: 44%; display: inline-block; text-align: right; vertical-align: middle; }

/* Badges */
.free_btn_top {
  position: absolute;
  right: 14px; top: 10px;
  background: var(--wpd-bg-section);
  color: var(--wpd-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,107,53,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ratings */
.total_rating {
  font-size: 14px;
  font-weight: 600;
  color: var(--wpd-primary);
}
.total_rating i { color: var(--wpd-warning); }

/* Buttons */
.watch_btn, .download_btn, .optional_btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--wpd-font-body);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid;
}
.watch_btn {
  color: var(--wpd-primary);
  border-color: var(--wpd-primary);
  background: transparent;
}
.watch_btn:hover {
  color: #fff;
  background: var(--wpd-primary);
  border-color: var(--wpd-primary);
}
.download_btn {
  color: #fff !important;
  background: linear-gradient(135deg, var(--wpd-primary), var(--wpd-primary-dark));
  border-color: transparent;
}
.download_btn:hover { opacity: 0.9; color: #fff !important; }
.optional_btn {
  color: var(--wpd-primary) !important;
  background: #fff;
  border-color: var(--wpd-primary);
}
.optional_btn:hover {
  background: var(--wpd-bg-section);
}
.watch_btn i, .download_btn i, .free_btn i {
  font-size: 13px;
  margin-right: 5px;
}

/* Host & SEO cards */
.hostlinkbtn {
  position: absolute;
  top: 0; right: 0;
}
#moreSEO {
  top: 20px;
  right: 16px;
}
#seoCard { padding-bottom: 64px; }

/* Page-level ad/content section */
#ad_descr {
  background: var(--wpd-bg-section);
  border-radius: var(--wpd-radius-lg);
  padding: 48px;
  margin: 32px 0 0;
  border: 1px solid var(--wpd-border);
}
#ad_descr h2 { padding: 0 0 24px; margin: 0; font-size: 1.8rem; }
#ad_descr h4 { color: var(--wpd-primary); padding: 0; margin: 0; }

/* ============================================================
   BLOCKSY CONTENT AREA
   ============================================================ */
.entry-content {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ct-footer,
.site-footer {
  background: #1C1C1E;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.ct-footer a,
.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.ct-footer a:hover,
.site-footer a:hover {
  color: var(--wpd-primary);
}
.ct-footer .widget-title,
.site-footer .widget-title {
  font-family: var(--wpd-font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.ct-footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .wpd-hero { padding: 50px 16px 40px; }
  .wpd-search-form { border-radius: 12px; flex-direction: column; }
  #search_data { padding: 14px 20px; }
  #submit { border-radius: 0 0 12px 12px; padding: 14px 20px; }

  .card_left, .card_right { width: 100%; float: none; }
  .cardLeft, .cardRight { width: 100%; text-align: left; }
  .common_btm { width: 48%; margin: 0 0 12px; float: left; }
  .theme_card_left, .theme_card_right { width: 100%; float: none; }
  .theme_card_info { padding-left: 0; padding-top: 12px; }
  .hostlinkbtn, #moreSEO { position: relative; top: 0; right: 0; margin-top: 12px; display: block; }
  #ad_descr { padding: 24px 16px; }
  .download_btn { display: inline-block; }
  .plug_in_card { padding: 14px; }
  .free_btn_top { font-size: 10px; padding: 2px 8px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .watch_btn, .download_btn, .optional_btn { padding: 7px 14px; font-size: 12px; }
}
