/* ===== AI Tools Page ===== */

/* ---- Hero ---- */
.ai-hero {
  min-height: 70vh;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 80% 20%, rgba(13, 202, 240, 0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(138, 43, 226, 0.06) 0%, transparent 55%),
              linear-gradient(180deg, #0b0b0f 0%, #0e1016 50%, #0b0b0f 100%);
}

.ai-hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #0dcaf0 30%, #a855f7 65%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.01em;
  line-height: 1.2;
  filter: drop-shadow(0 0 12px rgba(13, 202, 240, 0.4)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.25));
}

.ai-hero-subtitle {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(200, 230, 255, 0.6) !important;
  font-size: 1.15rem;
  line-height: 1.7;
}

.ai-hero-divider {
  width: 180px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #0dcaf0, #a855f7, transparent);
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

/* ---- Particles ---- */
.ai-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ai-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--c, rgba(13, 202, 240, 0.25));
  border-radius: 50%;
  animation: aiFloat var(--dr, 10s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 6px var(--c, rgba(13, 202, 240, 0.2)), 0 0 12px var(--c, rgba(13, 202, 240, 0.1));
}

.ai-particle::after {
  content: '';
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c, rgba(13, 202, 240, 0.12)) 0%, transparent 70%);
  animation: aiPulse var(--dr, 10s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes aiFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.25; }
  50%  { opacity: 0.6; }
  100% { transform: translate(25px, -30px) scale(1.5); opacity: 0.15; }
}

@keyframes aiPulse {
  0%   { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(2); opacity: 0; }
}

.ai-particle:nth-child(1)  { --x:10%; --y:15%; --s:4px; --d:3s;   --dr:8s;  --c:rgba(13,202,240,0.25); }
.ai-particle:nth-child(2)  { --x:85%; --y:20%; --s:6px; --d:5s;   --dr:11s; --c:rgba(168,85,247,0.2); }
.ai-particle:nth-child(3)  { --x:25%; --y:70%; --s:3px; --d:7s;   --dr:6s;  --c:rgba(236,72,153,0.18); }
.ai-particle:nth-child(4)  { --x:60%; --y:10%; --s:5px; --d:4s;   --dr:9s;  --c:rgba(13,202,240,0.22); }
.ai-particle:nth-child(5)  { --x:45%; --y:85%; --s:7px; --d:6s;   --dr:12s; --c:rgba(168,85,247,0.18); }
.ai-particle:nth-child(6)  { --x:75%; --y:55%; --s:4px; --d:8s;   --dr:7s;  --c:rgba(236,72,153,0.2); }
.ai-particle:nth-child(7)  { --x:15%; --y:45%; --s:5px; --d:3.5s; --dr:10s; --c:rgba(13,202,240,0.18); }
.ai-particle:nth-child(8)  { --x:90%; --y:75%; --s:3px; --d:9s;   --dr:5s;  --c:rgba(168,85,247,0.22); }
.ai-particle:nth-child(9)  { --x:50%; --y:35%; --s:6px; --d:5.5s; --dr:13s; --c:rgba(236,72,153,0.16); }
.ai-particle:nth-child(10) { --x:35%; --y:90%; --s:4px; --d:4.5s; --dr:8.5s; --c:rgba(13,202,240,0.2); }
.ai-particle:nth-child(11) { --x:70%; --y:40%; --s:5px; --d:7.5s; --dr:9.5s; --c:rgba(168,85,247,0.16); }
.ai-particle:nth-child(12) { --x:5%;  --y:60%; --s:3px; --d:6.5s; --dr:11.5s;--c:rgba(236,72,153,0.15); }

/* ---- Feature Sections ---- */
.ai-feature-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.ai-feature-section:nth-child(odd) {
  background: linear-gradient(180deg, #0b0b0f 0%, #0e1018 50%, #0b0b0f 100%);
}

.ai-feature-section:nth-child(even) {
  background: linear-gradient(180deg, #0a0c12 0%, #0c0f16 50%, #0b0b0f 100%);
}

.ai-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-feature-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ai-feature-title span {
  background: linear-gradient(135deg, #0dcaf0 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-feature-text {
  color: rgba(210, 225, 245, 0.7) !important;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 520px;
}

.ai-feature-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(13, 202, 240, 0.1), 0 25px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(13, 202, 240, 0.1);
  background: #0e1016;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.ai-feature-media:hover {
  box-shadow: 0 0 80px rgba(13, 202, 240, 0.18), 0 30px 100px rgba(0, 0, 0, 0.6);
  border-color: rgba(13, 202, 240, 0.2);
}

.ai-feature-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 320px;
}

.ai-feature-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.05), transparent 60%);
  pointer-events: none;
}

/* ---- Feature Highlights Row ---- */
.ai-feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.ai-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(13, 202, 240, 0.08);
  border: 1px solid rgba(13, 202, 240, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(13, 202, 240, 0.9);
  font-weight: 500;
}

/* ---- CTAs in feature sections ---- */
.ai-btn-glow {
  box-shadow: 0 0 20px rgba(13, 202, 240, 0.25);
  transition: all 0.3s ease;
}

.ai-btn-glow:hover {
  box-shadow: 0 0 40px rgba(13, 202, 240, 0.45);
  transform: translateY(-2px);
}

.ai-btn-outline-glow {
  border-color: rgba(13, 202, 240, 0.3);
  color: rgba(13, 202, 240, 0.9);
  transition: all 0.3s ease;
}

.ai-btn-outline-glow:hover {
  background: rgba(13, 202, 240, 0.15);
  border-color: rgba(13, 202, 240, 0.6);
  box-shadow: 0 0 25px rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
}

.ai-btn-outline-glow:active {
  background: rgba(13, 202, 240, 0.25);
  color: #fff;
}

