/*
Theme Name: Twenty Twenty-Five Child (Prompt360)
Theme URI: https://prompt360.in/
Description: Premium Editorial AI Photo Prompt Discovery & Engineering Platform. Discover. Copy. Create.
Author: Prompt360 Team
Author URI: https://prompt360.in/
Template: twentytwentyfive
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: prompt360
*/

/* ========================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ======================================================== */
:root {
  --p360-primary: #6C4CF1;
  --p360-primary-hover: #5839DB;
  --p360-primary-light: rgba(108, 76, 241, 0.08);
  --p360-primary-border: rgba(108, 76, 241, 0.22);
  --p360-secondary: #3485F5;
  --p360-secondary-hover: #2563EB;
  --p360-gradient: linear-gradient(135deg, #6C4CF1 0%, #3485F5 100%);
  --p360-gradient-subtle: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
  
  --p360-dark: #0F172A;
  --p360-text: #1E293B;
  --p360-body: #334155;
  --p360-muted: #64748B;
  --p360-light: #F8FAFC;
  --p360-white: #FFFFFF;
  
  --p360-border: #E2E8F0;
  --p360-border-subtle: #F1F5F9;
  --p360-bg: #FAFAFC;
  --p360-bg-subtle: #F8FAFF;
  
  --p360-success: #10B981;
  --p360-warning: #F59E0B;
  
  --p360-radius-sm: 8px;
  --p360-radius: 12px;
  --p360-radius-lg: 16px;
  --p360-radius-full: 9999px;
  
  --p360-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --p360-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --p360-shadow-md: 0 6px 18px -2px rgba(15, 23, 42, 0.07);
  --p360-shadow-lg: 0 12px 30px -4px rgba(108, 76, 241, 0.12);
  
  --p360-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --p360-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --p360-container: 1200px;
}

/* ========================================================
   2. GLOBAL RESETS & ACCESSIBILITY
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--p360-font);
}

body {
  font-family: var(--p360-font);
  color: var(--p360-text);
  background-color: var(--p360-bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--p360-primary);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--p360-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--p360-primary-hover);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Centered Container */
.p360-container {
  max-width: var(--p360-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .p360-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ========================================================
   3. GLOBAL HEADER & NAVIGATION
   ======================================================== */
.p360-site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 4px 20px -2px rgba(108, 76, 241, 0.05);
}

.p360-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Brand Logo with Isometric 3D SVG Spark */
.p360-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.p360-brand-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.p360-brand-wrap:hover .p360-brand-icon-svg {
  transform: scale(1.08) rotate(3deg);
}
.p360-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.p360-brand-cyan-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #0284C7;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 5px;
  line-height: 1;
  vertical-align: middle;
}

/* Desktop Navigation with Pill Hover States */
.p360-nav-desktop {
  display: none;
}
@media (min-width: 960px) {
  .p360-nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}
.p360-nav-link {
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.p360-nav-link:hover,
.p360-nav-link:focus,
.p360-nav-link.active {
  background: #EEF2FF;
  color: #4F46E5;
}

/* Header Right Actions */
.p360-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Compact Search */
.p360-header-search {
  display: none;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-sm);
  padding: 4px 6px 4px 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 1120px) {
  .p360-header-search {
    display: flex;
  }
}
.p360-header-search:focus-within {
  border-color: var(--p360-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.12);
}
.p360-header-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--p360-dark);
  width: 140px;
  transition: width 0.2s ease;
}
.p360-header-search-input:focus {
  width: 180px;
}
.p360-header-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--p360-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s;
}
.p360-header-search-btn:hover {
  color: var(--p360-primary);
}

/* Animated Gradient Border on CTA Button */
.p360-cta-animated-border {
  position: relative;
  z-index: 1;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C4CF1, #3485F5, #EC4899, #6C4CF1);
  background-size: 300% 300%;
  animation: p360GradientShift 4s ease infinite;
  text-decoration: none;
  display: none;
}
@media (min-width: 640px) {
  .p360-cta-animated-border {
    display: inline-block;
  }
}
.p360-cta-animated-border .p360-cta-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #4F46E5;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.p360-cta-animated-border:hover .p360-cta-inner {
  background: transparent;
  color: #FFFFFF;
}

