/* ---------------------------------------------------------
   BASE & THEME
--------------------------------------------------------- */
:root {
  --bg: #000;
  --bg-card: #181818;
  --border-subtle: #2b2b2b;
  --text-main: #ffffff;
  --text-muted: #a5a5a5;
  --accent-pink: #fe2c55;
  --accent-cyan: #25f4ee;
  --radius-pill: 999px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.35);
  --focus-ring: 0 0 0 3px rgba(37,244,238,0.65);
  font-family: 'Inter', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
}

/* ---------------------------------------------------------
   SHELL
--------------------------------------------------------- */
.tiktok-shell {
  max-width: 960px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   TOP NAV
--------------------------------------------------------- */
.top-nav {
  width: 100%;
  height: 56px;
  background: #111;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-nav-left {
  display: flex;
  align-items: center;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.logo-dot-pink { background: var(--accent-pink); }
.logo-dot-cyan { background: var(--accent-cyan); }

.logo-text {
  font-weight: 700;
  font-size: 18px;
  margin-left: 4px;
}

.top-nav-search {
  display: none;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-btn {
  padding: 7px 16px;
  font-size: 14px;
  background: transparent;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
}

.top-nav-btn.primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  color: #000;
  font-weight: 700;
  border: none;
}

.top-nav-btn:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------------------------------------------------------
   LAYOUT
--------------------------------------------------------- */
.profile-layout {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 16px;
}

/* ---------------------------------------------------------
   PROFILE HEADER
--------------------------------------------------------- */
.profile-header {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.profile-avatar-wrapper {
  width: 120px;
  height: 120px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid #222;
}

.profile-main-info h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.profile-name-row {
  display: flex;
  align-items: center;
}

.profile-handle {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.profile-role {
  margin: 10px 0;
  color: var(--text-main);
  font-size: 14px;
}

.profile-bio {
  color: var(--text-main);
  margin-top: 10px;
}

.profile-contact-row {
  margin-top: 10px;
}

.pill-link {
  padding: 6px 14px;
  display: inline-block;
  background: #111;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
}

.pill-link:hover {
  border-color: var(--accent-cyan);
}

.follow-btn {
  margin-left: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.stat-number {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 4px;
}

/* ---------------------------------------------------------
   TABS
--------------------------------------------------------- */
.profile-tabs {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding-bottom: 8px;
}

.tab-btn.active {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-cyan);
  font-weight: 600;
}

/* ---------------------------------------------------------
   VIDEO CARD GRID
--------------------------------------------------------- */
.profile-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #222;
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.video-card:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.video-thumb {
  width: 100%;
  height: 160px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
}

.video-meta {
  padding: 10px 12px 12px;
}

.video-title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.video-badge {
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-pill);
  margin: 8px;
}

/* ---------------------------------------------------------
   SPECIFIC THUMBNAILS
--------------------------------------------------------- */
.thumb-linkedin {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/ca/LinkedIn_logo_initials.png');
}

.thumb-tiktok {
  background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a9/TikTok_logo.svg');
}

.thumb-youtube {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b8/YouTube_Logo_2017.svg');
}

.thumb-spotify {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/19/Spotify_logo_without_text.svg');
}

.thumb-gov {
  background-image: url("images/hs.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.thumb-contact {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
}

/* ---------------------------------------------------------
   ABOUT / ACCOLADES / ARTICLES
--------------------------------------------------------- */
.tab-about,
.tab-accolades,
.tab-articles {
  margin-top: 20px;
}

.about-block {
  background: #111;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #222;
}

.about-block h2 {
  margin-top: 0;
  font-size: 18px;
}

.about-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

/* Accolades & Articles card grid */
.accolades-media-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-card);
}

.media-card:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* --- Article & media thumbnails --- */
.media-thumb {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
}

/* Authority / AP static thumbs */
.media-thumb-medium {
  background-image: url("https://cdn-icons-png.flaticon.com/512/5968/5968705.png");
}

.media-thumb-ap {
  background-image: url("images/ap.svg");
  background-color: #111;
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Dynamic article thumbnail – always same size */
.media-thumb-article {
  position: relative;
  height: 160px;
  background:
    radial-gradient(circle at top left, rgba(254,44,85,0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(37,244,238,0.28), #111);
  overflow: hidden;
}

.media-thumb-article img.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crops consistently regardless of original size */
  display: block;
}

.media-thumb-article .video-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
}

/* media meta */
.media-meta {
  padding: 12px 14px 14px;
}

.media-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.media-desc {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   CONTACT MODAL
--------------------------------------------------------- */
.contact-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(3px);
}

.contact-modal-backdrop.open {
  display: flex;
}

.contact-modal {
  width: 95%;
  max-width: 460px;
  background: #111;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid #333;
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.contact-form .form-group {
  margin: 14px 0;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  background: #121212;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.contact-submit {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

/* ---------------------------------------------------------
   ARTICLE PAGE
--------------------------------------------------------- */
.article-page-shell {
  min-height: 100vh;
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 16px 36px;
  color: var(--text-main);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-header {
  margin-top: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.article-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* hero container: consistent crop */
.article-hero {
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-height: 420px;     /* always a clean height */
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crop to the container instead of stretching */
  display: block;
}

.article-content {
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
}

.article-content p {
  margin-bottom: 12px;
}

.article-content h2,
.article-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.page-footer {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accolades-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
