/* Styles for Creator Portal */
:root {
  /* remove legacy dropdown nav block (now using overlay up to 900px) */
  /* Hide footer social icons like index */
  footer.site-footer .social {
    display: none;
  }
  /* Neutralize any residual styling */
  footer.site-footer .social li a,
  footer.site-footer .social li a i {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* Ensure play buttons and similar accents don't show blue glows */
  .yt-card .play,
  .yt-card .play i {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.12)
    ) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  }
  /* Header: transparent top menu over hero */
  /* Header: fixed black navigation */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: #000000; /* match index */
    padding: 5px 0;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  header .container {
    max-width: 1100px;
    width: auto;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    position: relative;
  }
  header .brand {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.3px;
  }
  nav {
    position: absolute;
    top: 58px;
    right: 12px;
    width: 220px;
    max-width: calc(100% - 24px);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 2000;
  }
  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-weight: 600;
    font-size: 16px;
  }
  nav a:hover {
    color: #ffffff;
    background: rgb(0, 0, 0);
  }

  /* helper if you want to switch to solid white header */
  header.solid {
    background: #fff;
  }
  header.solid nav a {
    color: var(--muted);
  }

  /* Hamburger / mobile nav styles */
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    position: absolute;
    right: 12px;
  }
  .menu-toggle:focus {
    outline: 3px solid rgba(255, 255, 255, 0.12);
  }
  .menu-toggle .hamburger {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all 0.18s ease;
  }
  .menu-toggle .hamburger::before,
  .menu-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.18s ease;
  }
  .menu-toggle .hamburger::before {
    top: -7px;
  }
  .menu-toggle .hamburger::after {
    top: 7px;
  }

  /* When menu open, animate hamburger into X */
  header.open .menu-toggle .hamburger {
    background: transparent;
  }
  header.open .menu-toggle .hamburger::before {
    transform: translateY(8px) rotate(45deg);
  }
  header.open .menu-toggle .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  header.open nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Brand image helper (use for header logo) */
  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 1100;
    margin-left: 5px;
  }
  .brand-logo {
    height: 50px; /* match requested header logo size */
    width: auto;
    display: block;
  }

  nav ul li {
    margin: 0;
    width: 100%;
  }

  nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s;
    font-weight: 600;
    font-size: 16px;
  }

  nav ul li a:hover,
  nav ul li a:focus {
    background: rgb(0, 0, 0);
    color: #ffffff;
    transform: translateY(-1px);
  }
  html,
  body {
    height: 100%;
  }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
  }
  body > .feedback {
    flex: 1;
    width: 100%;
  }
  nav ul {
    flex-direction: column;
    gap: 8px;
  }
  nav ul li a {
    padding: 8px 12px;
  }
}

/* when menu toggle is active, animate hamburger */
.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer sizing and color (match index) */
footer.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 16px 18px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* Layout: keep footer at bottom without changing its size */
html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  overflow-x: hidden;
}
section.feedback {
  flex: 1;
}
footer.site-footer {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Video placeholder styling */
.video-placeholder {
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.video-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}
.video-placeholder .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play-overlay i {
  color: #fff;
  font-size: 28px;
}
.video-card-title {
  margin: 8px 0 6px;
  font-size: 16px;
}
.video-card-desc {
  font-size: 13px;
  color: var(--muted);
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.card.small {
  padding: 12px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2,
h3 {
  margin: 6px 0 12px;
}

label {
  display: block;
  margin: 8px 0 6px;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e6ef;
  border-radius: 6px;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.btn {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.muted {
  color: var(--muted);
}
.note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Feedback page specifics */
.feedback-post {
  padding: 12px;
  background: #fff;
  border-radius: 10px;
}
.feedback .btn.primary {
  background: linear-gradient(180deg, #ff4b4b, #c92a2a);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(201, 42, 42, 0.12);
}
.feedback hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid rgba(16, 24, 40, 0.04);
}
/* Make form elements and cards "pop" from the white page */
.feedback.card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
  padding: 22px;
}
.feedback input,
.feedback textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.12s ease,
    transform 0.12s ease, background 0.12s ease;
  font-size: 15px;
  color: #0f172a;
}
.feedback input::placeholder,
.feedback textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.feedback textarea {
  min-height: 140px;
  resize: vertical;
}
.feedback input:focus,
.feedback textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.185);
  transform: translateY(-2px);
  background: #fff;
}
.feedback .feedback-post {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 40, 0.04);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  position: relative;
  overflow: hidden;
}
.feedback .feedback-post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  /* modern red accent: gentle red gradient */
  background: linear-gradient(180deg, #ff6b6b, var(--accent));
}
.feedback .btn {
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.12s ease;
}
.feedback .btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.12);
}
.feedback .btn.primary:hover {
  filter: brightness(0.95);
  box-shadow: 0 22px 54px rgba(201, 42, 42, 0.16);
  transform: translateY(-8px);
}
.feedback .btn.primary:focus {
  outline: 3px solid rgba(201, 42, 42, 0.12);
  outline-offset: 4px;
}
.feedback .btn.secondary {
  background: transparent;
  border: 1px solid rgba(16, 24, 40, 0.06);
  color: #111827;
}
.feedback .btn.secondary:hover {
  background: rgba(16, 24, 40, 0.02);
}