/* Mobile Toggle */
.p360-mobile-menu-toggle,
.p360-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--p360-bg-subtle);
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-sm);
  cursor: pointer;
  color: var(--p360-dark);
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 960px) {
  .p360-mobile-menu-toggle,
  .p360-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.p360-mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--p360-border);
  padding: 16px 20px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.p360-mobile-drawer.active {
  display: block;
  animation: p360FadeInUp 0.2s ease-out;
}
.p360-mobile-search-wrap {
  margin-bottom: 16px;
}
.p360-mobile-search-form {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-sm);
  padding: 4px;
}
.p360-mobile-search-input {
  border: none;
  background: transparent;
  outline: none;
  padding: 6px 10px;
  font-size: 14px;
  width: 100%;
}
.p360-mobile-search-btn {
  background: var(--p360-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.p360-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p360-mobile-link {
  color: var(--p360-dark);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}
.p360-mobile-link:hover {
  color: var(--p360-primary);
}

/* ========================================================
   4. HOMEPAGE HERO SECTION & 2-COLUMN SHOWCASE
   ======================================================== */
.p360-hero-block {
  background: var(--p360-gradient-subtle);
  border-bottom: 1px solid var(--p360-border);
  padding: clamp(48px, 6vw, 72px) 20px clamp(44px, 5vw, 64px);
}
@media (max-width: 640px) {
  .p360-hero-block {
    padding: 36px 16px 32px;
  }
}
.p360-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 992px) {
  .p360-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.p360-hero-left {
  text-align: left;
}
@media (max-width: 991px) {
  .p360-hero-left {
    text-align: center;
  }
}

.p360-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p360-primary-light);
  border: 1px solid var(--p360-primary-border);
  color: var(--p360-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--p360-radius-full);
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.p360-hero-h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 16px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
@media (max-width: 991px) {
  .p360-hero-h1 {
    margin: 0 auto 16px;
    max-width: 720px;
  }
}

/* Animated Shimmer / Gradient Text on "Ready-to-Use Prompts" */
.p360-shimmer-text {
  background: linear-gradient(-45deg, #6C4CF1 0%, #3485F5 35%, #EC4899 70%, #6C4CF1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: p360Shimmer 4s ease infinite;
}

.p360-hero-desc {
  font-size: clamp(15px, 1.8vw, 16.5px);
  line-height: 1.65;
  color: #475569;
  margin: 0 0 28px;
  max-width: 580px;
}
@media (max-width: 991px) {
  .p360-hero-desc {
    margin: 0 auto 28px;
  }
}

/* Hero Search Form */
.p360-search-container {
  max-width: 600px;
  margin: 0 0 20px;
}
@media (max-width: 991px) {
  .p360-search-container {
    margin: 0 auto 20px;
  }
}
.p360-hero-actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 991px) {
  .p360-hero-actions-group {
    justify-content: center;
  }
}
.p360-hero-search-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--p360-border);
  border-radius: 12px;
  padding: 5px 6px 5px 16px;
  box-shadow: 0 8px 25px -4px rgba(108, 76, 241, 0.09);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex: 1 1 300px;
}
.p360-hero-search-form:focus-within {
  border-color: var(--p360-primary);
  box-shadow: 0 8px 30px -2px rgba(108, 76, 241, 0.18);
}
.p360-hero-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14.5px;
  color: var(--p360-dark);
  background: transparent;
  padding: 8px 0;
}
.p360-hero-search-btn {
  background: var(--p360-gradient);
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.p360-hero-search-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.p360-hero-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 76, 241, 0.08);
  color: var(--p360-primary);
  border: 1.5px solid rgba(108, 76, 241, 0.25);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.p360-hero-explore-btn:hover {
  background: var(--p360-primary);
  color: #FFFFFF;
  border-color: var(--p360-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(108, 76, 241, 0.25);
}

/* Trending Chips */
.p360-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
@media (max-width: 991px) {
  .p360-chips-row {
    justify-content: center;
  }
}
.p360-chips-label {
  color: var(--p360-muted);
  font-weight: 600;
}
.p360-chip-link {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  color: #334155;
  padding: 5px 12px;
  border-radius: var(--p360-radius-full);
  text-decoration: none;
  transition: all 0.15s ease;
  font-weight: 500;
}
.p360-chip-link:hover {
  border-color: var(--p360-primary);
  color: var(--p360-primary);
  background: var(--p360-primary-light);
  transform: translateY(-1px);
}

/* Right-Hand Hero Showcase Slider / Floating Card Stack */
.p360-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.p360-showcase-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 410px;
}
@media (max-width: 640px) {
  .p360-showcase-stack {
    max-width: 320px;
    height: 330px;
  }
}
.p360-stack-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.p360-stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-front {
  width: 270px;
  height: 340px;
  left: 60px;
  top: 35px;
  z-index: 3;
  box-shadow: 0 20px 40px -10px rgba(108, 76, 241, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: p360FloatMain 6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .card-front {
    width: 210px;
    height: 270px;
    left: 45px;
    top: 25px;
  }
}
.card-back {
  width: 210px;
  height: 265px;
  right: 15px;
  top: 15px;
  z-index: 1;
  opacity: 0.85;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: p360FloatBack 7s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .card-back {
    width: 160px;
    height: 210px;
    right: 5px;
  }
}
.card-accent {
  width: 160px;
  height: 200px;
  left: 5px;
  bottom: 20px;
  z-index: 4;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: p360FloatAccent 5s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .card-accent {
    width: 125px;
    height: 160px;
    left: 0;
    bottom: 10px;
  }
}
.card-accent-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
}
.p360-card-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.45) 75%, transparent 100%);
  color: #FFFFFF;
}
.p360-overlay-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38BDF8;
}
.p360-overlay-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 8px;
  color: #FFFFFF;
}
.p360-overlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.p360-model-pill {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 999px;
  color: #FFFFFF;
}
.p360-copy-preview-btn {
  font-size: 10.5px;
  font-weight: 700;
  background: #6C4CF1;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 999px;
}
.p360-floating-badge {
  position: absolute;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px -4px rgba(108, 76, 241, 0.2);
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-top-left {
  top: 10px;
  left: 20px;
  animation: p360FloatBadge 5s ease-in-out infinite alternate;
}
.badge-bottom-right {
  bottom: 25px;
  right: 10px;
  animation: p360FloatBadge 6s ease-in-out infinite alternate-reverse;
}
.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Float Keyframes */
@keyframes p360FloatMain {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}
@keyframes p360FloatBack {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes p360FloatAccent {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.2deg); }
}
@keyframes p360FloatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ========================================================
   5. SECTION HEADINGS & CLAMPED SPACING
   ======================================================== */
