/* ═══════════════════════════════════════════════════════════════════════════
   PRESENTIFY – FRONTEND CSS (Presentation Pages + Search)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pfy-primary: #6366f1;
  --pfy-accent:  #f59e0b;
  --pfy-text:    #1e293b;
  --pfy-text2:   #64748b;
  --pfy-bg:      #f8fafc;
  --pfy-surface: #ffffff;
  --pfy-border:  #e2e8f0;
  --pfy-radius:  12px;
  --pfy-shadow:  0 4px 24px rgba(0,0,0,.08);
  --pfy-font:    'Outfit', system-ui, sans-serif;
  --pfy-font2:   'Sora', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
.pfy-presentation {
  font-family: var(--pfy-font);
  color: var(--pfy-text);
  background: var(--pfy-bg);
  line-height: 1.7;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}
.pfy-presentation *, .pfy-search-app * { box-sizing: border-box; }
.pfy-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.pfy-pres-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pfy-border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.pfy-pres-header__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px; height: 64px;
}
.pfy-pres-header__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--pfy-text);
  font-family: var(--pfy-font2); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.pfy-pres-header__logo { height: 36px; width: 36px; object-fit: contain; border-radius: 6px; }
.pfy-pres-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pfy-pres-nav__link {
  padding: 7px 14px; border-radius: 8px; text-decoration: none;
  color: var(--pfy-text2); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.pfy-pres-nav__link:hover            { color: var(--pfy-text); background: var(--pfy-bg); }
.pfy-pres-nav__link--active          { color: var(--pfy-primary); font-weight: 700; background: rgba(99,102,241,.08); }

/* Hamburger */
.pfy-pres-header__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px; margin-left: auto;
}
.pfy-pres-header__hamburger span { display: block; width: 22px; height: 2px; background: var(--pfy-text); border-radius: 2px; transition: .3s; }
.pfy-pres-header__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.pfy-pres-header__hamburger.open span:nth-child(2) { opacity: 0; }
.pfy-pres-header__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.pfy-pres-mobile-nav {
  display: none; flex-direction: column;
  background: var(--pfy-surface); border-top: 1px solid var(--pfy-border);
  padding: 12px 24px;
}
.pfy-pres-mobile-nav.open { display: flex; }
.pfy-pres-mobile-nav a {
  padding: 12px 0; text-decoration: none; color: var(--pfy-text2);
  border-bottom: 1px solid var(--pfy-border); font-size: 15px; font-weight: 500;
}
.pfy-pres-mobile-nav a.active { color: var(--pfy-primary); }

/* ── Blocks ─────────────────────────────────────────────────────────────────── */
.pfy-block { padding: 60px 0; }

