/*
Theme Name: WP Fabric AI Advisor PRO
Theme URI: https://wpfabric.com/
Author: Ionut Irimia
Author URI: https://ionutirimia.com/
Description: Premium block theme for WP Fabric AI Advisor PRO – a WordPress tools advisor and affiliate-optimized directory.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpfabric-ai-advisor-pro
Tags: block-theme, one-page, ai, directory, full-site-editing
*/

/* LOGO PRO */

.wpf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.wpf-logo-orb {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #22c55e, #6366f1, #a855f7, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  position: relative;
  overflow: hidden;
}

.wpf-logo-orb::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 15%, #e5e7eb, #020617);
  opacity: 0.4;
}

.wpf-logo-orb span {
  position: relative;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f9fafb;
}

.wpf-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.wpf-logo-title {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.wpf-logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

/* HERO */

.wpf-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.3rem 1.5rem 2.4rem;
  text-align: center;
}

.wpf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), rgba(15, 23, 42, 0.95));
}

.wpf-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22c55e, #a855f7);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.75);
}

.wpf-hero-title {
  font-size: clamp(2.5rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  margin: 1.4rem 0 0.9rem;
}

.wpf-hero-highlight {
  background: linear-gradient(120deg, #22c55e, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wpf-hero-subtitle {
  max-width: 640px;
  margin: 0 auto 1.9rem;
  font-size: 0.98rem;
  color: rgba(148, 163, 184, 0.96);
}

/* Metrics */

.wpf-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 1.8rem;
  font-size: 0.85rem;
}

.wpf-metric span {
  display: block;
}

.wpf-metric-strong {
  font-weight: 600;
  font-size: 1rem;
}

/* Controls */

.wpf-controls {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.wpf-search-box {
  flex: 1 1 260px;
  position: relative;
}

.wpf-search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.98));
  color: #f9fafb;
  font-size: 0.9rem;
}

.wpf-search-box input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.wpf-search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}

.wpf-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.wpf-chip {
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.96);
  cursor: pointer;
  user-select: none;
}

.wpf-chip-active {
  border-color: #6366f1;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.95), rgba(14, 116, 144, 0.95));
  color: #f9fafb;
}

/* Grid */

.wpf-grid-wrap {
  max-width: 1120px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem 2.5rem;
}

.wpf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .wpf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wpf-tool-card {
  position: relative;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Card header */

.wpf-tool-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wpf-favicon {
  width: 26px;
  height: 26px;
  border-radius: 0.6rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #020617;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
}

.wpf-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpf-tool-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.wpf-tool-tagline {
  font-size: 0.8rem;
  opacity: 0.86;
}

/* Badges */

.wpf-tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.7rem;
}

.wpf-badge-pill {
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.94);
}

.wpf-badge-pill--hot {
  border-color: rgba(251, 113, 133, 0.95);
  background: rgba(127, 29, 29, 0.9);
}

.wpf-badge-pill--pro {
  border-color: rgba(94, 234, 212, 0.9);
  background: rgba(8, 47, 73, 0.96);
}

.wpf-badge-pill--stack {
  border-color: rgba(129, 140, 248, 0.95);
  background: rgba(30, 64, 175, 0.96);
}

/* Body */

.wpf-tool-desc {
  font-size: 0.8rem;
  opacity: 0.92;
}

/* Meta */

.wpf-tool-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.9;
}

.wpf-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* CTA */

.wpf-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid rgba(129, 140, 248, 0.95);
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.95), rgba(30, 64, 175, 0.9));
}

.wpf-cta span {
  font-size: 0.9em;
}

.wpf-cta-arrow {
  font-size: 0.9em;
}

/* Footer note */

.wpf-footer-note {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: center;
}

/* Ask AI button */

.wpf-ai-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: conic-gradient(from 200deg, #22c55e, #6366f1, #a855f7, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  cursor: pointer;
  z-index: 50;
}

.wpf-ai-fab-inner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* AI modal */

.wpf-ai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.wpf-ai-modal {
  width: min(560px, 100% - 2.5rem);
  border-radius: 1.3rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.8);
  padding: 1.6rem 1.6rem 1.4rem;
}

.wpf-ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.wpf-ai-modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.wpf-ai-modal-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

.wpf-ai-modal textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  resize: vertical;
}

.wpf-ai-modal textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.wpf-ai-modal-output {
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(55, 65, 81, 0.95);
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(209, 213, 219, 0.96);
}

.wpf-ai-modal-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wpf-ai-primary {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.95);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.95), rgba(30, 64, 175, 0.9));
  color: #f9fafb;
  font-size: 0.78rem;
}

.wpf-ai-secondary {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.75rem;
}