.p360-section {
  padding: clamp(40px, 5.5vw, 75px) 0;
}
.p360-section-alt {
  background: var(--p360-bg-subtle);
  border-top: 1px solid var(--p360-border);
  border-bottom: 1px solid var(--p360-border);
}
  background: var(--p360-bg-subtle);
  border-top: 1px solid var(--p360-border);
  border-bottom: 1px solid var(--p360-border);
}
.p360-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 14px;
}
.p360-section-tag {
  color: var(--p360-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}
.p360-section-h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--p360-dark);
  margin: 0;
  letter-spacing: -0.4px;
}
.p360-view-all {
  color: var(--p360-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.p360-view-all:hover {
  text-decoration: underline;
}

/* ========================================================
   6. EXPLORE CATEGORIES GRID (12 CARDS)
   ======================================================== */
.p360-cat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.p360-cat-card-modern {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius);
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--p360-shadow-xs);
}
.p360-cat-card-modern:hover {
  transform: translateY(-3px);
  border-color: var(--p360-primary);
  box-shadow: var(--p360-shadow-lg);
}
.p360-cat-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--p360-dark);
  margin: 0 0 4px;
}
.p360-cat-card-sub {
  font-size: 12.5px;
  color: var(--p360-muted);
  margin: 0;
  line-height: 1.45;
}
.p360-cat-arrow-icon {
  color: var(--p360-primary);
  font-size: 17px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.p360-cat-card-modern:hover .p360-cat-arrow-icon {
  transform: translateX(4px);
}

/* ========================================================
   7. PROMPT CARDS & GRIDS (PRIORITY FIX)
   ======================================================== */
.p360-grid-container {
  width: 100%;
}

.p360-filter-toolbar {
  margin-bottom: 28px;
}
.p360-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p360-chip {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  color: #475569;
  padding: 7px 16px;
  border-radius: var(--p360-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.p360-chip:hover {
  border-color: var(--p360-primary);
  color: var(--p360-primary);
}
.p360-chip.active {
  background: var(--p360-primary);
  color: #FFFFFF;
  border-color: var(--p360-primary);
  box-shadow: 0 4px 12px rgba(108, 76, 241, 0.25);
}

/* Dynamic Prompt Tabs [Featured | Trending | Latest Added] */
.p360-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.p360-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--p360-shadow-xs);
  user-select: none;
}
.p360-tab-btn:hover {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
  transform: translateY(-1px);
}
.p360-tab-btn.active {
  background: linear-gradient(135deg, #6C4CF1, #3485F5);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(108, 76, 241, 0.3);
}
.p360-tab-btn svg {
  flex-shrink: 0;
}

/* Prompt Cards Grid */
.p360-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
@media (max-width: 640px) {
  .p360-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Standardized Prompt Card */
.p360-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--p360-shadow-xs);
}
.p360-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 76, 241, 0.3);
  box-shadow: var(--p360-shadow-lg);
}

