
/* Media page only. */

/* SPA-style page switching (directory <-> profile) */
.page { display: none; }
.page.active { display: block; }

/* Generic section wrapper — replaces the ad-hoc inline max-width that
   used to live on <main style="..."> */
.section { max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-title { font-size: 1.6rem; font-weight: 700; }

/* ── Hero ── */
.media-hero { padding-top: 4.5rem; }

.media-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }

.media-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.media-hero-copy { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 560px; font-weight: 300; }

.hero-art { height: 360px; }

.hero-art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.hero-art-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 2.5rem;
}

.hero-art-tile.large { grid-row: span 2; font-size: 3rem; }

.hero-art-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Filter tabs ── */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }

.tab {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.tab.active,
.tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Photographer grid ── */
.photographer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photographer-card { text-align: center; cursor: pointer; transition: all 0.25s; background: #16100f; padding: 1.0rem 1.0rem; }

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3a, #1a1a26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

.photographer-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.photographer-card p { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; font-weight: 300; }
.photographer-stats { display: flex; justify-content: center; gap: 1.5rem; }
.stat { text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 700; }
.stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Profile view ── */
#page-profile { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.profile-cover {
  height: 280px;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1f 50%, #1a0f2e 100%);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
}

.cover-shimmer { position: absolute; inset: 0; overflow: hidden; }
.cover-shimmer::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,60,95,0.08) 0%, transparent 60%);
  top: -200px;
  right: 10%;
}
.cover-shimmer::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(60,143,255,0.06) 0%, transparent 60%);
  bottom: -100px;
  left: 20%;
}

.profile-cover-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3a, #1a1a26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.profile-cover-info h1 { font-family: "Bebas Neue", sans-serif; font-size: 2.5rem; letter-spacing: 2px; margin-bottom: 0.2rem; }
.profile-cover-info p { color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.profile-cover-actions { margin-left: auto; display: flex; gap: 0.8rem; align-items: flex-end; padding-bottom: 0.2rem; }

.profile-body { max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem; }
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; margin-top: 2rem; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.bio-text { font-size: 0.85rem; line-height: 1.7; color: var(--text); font-weight: 300; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sidebar-stat { text-align: center; background: rgba(255,255,255,0.03); border-radius: 4px; padding: 0.8rem; }

.social-links { display: flex; flex-direction: column; gap: 0.6rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  transition: all 0.2s;
}
.social-link:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.social-link .sicon { font-size: 1.1rem; width: 24px; text-align: center; }
.social-link .sname { font-weight: 600; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); width: 60px; }
.social-link .shandle { font-size: 0.82rem; color: var(--text); }

.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 244, 244, 0.03);
}

.hire-card {
  background: linear-gradient(135deg, rgba(255,60,95,0.08), rgba(155,92,245,0.08));
  border: 1px solid rgba(255,60,95,0.25);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.hire-card h4 { font-family: "Bebas Neue", sans-serif; font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.hire-card p { font-size: 0.8rem; color: var(--muted); font-weight: 300; margin-bottom: 1rem; line-height: 1.5; }

.profile-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; flex-wrap: wrap; }
.profile-tab {
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

.media-grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.media-thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1e1e2e, #0d0d14);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.media-thumb:hover { border-color: rgba(255,60,95,0.4); transform: scale(1.02); }
.media-thumb .thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.media-thumb:hover .thumb-overlay { opacity: 1; }
.thumb-overlay-text { color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.media-grid-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.25s; }
.video-card:hover { border-color: rgba(60,143,255,0.4); transform: translateY(-2px); }
.video-thumb { height: 160px; background: linear-gradient(135deg, #1a1a2e, #0f0f1a); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; }
.play-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: var(--gold); font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 2px; }
.video-info { padding: 1rem; }
.video-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.video-info p { font-size: 0.72rem; color: var(--muted); }

.media-grid-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.film-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.25s; }
.film-card:hover { border-color: rgba(155,92,245,0.4); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.film-banner { height: 200px; background: linear-gradient(160deg, #1a1a2e, #12002a); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.film-rating { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #0a0a0a; font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 2px; }
.film-info { padding: 1.2rem; }
.film-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.film-info p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.8rem; font-weight: 300; }
.film-meta { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--muted); flex-wrap: wrap; }

.media-footer {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .media-hero-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-cover-content { flex-wrap: wrap; padding: 0 1rem 1.5rem; }
  .profile-cover-actions { margin-left: 0; }
  .profile-body { padding: 0 1rem 3rem; }
  .media-footer { flex-direction: column; text-align: center; padding: 2rem 1rem; }
}