/* ---- Hero "Try for Free" button ---- */
.ai-hero-try-btn {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  transition: all 0.3s ease;
}

.ai-hero-try-btn:hover {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.ai-hero-try-btn:active {
  background: linear-gradient(135deg, #9333ea, #db2777);
  color: #fff;
}

/* ---- Stats Section ---- */
.ai-stats-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0e1018 0%, #0b0b0f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ai-stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.ai-stat-num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0dcaf0 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.ai-stat-label {
  color: rgba(200, 220, 240, 0.5);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ---- Testimonials Section ---- */
.ai-testimonials-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0b0b0f 0%, #0e1018 50%, #0b0b0f 100%);
}

.ai-testimonial-card {
  background: linear-gradient(145deg, #12131c 0%, #181a24 100%);
  border: 1px solid rgba(13, 202, 240, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-testimonial-card:hover {
  border-color: rgba(13, 202, 240, 0.2);
  box-shadow: 0 8px 30px rgba(13, 202, 240, 0.08);
}

.ai-testimonial-text {
  color: rgba(220, 230, 245, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.ai-testimonial-author {
  color: rgba(13, 202, 240, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
}

.ai-testimonial-role {
  color: rgba(200, 210, 230, 0.4);
  font-size: 0.8rem;
}

.ai-stars {
  color: #f4b942;
  letter-spacing: 2px;
}

/* ---- Bottom CTA ---- */
.ai-bottom-cta {
  padding: 6rem 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(13, 202, 240, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #0b0b0f 0%, #0e1016 50%, #0b0b0f 100%);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .ai-feature-title { font-size: 2rem; }
  .ai-feature-section { padding: 4rem 0; }
  .ai-feature-text { max-width: 100%; }
}

@media (max-width: 767.98px) {
  .ai-hero { min-height: 60vh; padding: 6rem 0 3rem; }
  .ai-feature-title { font-size: 1.7rem; }
  .ai-stat-num { font-size: 2.2rem; }
  .ai-feature-section { padding: 3rem 0; }
}

/* ---- Candy AI Logo Wrapper (reuse from styles.css) ---- */
/* Already defined in styles.css, referenced here for clarity */

/* ---- CelebMaker Image Wrapper ---- */
.celebmaker-img-wrapper-ai {
  position: relative;
  overflow: hidden;
  background: #1a0a0a;
}

.celebmaker-img-wrapper-ai img {
  width: 100%;
  display: block;
}

.celebmaker-img-wrapper-ai .celebmaker-overlay-ai {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.08), transparent 60%);
  pointer-events: none;
}

/* ---- Utility: Hero Content Layer ---- */
.ai-hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Brand Logo Media Wrappers ---- */
.ai-brand-media-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ai-brand-media-wrapper img {
  max-height: 90px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ai-brand-media-wrapper.candy-bg {
  background: #131313;
}

.ai-brand-media-wrapper.candy-bg .candy-logo-svg-large {
  height: 70px;
  width: auto;
  max-width: 85%;
}

.ai-brand-media-wrapper.swipey-bg {
  background: #1a0a2e;
}

.ai-brand-media-wrapper.ourdream-bg {
  background: #0a0a14;
}

.ai-brand-media-wrapper.ourdream-bg img {
  max-height: 80px;
  max-width: 85%;
}

/* ---- Utility: Max-width text containers ---- */
.ai-text-constrained {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Warning/Gold highlight pills (PornWorks) ---- */
.ai-highlight-pill-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(249, 115, 22, 0.9);
  font-weight: 500;
}

.ai-feature-title-warning span {
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-feature-media-pw {
  background: linear-gradient(135deg, #1a140e, #1c1610);
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.ai-brand-media-pw {
  background: linear-gradient(180deg, #141008 0%, #1a140e 100%);
}

.ai-brand-media-pw img {
  max-height: 100px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ai-btn-glow-warning {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
  transition: all 0.3s ease;
}

.ai-btn-glow-warning:hover {
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

/* ---- PornWorks stats card (detail page) ---- */
.pw-stats-wrapper {
  background: linear-gradient(135deg, #1a140e, #1c1610);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.pw-stat-cell {
  background: rgba(249, 115, 22, 0.06);
}

.pw-shield-card {
  background: linear-gradient(135deg, #1a140e, #1c1610);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

/* ---- PornWorks badge ---- */
.pw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fb923c;
  border-radius: 50px;
}

/* ---- Orange utility classes (PornWorks) ---- */
:root {
  --bs-orange-rgb: 249, 115, 22;
}

.text-orange { color: #f97316 !important; }

.bg-orange {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-orange-rgb), var(--bs-bg-opacity)) !important;
}

.btn-orange {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f97316;
  --bs-btn-border-color: #f97316;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ea580c;
  --bs-btn-hover-border-color: #ea580c;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c2410c;
  --bs-btn-active-border-color: #c2410c;
}

.btn-outline-orange {
  --bs-btn-color: #f97316;
  --bs-btn-border-color: #f97316;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f97316;
  --bs-btn-hover-border-color: #f97316;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ea580c;
  --bs-btn-active-border-color: #ea580c;
}

/* ---- Orange utility classes (PornWorks) ---- */
.text-orange { color: #f97316 !important; }
.bg-orange { background-color: #f97316 !important; }

.btn-orange {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f97316;
  --bs-btn-border-color: #f97316;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ea580c;
  --bs-btn-hover-border-color: #ea580c;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c2410c;
  --bs-btn-active-border-color: #c2410c;
}

.btn-outline-orange {
  --bs-btn-color: #f97316;
  --bs-btn-border-color: #f97316;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f97316;
  --bs-btn-hover-border-color: #f97316;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ea580c;
  --bs-btn-active-border-color: #ea580c;
}