/* Media Thumbnail (4:5 Aspect Ratio) */
.p360-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #E2E8F0;
  overflow: hidden;
}
.p360-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}
.p360-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.p360-card:hover .p360-card-img {
  transform: scale(1.04);
}

/* Floating Quick Copy Overlay on Card Hover */
.p360-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.p360-card:hover .p360-card-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}
.p360-overlay-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.p360-card:hover .p360-overlay-copy-btn {
  transform: translateY(0);
}
.p360-overlay-copy-btn:hover {
  background: #6C4CF1;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* Badges on Media */
.p360-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.p360-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--p360-radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.p360-badge-model {
  background: rgba(108, 76, 241, 0.88);
}
.p360-badge-category {
  background: rgba(52, 133, 245, 0.88);
}
.p360-badge-ref {
  background: rgba(16, 185, 129, 0.88);
}

/* Card Body - Tight, Structured, Zero Gap Void */
.p360-card-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.p360-card-cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p360-primary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.p360-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--p360-dark);
  margin: 0 0 8px;
  line-height: 1.35;
}
.p360-card-title a {
  color: inherit;
  text-decoration: none;
}
.p360-card-title a:hover {
  color: var(--p360-primary);
}
.p360-card-snippet {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--p360-muted);
  margin: 0 0 16px;
  flex: 1 1 auto; /* Consumes remaining height seamlessly */
}