/* labels */
.feedback label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 6px;
}
/* Hover / focus effects for feedback buttons */
.feedback .btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.12s ease;
}
.feedback .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.feedback .btn:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 4px;
}
.feedback .btn.primary:hover {
  filter: brightness(0.96);
}
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post {
  border: 1px solid #ecebf3;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.post .meta {
  flex: 1;
}
.post h4 {
  margin: 0 0 8px;
}
.post .actions {
  display: flex;
  gap: 6px;
}
.pill {
  background: #eef2ff;
  color: #a33030;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
}
.small-muted {
  font-size: 13px;
  color: var(--muted);
}

/* Layout helpers for Creator Hub */
.creator-hub .links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.creator-hub .links-grid .btn {
  min-width: 140px;
}

/* Center and expand Creator Hub so it fills more of the site while keeping content intact */
.creator-hub > .container {
  max-width: 1200px; /* slightly wider than the default page container */
  width: 92%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* center the content horizontally */
}
/* keep the links visually centered on larger screens; mobile rules will revert to start */
.creator-hub .links-grid {
  justify-content: center;
}

/* platform item and follow button styling */
.creator-hub .platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px;
  width: 96px;
}
.creator-hub .platform-card {
  margin-bottom: 6px;
}
.creator-hub .platform-card {
  /* icon hover effect to match follow button */
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(180deg, #071124, #04101a);
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.12s ease;
  cursor: pointer;
}
.creator-hub .platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
}
.creator-hub .platform-card:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 4px;
}
.creator-hub .platform-card.custom {
  background: #000;
  background-size: cover;
  background-position: center;
}
.creator-hub .platform-card.custom i {
  display: none;
}
.creator-hub .platform-follow {
  display: inline-block;
  background: linear-gradient(180deg, #071124, #04101a);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.12s ease;
  font-size: 14px;
  width: 100%;
  text-align: center;
}
.creator-hub .platform-follow:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
}
.creator-hub .platform-follow:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 4px;
}

/* smaller follow buttons on small screens */
@media (max-width: 900px) {
  .creator-hub .platform-item {
    width: 84px;
  }
  .creator-hub .platform-follow {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .creator-hub .platform-item {
    width: 72px;
  }
  .creator-hub .platform-follow {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
  }
}

.videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.videos-grid .card {
  flex: 1 1 320px;
  max-width: 100%;
}
.videos-grid iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Make the hero spacing responsive */
.hero {
  padding-top: 90px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .container {
    padding: 16px;
  }
  .videos-grid .card {
    flex: 1 1 280px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 12px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .post {
    flex-direction: column;
    gap: 8px;
  }
  .creator-hub .links-grid {
    justify-content: flex-start;
  }
  .videos-grid {
    flex-direction: column;
  }
  .hero {
    padding-top: 80px;
  }
}

/* Video feed styles (YouTube-like) */
.video-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Carousel (vertical 3D roller) styles */
.video-carousel {
  position: relative;
  perspective: 1400px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-feed {
  display: block;
  width: 100%;
}
.video-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.6s;
  will-change: transform, opacity;
  width: 86%;
  max-width: 1000px;
  padding: 12px;
  box-sizing: border-box;
}
.video-item .video-thumb {
  flex: 0 0 360px;
  max-width: 360px;
  margin-right: 18px;
  display: inline-block;
}
.video-item .video-thumb img {
  width: 360px;
  height: auto;
  border-radius: 6px;
  display: block;
}
.video-item .video-meta {
  display: inline-block;
  vertical-align: top;
  max-width: calc(100% - 380px);
}
.video-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.video-channel-row {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot-sep {
  opacity: 0.6;
}
.video-desc {
  margin-top: 8px;
}

/* play overlay remains centered on thumb */
.video-thumb .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}
.video-thumb .play-overlay i {
  color: #fff;
  font-size: 28px;
}

/* Positioning helpers for the carousel items: JS will set transforms based on index (horizontal orientation) */
.video-item[data-pos="0"] {
  opacity: 1;
  z-index: 50;
}
.video-item[data-pos="1"],
.video-item[data-pos="-1"] {
  opacity: 0.95;
  z-index: 45;
}
.video-item[data-pos="2"],
.video-item[data-pos="-2"] {
  opacity: 0.8;
  z-index: 35;
}
.video-item[data-pos="3"],
.video-item[data-pos="-3"] {
  opacity: 0.5;
  z-index: 25;
}
.video-item[data-pos="4"],
.video-item[data-pos="-4"] {
  opacity: 0.25;
  z-index: 15;
}

@media (max-width: 900px) {
  .video-carousel {
    height: 360px;
  }
  .video-item .video-thumb {
    width: 260px;
    max-width: 260px;
  }
  .video-item .video-meta {
    max-width: calc(100% - 280px);
  }
}

@media (max-width: 700px) {
  .video-carousel {
    height: 760px;
  }
  .video-item {
    width: 92%;
  }
  .video-item .video-thumb {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 0 10px;
  }
  .video-item .video-meta {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
