/* ===================================================
   CreatorHub — OnlyFans-style Template Stylesheet
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base:       #f4f6f9;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f4f8;
  --bg-input:      #e8edf2;
  --border:        rgba(0,0,0,0.08);
  --border-light:  rgba(0,0,0,0.14);

  --accent:        #00aff0;
  --accent-dark:   #0090cc;
  --accent-glow:   rgba(0,175,240,0.15);
  --gold:          #d4a830;
  --gold-dark:     #b8901a;

  --text-primary:  #0f1114;
  --text-secondary:#4a5260;
  --text-muted:    #9aa0ad;

  /* Dark Theme
  --bg-base:       #111214;
  --bg-card:       #1a1c1f;
  --bg-card-hover: #20232a;
  --bg-input:      #23262d;
  --border:        rgba(255,255,255,0.08);
  --border-light:  rgba(255,255,255,0.14);

  --accent:        #00aff0;
  --accent-dark:   #0090cc;
  --accent-glow:   rgba(0,175,240,0.25);
  --gold:          #f4c542;
  --gold-dark:     #d4a830;

  --text-primary:  #f0f2f5;
  --text-secondary:#a0a8b4;
  --text-muted:    #5a6270;
  */

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-pill:   999px;

  --shadow-card:   0 4px 28px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 24px rgba(0,175,240,0.35);

  --font-display:  'DM Serif Display', serif;
  --font-body:     'DM Sans', sans-serif;

  --header-h:      68px;
  --container-w:   1160px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-lg   { padding: 14px 30px; font-size: 15px; }
.btn-sm   { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.icon-only { padding: 10px; }

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* ====================================================
   HEADER
   ==================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244,246,249,0.92); /* background: rgba(17,18,20,0.9); */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.logo-icon { color: var(--accent); font-size: 1.4rem; }
.logo-text  { color: var(--text-primary); }
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 6px 14px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-menu a {
  padding: 10px 0;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ====================================================
   HERO / PROFILE
   ==================================================== */
.hero {
  position: relative;
  margin-bottom: 64px;
}

/* Banner */
.hero-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.hero-banner-img {
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to bottom,
  rgba(244,246,249,0.1) 0%,
  rgba(244,246,249,0.7) 100%
  );
  /*
  background: linear-gradient(
    to bottom,
    rgba(17,18,20,0.15) 0%,
    rgba(17,18,20,0.80) 100%
  ); */
}

/* Profile card */
.hero-content { position: relative; }
.profile-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: -72px;
  padding-bottom: 16px;
}

/* Avatar */
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--bg-base);
  object-fit: cover;
  background: var(--bg-card);
}
.verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--accent);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--bg-base);
}

/* Profile info */
.profile-info { padding-top: 80px; flex: 1; }

.profile-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.profile-name em {
  color: var(--accent);
  font-style: normal;
  font-size: 1rem;
}

.profile-handle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.profile-bio {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Stats */
.profile-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Profile actions */
.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ====================================================
   SUBSCRIPTION TIERS
   ==================================================== */
.tiers-section {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(0,175,240,0.04) 50%, var(--bg-base) 100%);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.tier-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.tier-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent);
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier-badge--gold {
  background: var(--gold);
  color: #1a1200;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.tier-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.tier-savings {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: -10px;
}

.tier-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-bottom: 4px;
}
.tier-features li { display: flex; align-items: flex-start; gap: 8px; }

/* ====================================================
   POSTS / FEED
   ==================================================== */
.posts-section { padding: 60px 0; }

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.posts-header .section-title { margin-bottom: 0; }

.posts-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Post card */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Post media */
.post-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.post-media img {
  height: 100%;
  transition: transform 0.4s ease;
}
.post-card:hover .post-media img { transform: scale(1.04); }

/* Locked post */
.post-card--locked {}
.post-media--locked img {
  filter: blur(2px) brightness(0.45);
  transform: scale(1.05);
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.lock-icon { font-size: 2rem; }
.lock-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Post body */
.post-body { padding: 16px; }
.post-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-text--blur {
  filter: blur(1px);
  user-select: none;
  -webkit-user-select: none;
  color: var(--text-secondary);
}

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-date { font-size: 0.78rem; color: var(--text-muted); }

/* Post action buttons */
.post-actions { display: flex; gap: 12px; }
.post-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.post-action-btn:hover { color: var(--accent); }

/* Post badge */
.post-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.post-badge--exclusive {
  background: rgba(0,175,240,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,175,240,0.3);
}

/* Load more */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ====================================================
   ABOUT
   ==================================================== */
.about-section {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 560px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* Socials */
.about-socials h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }
.social-link:last-child { border-bottom: none; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  padding: 32px 0;
  background: var(--bg-base);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
  .tiers-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .hero-banner { height: 200px; }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -56px;
    gap: 0;
  }
  .profile-info { padding-top: 12px; }
  .profile-stats { justify-content: center; }
  .profile-actions { justify-content: center; }
  .profile-bio { margin: 0 auto 20px; }

  .posts-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .posts-header { flex-direction: column; align-items: flex-start; }

  .section-title { font-size: 1.4rem; }
}