/* Card Footer - Flush alignment */
.p360-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--p360-border-subtle);
}
.p360-btn-card-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p360-primary-light);
  color: var(--p360-primary);
  border: 1px solid var(--p360-primary-border);
  padding: 8px 14px;
  border-radius: var(--p360-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.p360-btn-card-copy:hover {
  background: var(--p360-primary);
  color: #FFFFFF;
  border-color: var(--p360-primary);
}
.p360-btn-card-copy.copied {
  background: var(--p360-success) !important;
  color: #FFFFFF !important;
  border-color: var(--p360-success) !important;
}
.p360-btn-card-view {
  color: var(--p360-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 8px;
  transition: color 0.15s ease;
}
.p360-btn-card-view:hover {
  color: var(--p360-dark);
}

/* ========================================================
   8. AI MODEL CARDS (OFFICIAL LOGOS & CAPABILITY TAGS)
   ======================================================== */
.p360-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.p360-model-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--p360-shadow-xs);
  z-index: 1;
}
.p360-model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 76, 241, 0.4);
  box-shadow: 0 12px 28px -4px rgba(108, 76, 241, 0.15);
}
.p360-model-icon-svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #F1F5F9;
  transition: transform 0.25s ease, background 0.25s ease;
}
.p360-model-card:hover .p360-model-icon-svg {
  transform: scale(1.08);
  background: #EEF2FF;
}
.p360-model-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6C4CF1;
  background: rgba(108, 76, 241, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.p360-model-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
}
.p360-model-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

/* ========================================================
   9. HOW IT WORKS & FAQ
   ======================================================== */
.p360-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.p360-step-card {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius);
  padding: 28px 24px;
  box-shadow: var(--p360-shadow-xs);
}
.p360-step-num {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--p360-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.p360-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--p360-dark);
  margin: 0 0 8px;
}
.p360-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--p360-muted);
  margin: 0;
}

/* Modern Animated FAQ Accordion (<details> & <summary>) */
.p360-faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p360-accordion-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--p360-shadow-xs);
}
.p360-accordion-item[open] {
  border-color: rgba(108, 76, 241, 0.35);
  box-shadow: 0 8px 24px -2px rgba(108, 76, 241, 0.1);
}
.p360-accordion-header {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: #0F172A;
  user-select: none;
  transition: background 0.15s ease;
}
.p360-accordion-header::-webkit-details-marker {
  display: none;
}
.p360-accordion-header:hover {
  background: #F8FAFC;
}
.p360-accordion-q {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #0F172A;
}
.p360-accordion-icon {
  flex-shrink: 0;
  color: #6C4CF1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.p360-accordion-item[open] .p360-accordion-icon {
  transform: rotate(180deg);
}
.p360-accordion-body {
  padding: 0 24px 22px 24px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
  border-top: 1px solid #F1F5F9;
  padding-top: 16px;
  animation: p360AccordionExpand 0.25s ease-out;
}
.p360-accordion-body p {
  margin: 0;
}
@keyframes p360AccordionExpand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy FAQ Items Fallback */
.p360-faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.p360-faq-item {
  border-bottom: 1px solid var(--p360-border);
  padding: 20px 0;
}
.p360-faq-q {
  font-size: 17px;
  font-weight: 700;
  color: var(--p360-dark);
  margin: 0 0 8px;
}
.p360-faq-a {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--p360-muted);
  margin: 0;
}

/* CTA Banner */
.p360-cta-banner {
  background: var(--p360-gradient);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: #FFFFFF;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(108, 76, 241, 0.25);
}
.p360-cta-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.p360-cta-desc {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: 0.94;
  line-height: 1.6;
}
.p360-cta-btn-white {
  display: inline-block;
  background: #FFFFFF;
  color: var(--p360-primary);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.p360-cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ========================================================
   10. INDIVIDUAL PROMPT PAGE TEMPLATE (PRIORITY)
   ======================================================== */
.p360-single-prompt-wrap {
  max-width: var(--p360-container);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
@media (max-width: 480px) {
  .p360-single-prompt-wrap {
    padding: 20px 16px 60px;
  }
}

.p360-breadcrumbs {
  font-size: 13.5px;
  color: var(--p360-muted);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.p360-breadcrumbs a {
  color: var(--p360-muted);
  text-decoration: none;
}
.p360-breadcrumbs a:hover {
  color: var(--p360-primary);
}

.p360-single-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--p360-dark);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.p360-meta-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p360-border);
  font-size: 13.5px;
  color: var(--p360-muted);
}
.p360-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--p360-dark);
}
.p360-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p360-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