/* Animation */
.pfy-animate { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.pfy-animate.pfy-visible { opacity: 1; transform: none; }

/* Hero */
.pfy-hero {
  padding: 80px 0 100px; text-align: center; color: #fff; position: relative;
  overflow: hidden;
}
.pfy-hero--full { min-height: 100vh; display: flex; align-items: center; }
.pfy-hero--full .pfy-hero__inner { width: 100%; }
.pfy-hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.pfy-hero__logo { height: 72px; width: 72px; object-fit: contain; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pfy-hero__title { font-family: var(--pfy-font2); font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.pfy-hero__subtitle { font-size: clamp(1rem,2vw,1.25rem); opacity: .88; margin-bottom: 32px; font-weight: 300; }

/* Text block */
.pfy-text .pfy-container { max-width: 760px; font-size: 16px; }
.pfy-text h1,.pfy-text h2,.pfy-text h3 { font-family: var(--pfy-font2); color: var(--pfy-text); margin-bottom: 12px; }
.pfy-text p { color: var(--pfy-text2); margin-bottom: 16px; }
.pfy-text a { color: var(--pfy-primary); }
.pfy-text strong { color: var(--pfy-text); }

/* Heading */
.pfy-heading { padding: 32px 0 0; }
.pfy-heading h1,.pfy-heading h2,.pfy-heading h3 { font-family: var(--pfy-font2); color: var(--pfy-text); }
.pfy-heading h2 { font-size: 2rem; font-weight: 800; }

/* Section title (shared) */
.pfy-section-title { font-family: var(--pfy-font2); font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 48px; color: var(--pfy-text); }
.pfy-section-title::after { content: ''; display: block; width: 40px; height: 4px; background: var(--pfy-primary); border-radius: 2px; margin: 12px auto 0; }
.pfy-subtitle { text-align: center; color: var(--pfy-text2); font-size: 17px; margin-bottom: 40px; margin-top: -32px; }

/* Image */
.pfy-image-block figure { text-align: center; }
.pfy-image-block img { max-width: 100%; border-radius: var(--pfy-radius); box-shadow: var(--pfy-shadow); }
.pfy-image-block figcaption { font-size: 13px; color: var(--pfy-text2); margin-top: 10px; }

/* Gallery */
.pfy-gallery__grid { display: grid; grid-template-columns: repeat(var(--cols,3),1fr); gap: 12px; }
.pfy-gallery__item { overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.pfy-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pfy-gallery__item:hover img { transform: scale(1.05); }

/* Video */
.pfy-video__wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--pfy-radius); }
.pfy-video__wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Columns */
.pfy-columns__grid { display: grid; grid-template-columns: repeat(var(--cols,2),1fr); gap: 32px; }

/* Services */
.pfy-services { background: var(--pfy-bg); }
.pfy-services__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }
.pfy-services__card { background: var(--pfy-surface); border: 1px solid var(--pfy-border); border-radius: var(--pfy-radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.pfy-services__card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.pfy-services__icon { font-size: 32px; margin-bottom: 14px; }
.pfy-services__card h3 { font-family: var(--pfy-font2); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pfy-services__card p { color: var(--pfy-text2); font-size: 14px; }

/* Team */
.pfy-team__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 28px; }
.pfy-team__card { text-align: center; }
.pfy-team__avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--pfy-border); }
.pfy-team__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pfy-team__avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #fff; }
.pfy-team__card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pfy-team__role { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pfy-team__bio { font-size: 13px; color: var(--pfy-text2); }

/* Stats */
.pfy-stats { background: var(--pfy-surface); }
.pfy-stats__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 64px; }
.pfy-stat { text-align: center; }
.pfy-stat__number { font-family: var(--pfy-font2); font-size: 3rem; font-weight: 800; line-height: 1; display: block; }
.pfy-stat__label  { font-size: 14px; color: var(--pfy-text2); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

/* Testimonials */
.pfy-testimonials__grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.pfy-testimonial__card { background: var(--pfy-surface); border: 1px solid var(--pfy-border); border-radius: var(--pfy-radius); padding: 28px; }
.pfy-testimonial__quote { font-size: 15px; color: var(--pfy-text); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.pfy-testimonial__card strong { font-family: var(--pfy-font2); font-weight: 700; display: block; }
.pfy-testimonial__card span { font-size: 13px; color: var(--pfy-text2); }

/* CTA */
.pfy-cta { padding: 80px 0; text-align: center; color: #fff; }
.pfy-cta h2 { font-family: var(--pfy-font2); font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.pfy-cta p  { font-size: 17px; opacity: .88; margin-bottom: 32px; }

/* Social */
.pfy-social__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pfy-social__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  background: var(--pfy-surface); border: 1px solid var(--pfy-border);
  color: var(--pfy-text2); font-size: 14px; font-weight: 600;
  transition: all .2s; text-transform: capitalize;
}
.pfy-social__link:hover { border-color: var(--pfy-primary); color: var(--pfy-primary); transform: translateY(-2px); }

/* Contact form */
.pfy-contact { background: var(--pfy-bg); }
.pfy-contact-form {
  max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.pfy-contact-form input,
.pfy-contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--pfy-border); font-family: var(--pfy-font);
  font-size: 15px; color: var(--pfy-text); background: var(--pfy-surface);
  outline: none; transition: border-color .2s;
}
.pfy-contact-form input:focus, .pfy-contact-form textarea:focus { border-color: var(--pfy-primary); }
.pfy-contact-form textarea { min-height: 140px; resize: vertical; }
.pfy-contact__msg { text-align: center; font-weight: 600; font-size: 14px; min-height: 20px; }

/* Divider */
.pfy-divider { padding: 20px 0; }
.pfy-divider hr { border: none; border-top: 1px solid var(--pfy-border); }

/* Accordion */
.pfy-accordion { background: var(--pfy-surface); }
.pfy-accordion__item { border: 1px solid var(--pfy-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.pfy-accordion__item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.pfy-accordion__item summary::after { content: '+'; font-size: 20px; color: var(--pfy-primary); }
.pfy-accordion__item[open] summary::after { content: '−'; }
.pfy-accordion__item p { padding: 0 20px 16px; color: var(--pfy-text2); font-size: 15px; }

/* Map */
.pfy-map .pfy-container { padding: 0 24px; }

/* Buttons */
.pfy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-family: var(--pfy-font2); font-size: 15px; font-weight: 700; transition: all .25s; border: none; cursor: pointer; }
.pfy-btn--primary { background: var(--pfy-primary); color: #fff; }
.pfy-btn--primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.pfy-btn--accent  { color: #fff; }
.pfy-btn--accent:hover { opacity: .9; transform: translateY(-2px); }
.pfy-btn--light   { background: #fff; color: var(--pfy-text); }
.pfy-btn--light:hover { background: var(--pfy-bg); }

/* Empty page */
.pfy-empty-page { text-align: center; padding: 80px 24px; color: var(--pfy-text2); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.pfy-pres-footer {
  background: var(--pfy-text); color: rgba(255,255,255,.6);
  padding: 32px 0; margin-top: 40px;
}
.pfy-pres-footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pfy-pres-footer__powered { margin-left: auto; }
.pfy-pres-footer__powered a { color: var(--pfy-primary); text-decoration: none; }
.pfy-pres-footer__edit-btn {
  background: var(--pfy-primary); color: #fff;
  padding: 7px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
#pfy-search-app { font-family: var(--pfy-font); }

.pfy-search-hero {
  text-align: center; padding: 64px 24px 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c0a09 100%);
  position: relative; overflow: hidden;
}
.pfy-search-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(99,102,241,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(245,158,11,.1) 0%, transparent 60%);
}
.pfy-search-hero > * { position: relative; z-index: 1; }

.pfy-search-hero__title {
  font-family: var(--pfy-font2); font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.15;
}
.pfy-search-hero__sub { color: rgba(255,255,255,.6); font-size: 17px; margin-bottom: 40px; }

.pfy-search-bar {
  max-width: 620px; margin: 0 auto;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 20px; backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0,0,0,.3); transition: border-color .2s;
}
.pfy-search-bar:focus-within { border-color: rgba(99,102,241,.8); }
.pfy-search-bar__icon { font-size: 18px; color: rgba(255,255,255,.5); }
.pfy-search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-family: var(--pfy-font); font-size: 16px;
  padding: 10px 0;
}
.pfy-search-bar input::placeholder { color: rgba(255,255,255,.4); }
.pfy-search-bar__btn {
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  color: #fff; border: none; padding: 11px 22px; border-radius: 40px;
  font-family: var(--pfy-font); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.pfy-search-bar__btn:hover { opacity: .9; transform: scale(1.03); }

.pfy-search-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pfy-cat-pill {
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.pfy-cat-pill:hover, .pfy-cat-pill--active {
  background: #6366f1; border-color: #6366f1; color: #fff;
}
.pfy-search-create-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  padding: 13px 26px; border-radius: 50px; text-decoration: none;
  font-family: var(--pfy-font2); font-size: 14px; font-weight: 700;
  transition: all .25s; box-shadow: 0 4px 16px rgba(245,158,11,.4);
  cursor: pointer; border: none;
}
.pfy-search-create-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.5); }

/* Results */
.pfy-search-results-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.pfy-search-meta { color: var(--pfy-text2); font-size: 14px; margin-bottom: 24px; }
.pfy-search-results {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px;
}

/* Card */
.pfy-pres-card {
  background: var(--pfy-surface); border: 1px solid var(--pfy-border);
  border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.pfy-pres-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.pfy-pres-card__cover {
  height: 160px; background: linear-gradient(135deg,#6366f1,#4f46e5);
  position: relative; overflow: hidden;
}
.pfy-pres-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.pfy-pres-card__cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.pfy-pres-card__logo {
  position: absolute; bottom: -20px; left: 20px;
  width: 48px; height: 48px; border-radius: 12px; border: 3px solid #fff;
  background: #fff; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.pfy-pres-card__body { padding: 28px 20px 20px; flex: 1; }
.pfy-pres-card__category {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--pfy-primary); margin-bottom: 8px;
}
.pfy-pres-card__title { font-family: var(--pfy-font2); font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--pfy-text); }
.pfy-pres-card__tagline { font-size: 14px; color: var(--pfy-text2); }
.pfy-pres-card__footer {
  padding: 14px 20px; border-top: 1px solid var(--pfy-border);
  display: flex; justify-content: space-between; align-items: center;
}
.pfy-pres-card__views { font-size: 13px; color: var(--pfy-text2); }
.pfy-pres-card__cta { font-size: 13px; font-weight: 700; color: var(--pfy-primary); }

/* Pagination */
.pfy-search-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pfy-page-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--pfy-border);
  background: var(--pfy-surface); color: var(--pfy-text2); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.pfy-page-btn:hover, .pfy-page-btn--active { background: var(--pfy-primary); border-color: var(--pfy-primary); color: #fff; }

/* Loading skeleton */
.pfy-skeleton { background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; animation: pfy-shimmer 1.4s infinite; border-radius: 8px; }
@keyframes pfy-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pfy-pres-nav { display: none; }
  .pfy-pres-header__hamburger { display: flex; }
  .pfy-hero { padding: 60px 0 80px; }
  .pfy-block { padding: 40px 0; }
  .pfy-section-title { font-size: 1.6rem; margin-bottom: 32px; }
  .pfy-stats__grid { gap: 32px 40px; }
  .pfy-columns__grid { grid-template-columns: 1fr; }
  .pfy-gallery__grid { grid-template-columns: repeat(2,1fr); }
  .pfy-search-results { grid-template-columns: 1fr; }
  .pfy-tpl-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── Template variants ──────────────────────────────────────────────────────── */
.pfy-tpl-gaming { --pfy-bg:#0f172a; --pfy-surface:#1e293b; --pfy-text:#e2e8f0; --pfy-text2:#94a3b8; --pfy-border:#334155; }
.pfy-tpl-gaming .pfy-pres-header { background:rgba(15,23,42,.9); border-color:#334155; }
.pfy-tpl-gaming .pfy-pres-header__brand, .pfy-tpl-gaming .pfy-pres-nav__link { color:#e2e8f0; }
.pfy-tpl-gaming .pfy-services__card, .pfy-tpl-gaming .pfy-testimonial__card { background:#1e293b; border-color:#334155; }
.pfy-tpl-gaming .pfy-pres-footer { background:#020617; }
.pfy-tpl-gaming .pfy-section-title, .pfy-tpl-gaming h1,.pfy-tpl-gaming h2,.pfy-tpl-gaming h3 { color:#e2e8f0; }
