/*
Theme Name: Famous Celebrity
Theme URI: https://famouscelebrity.uk
Author: Famous Celebrity
Description: A clean, mobile-friendly theme for a celebrity profiles & birthdays website. Profiles are added as Posts; About/Contact/Privacy/Terms are added as Pages.
Version: 2.6
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   StarBday — Celebrity Birthdays Theme
   Shared stylesheet (homepage + profile)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --teal:        #14a6a0;   /* header / brand */
  --teal-dark:   #0d7d78;
  --pink:        #ff4d7d;   /* accent / rank / hover */
  --ink:         #1b2430;   /* main text */
  --muted:       #6b7785;   /* secondary text */
  --line:        #e8ecf0;   /* borders */
  --bg:          #f5f7f9;   /* page background */
  --card:        #ffffff;
  --radius:      14px;
  --shadow:      0 4px 18px rgba(20,38,55,.07);
  --shadow-hover:0 10px 30px rgba(20,38,55,.14);
  --maxw:        1080px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(13,125,120,.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--pink); }
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  opacity: .92;
  transition: background .18s, opacity .18s;
}
.nav a:hover { background: rgba(255,255,255,.16); opacity: 1; }

/* ---------- Section titles ---------- */
.section { margin: 38px 0; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 6px; height: 26px;
  background: var(--pink);
  border-radius: 4px;
}
.section-title .more {
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

/* ---------- People grid (cards) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.person-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.person-card .photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #cfe9e7, #e9d6df);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: #fff;
  position: relative;
}
.person-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card .info { padding: 11px 12px 14px; }
.person-card .name { font-weight: 700; font-size: 15px; }
.person-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.person-card .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-dark);
  background: #e2f3f1;
  padding: 3px 9px;
  border-radius: 999px;
}

/* rank badge for trending */
.person-card .rank {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 8px;
}

/* ---------- Profile page ---------- */
.profile-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 32px;
}
.profile-photo {
  width: 220px; height: 220px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #cfe9e7, #e9d6df);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 64px; color: #fff;
}
.profile-name { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.profile-prof {
  display: inline-block;
  margin-top: 8px;
  background: #e2f3f1;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 999px;
}
.facts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 28px;
  max-width: 460px;
}
.fact { font-size: 14.5px; }
.fact .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.fact .value { font-weight: 600; }
.fact .value a { color: var(--teal); }
.popular-badge {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--pink); font-size: 15px;
}

/* prose blocks */
.bio-block { margin-top: 30px; }
.bio-block h2 {
  font-size: 19px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.bio-block p { color: #36424f; margin-bottom: 6px; }
.bio-block a { color: var(--teal); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 560px;
  margin-top: 24px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,166,160,.15);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  background: var(--teal);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-submit:hover { background: var(--teal-dark); }
.btn-submit:active { transform: scale(.98); }
.contact-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* legal page readability */
.legal { max-width: 760px; margin-top: 30px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: #36424f; font-size: 15px; }
.legal ol { padding-left: 20px; }
.legal li { margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-top: 4px; }
.legal a { color: var(--teal); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #11181f;
  color: #aeb8c2;
  margin-top: 60px;
  padding: 34px 0;
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.site-footer .logo { color: #fff; font-size: 18px; }
.site-footer a:hover { color: #fff; }
.site-footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-footer .copy { width: 100%; color: #5d6873; font-size: 12.5px; border-top: 1px solid #20292f; padding-top: 16px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-photo { width: 160px; height: 160px; }
  .facts { justify-items: center; }
  .section-title { font-size: 19px; }
}

/* WordPress: featured image inside profile photo */
.profile-photo img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.bio-block img { border-radius:10px; margin:10px 0; }
.section-title .more { cursor:pointer; }

/* ---------- Popularity grid ---------- */
.pop-section { margin-top: 34px; }
.pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pop-box {
  background: linear-gradient(135deg, #ffd9e6, #fff0f5);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.pop-box .pop-pic {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #cfe9e7, #e9d6df);
  display: flex; align-items: center; justify-content: center;
}
.pop-box .pop-pic img { width: 100%; height: 100%; object-fit: cover; }
.pop-box .pop-pic .pop-ph { color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; }
.pop-box .pl { flex: 1; font-size: 14px; color: var(--ink); font-weight: 500; }
.pop-box .pr { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) {
  .pop-grid { grid-template-columns: 1fr; }
}

/* clickable popularity boxes */
a.pop-box { text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.pop-box:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,77,125,.28); }

/* ---------- Footer extra bar (social + apps + language) ---------- */
.footer-bar { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; }
.fb-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1b2430; background: #f1f4f6;
  transition: background .15s, color .15s, transform .15s;
}
.social-row a svg { width: 20px; height: 20px; }
.social-row a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

.app-badges { display: flex; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #000; color: #fff;
  padding: 8px 14px; border-radius: 10px;
  transition: transform .15s, opacity .15s;
}
.badge:hover { transform: translateY(-2px); opacity: .9; }
.badge .bicon { width: 22px; height: 22px; }
.badge .btxt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge .btxt small { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }
.badge .btxt strong { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }

.lang-flags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lang-flags a { display: block; line-height: 0; }
.lang-flags img {
  width: 34px; height: auto; border-radius: 4px;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .15s, border-color .15s;
}
.lang-flags a:hover img { transform: translateY(-2px); }
.lang-flags a.active img { border-color: var(--teal); }

/* hide Google translate top banner */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

@media (max-width: 640px) {
  .fb-inner { gap: 18px; }
  .badge .btxt strong { font-size: 13px; }
}

/* ---------- Trending list ---------- */
.trend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.trend-item {
  display: flex; align-items: center; gap: 12px;
  background: #f1f4f6; border-radius: 12px; padding: 8px 14px;
  transition: background .15s, transform .15s;
}
.trend-item:hover { background: #e7edf1; transform: translateY(-2px); }
.trend-item .t-photo {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #cfe9e7, #e9d6df);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
}
.trend-item .t-photo img { width: 100%; height: 100%; object-fit: cover; }
.trend-item .t-name { flex: 1; font-weight: 600; font-size: 14px; color: var(--ink); }
.trend-item .t-rank { display: flex; align-items: center; gap: 5px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.trend-more {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffd9e6, #fff0f5); border-radius: 12px; padding: 8px 14px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.trend-more:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,77,125,.25); }
@media (max-width: 640px) { .trend-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile hamburger menu ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-header .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--teal-dark);
    padding: 8px 14px 14px;
    box-shadow: 0 12px 24px rgba(13,125,120,.28);
  }
  .site-header .nav.open { display: flex; }
  .site-header .nav a { width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 8px; }
}