/* 2-Column Showcase Grid */
.p360-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .p360-showcase-grid {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
}

/* Preview Column */
.p360-preview-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--p360-shadow-md);
  border: 1px solid var(--p360-border);
  background: #E2E8F0;
  aspect-ratio: 3 / 4;
}
.p360-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p360-ratio-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--p360-radius-full);
}

/* Prompt Details & Copy Box Column */
.p360-meta-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p360-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* High-Impact Copy Box */
.p360-copy-box {
  background: #FFFFFF;
  border: 1.5px solid var(--p360-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--p360-shadow-sm);
}
.p360-copy-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--p360-border);
}
.p360-copy-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p360-primary);
  letter-spacing: 0.6px;
}
.p360-char-count {
  font-size: 12px;
  color: var(--p360-muted);
  font-weight: 500;
}
.p360-prompt-text-display {
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #1E293B;
  background: #FFFFFF;
  font-family: var(--p360-font-mono);
  white-space: pre-wrap;
  word-break: break-word;
  user-select: all;
  border-bottom: 1px solid var(--p360-border);
}
.p360-copy-box-action {
  padding: 14px 20px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.p360-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--p360-gradient);
  color: #FFFFFF;
  border: none;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 76, 241, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.p360-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 76, 241, 0.36);
}
.p360-copy-btn.copied {
  background: var(--p360-success) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* Key Attributes Spec Table */
.p360-spec-table {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p360-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14px;
}
.p360-spec-row:last-child {
  border-bottom: none;
}
.p360-spec-title {
  color: var(--p360-muted);
  font-weight: 500;
}
.p360-spec-val {
  color: var(--p360-dark);
  font-weight: 600;
  text-align: right;
}

/* Editorial Info Cards */
.p360-content-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 56px;
}
.p360-info-card {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--p360-shadow-xs);
}
.p360-card-tips {
  border-left: 4px solid var(--p360-primary);
}
.p360-card-limitations {
  border-left: 4px solid var(--p360-warning);
}
.p360-card-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--p360-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 5-Step Instructions Block */
.p360-instructions-block {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: var(--p360-shadow-xs);
}
.p360-instructions-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--p360-dark);
  margin: 0 0 18px;
}
.p360-steps-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Related Prompts */
.p360-related-prompts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--p360-border);
}
.p360-related-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--p360-dark);
  margin: 0 0 24px;
}

/* ========================================================
   11. ARCHIVE TEMPLATES (CATEGORIES & AI MODELS)
   ======================================================== */
.p360-archive-wrap {
  max-width: var(--p360-container);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
@media (max-width: 480px) {
  .p360-archive-wrap {
    padding: 28px 16px 60px;
  }
}
.p360-archive-hero {
  background: var(--p360-gradient-subtle);
  border: 1px solid var(--p360-border);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 40px;
}
.p360-archive-tag {
  color: var(--p360-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}
.p360-archive-h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--p360-dark);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.p360-archive-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--p360-muted);
  max-width: 780px;
  margin: 0;
}

/* ========================================================
   12. GLOBAL FOOTER STYLING
   ======================================================== */
.p360-site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 64px 0 32px;
  border-top: 1px solid #1E293B;
  font-size: 14px;
}
.p360-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .p360-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}
.p360-footer-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px;
}
.p360-footer-tagline {
  color: var(--p360-secondary);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.p360-footer-desc {
  line-height: 1.6;
  color: #94A3B8;
  font-size: 13.5px;
  margin: 0;
}
.p360-footer-col-title {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.p360-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p360-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}
.p360-footer-links a:hover,
.p360-footer-links a:focus {
  color: #FFFFFF;
}
.p360-footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748B;
  font-size: 13px;
}
.p360-footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
}
.p360-footer-bottom a:hover {
  color: #FFFFFF;
}

/* Animation Utilities */
@keyframes p360FadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Single Article / Tutorial Layout (Phase 4 & 5)
   ========================================================================== */
.p360-single-post-main {
  width: 100%;
  padding: 40px 0 60px;
  background-color: var(--p360-bg-page);
}

.p360-article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.p360-article-header {
  margin: 16px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--p360-border);
}

.p360-article-cat-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.p360-article-cat-badge a {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--p360-primary);
  background: rgba(108, 76, 241, 0.08);
  border: 1px solid rgba(108, 76, 241, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.p360-article-cat-badge a:hover {
  background: var(--p360-primary);
  color: #FFFFFF;
}

.p360-article-h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--p360-text-main);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.p360-article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--p360-muted);
}

.p360-author-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p360-author-info .p360-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p360-primary), var(--p360-secondary));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p360-author-name {
  font-weight: 600;
  color: var(--p360-text-main);
  text-decoration: none;
}

.p360-author-name:hover {
  color: var(--p360-primary);
}

.p360-meta-sep {
  color: #CBD5E1;
}

.p360-reading-time {
  font-weight: 500;
  color: #64748B;
}

/* Article Body Typography */
.p360-article-body {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 48px;
}

.p360-article-body p {
  margin-top: 0;
  margin-bottom: 22px;
}

.p360-article-body p.lead {
  font-size: 19px;
  line-height: 1.65;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 28px;
}

.p360-article-body h2 {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  color: var(--p360-text-main);
  letter-spacing: -0.015em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.p360-article-body h3 {
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: 600;
  color: var(--p360-text-main);
  margin-top: 28px;
  margin-bottom: 12px;
}

.p360-article-body ol,
.p360-article-body ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.p360-article-body li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.p360-article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: rgba(108, 76, 241, 0.04);
  border-left: 4px solid var(--p360-primary);
  border-radius: 0 12px 12px 0;
  font-style: normal;
  color: #1E293B;
}

.p360-article-body blockquote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.p360-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14.5px;
  background: #F1F5F9;
  color: #D946EF;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

/* Author Bio Card */
.p360-author-bio-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-md);
  box-shadow: var(--p360-shadow-sm);
  margin: 48px 0 36px;
}

.p360-author-bio-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p360-primary), var(--p360-secondary));
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p360-author-bio-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--p360-text-main);
  margin-bottom: 6px;
}

.p360-author-bio-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
  margin: 0 0 10px;
}

.p360-author-bio-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p360-primary);
  text-decoration: none;
}

.p360-author-bio-link:hover {
  text-decoration: underline;
}

/* Previous / Next Article Navigation */
.p360-post-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .p360-post-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.p360-post-nav-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--p360-shadow-sm);
}

.p360-post-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--p360-primary);
  box-shadow: var(--p360-shadow-md);
}

.p360-nav-direction {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p360-primary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.p360-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--p360-text-main);
  line-height: 1.4;
}

.p360-post-nav-card:hover .p360-nav-title {
  color: var(--p360-primary);
}

/* Related Guides Section */
.p360-related-guides-section {
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--p360-border);
}

.p360-related-head {
  margin-bottom: 24px;
}

.p360-related-h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--p360-text-main);
  margin: 4px 0 0;
}

.p360-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .p360-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.p360-guide-card {
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-md);
  overflow: hidden;
  box-shadow: var(--p360-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.p360-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p360-shadow-md);
  border-color: rgba(108, 76, 241, 0.3);
}

.p360-guide-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.p360-guide-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--p360-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.p360-guide-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.p360-guide-title a {
  color: var(--p360-text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.p360-guide-title a:hover {
  color: var(--p360-primary);
}

.p360-guide-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748B;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.p360-guide-read-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p360-primary);
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p360-guide-read-link:hover {
  text-decoration: underline;
}

/* Comments Section Styling */
.p360-comments-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.p360-comments-wrap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: #FFFFFF;
  border: 1px solid var(--p360-border);
  border-radius: var(--p360-radius-md);
  padding: 32px;
  box-shadow: var(--p360-shadow-sm);
}

.p360-comments-wrap h2,
.p360-comments-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--p360-text-main);
  margin-top: 0;
  margin-bottom: 16px;
}

.p360-comments-wrap .comment-respond {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.p360-comments-wrap .comment-notes {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 18px;
}

.p360-comments-wrap label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p360-text-main);
  margin-bottom: 6px;
}

.p360-comments-wrap textarea,
.p360-comments-wrap input[type="text"],
.p360-comments-wrap input[type="email"],
.p360-comments-wrap input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 14.5px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  background: #F8FAFC;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.p360-comments-wrap textarea:focus,
.p360-comments-wrap input:focus {
  outline: none;
  border-color: var(--p360-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.15);
}

.p360-comments-wrap input[type="submit"] {
  background: linear-gradient(135deg, var(--p360-primary), #4F46E5);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(108, 76, 241, 0.25);
}

.p360-comments-wrap input[type="submit"]:hover {
  background: linear-gradient(135deg, #5835E5, #4338CA);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 76, 241, 0.35);
}

/* ==========================================================================
   Image-Led Category Cards Grid (Phase 2 & 5)
   ========================================================================== */
.p360-cat-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 540px) {
  .p360-cat-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .p360-cat-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1140px) {
  .p360-cat-image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p360-cat-image-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--p360-shadow-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.p360-cat-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  border-color: rgba(108, 76, 241, 0.35);
}

.p360-cat-image-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1E1B4B, #31104B);
}

.p360-cat-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.p360-cat-image-card:hover .p360-cat-image-thumb img {
  transform: scale(1.08);
}

.p360-cat-image-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.p360-cat-image-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--p360-text-main);
  margin: 0 0 6px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.p360-cat-image-card:hover .p360-cat-image-title {
  color: var(--p360-primary);
}

.p360-cat-image-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.p360-cat-image-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p360-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.p360-cat-image-card:hover .p360-cat-image-action {
  gap: 8px;
}

/* Distinct "Browse Category →" Gradient Button */
.p360-cat-gradient-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #6C4CF1, #3485F5);
  color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(108, 76, 241, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.p360-cat-image-card:hover .p360-cat-gradient-btn {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(108, 76, 241, 0.4);
}

/* Hero Explore Prompts Button */
.p360-hero-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.p360-hero-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 76, 241, 0.1);
  color: var(--p360-primary);
  border: 1.5px solid rgba(108, 76, 241, 0.25);
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.p360-hero-explore-btn:hover {
  background: var(--p360-primary);
  color: #FFFFFF;
  border-color: var(--p360-primary);
  transform: translateY(-1px);
}

/* ========================================================
   13. FOOTER SOCIALS (SMOOTH OPACITY TRANSITIONS)
   ======================================================== */
.p360-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.p360-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}
.p360-social-btn:hover {
  background: rgba(108, 76, 241, 0.25);
  color: #FFFFFF;
  opacity: 1;
  transform: translateY(-2px);
}

/* ========================================================
   14. TUTORIALS & GUIDES SPLIT-SCREEN STEP LAYOUT
   ======================================================== */
.p360-step-box {
  display: flex;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--p360-shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p360-step-box:hover {
  box-shadow: var(--p360-shadow-md);
  border-color: rgba(108, 76, 241, 0.3);
}
.p360-step-pill {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C4CF1, #3485F5);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(108, 76, 241, 0.3);
}
.p360-step-content {
  flex: 1 1 auto;
}
.p360-step-heading {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
}
.p360-step-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px;
}
.p360-code-box {
  position: relative;
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid #1E293B;
}
.p360-code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p360-code-copy-btn:hover {
  background: #6C4CF1;
}
.p360-before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (min-width: 600px) {
  .p360-before-after-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.p360-before-after-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  aspect-ratio: 4 / 3;
}
.p360-before-after-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p360-before-after-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}


