@import url('webdev_var.css');



body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family, Arial, sans-serif);
  background: var(--body-bg);
  color: var(--main-txt);
}

.main {
  margin-top: var(--header-height);
  padding: var(--space-lg);
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  background: var(--main-bg);
  color: var(--main-txt);
}
/* ----------------------------------------
   HEADER BLOCK
---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-bg);
  color: var(--header-txt);
  border-bottom: var(--header-brdr);
  z-index: 1000;

  display: flex;
  align-items: center;
}

/* ----------------------------------------
   HEADER CONTAINER (3-column layout)
---------------------------------------- */
.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 var(--space-md);
  overflow: visible;
}

/* ----------------------------------------
   LEFT / CENTER / RIGHT ZONES
---------------------------------------- */
.header-left,
.header-center,
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

/* Left */
.header-left {
  justify-content: flex-start;
}

/* Center */
.header-center {
  justify-content: center;
}

/* Right */
.header-right {
  justify-content: flex-end;
  gap: var(--space-md);
  overflow: visible;
}

/* ----------------------------------------
   LOGO
---------------------------------------- */
.header-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ----------------------------------------
   SOCIAL ICONS
---------------------------------------- */
.header-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.header-social img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

/* ----------------------------------------
   LOGIN BUTTON
---------------------------------------- */
.login-btn {
  padding: 0.4rem 0.75rem;
  background: var(--accent, #0077ff);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  text-decoration: none;
  font-weight: 500;
  transition: background 150ms ease;
}

.login-btn:hover {
  background: var(--accent-hover, #005fcc);
}

/* ----------------------------------------
   AVATAR
---------------------------------------- */
.header-avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cog overlay */
.avatar-cog {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 150ms ease;
}

.header-avatar:hover .avatar-cog {
  opacity: 1;
}

.avatar-cog img {
  width: 3rem;
  height: 3rem;
  filter: invert(1);
}

/* ----------------------------------------
   DROPDOWN MENU
---------------------------------------- */
.header-avatar-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  min-width: 10rem;
  display: none;
  box-shadow: var(--shadow-md);
  z-index: 2000;
}

.header-avatar-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--main-txt);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.header-avatar-menu a:hover {
  background: #f5f5f5;
}


/*==============================
  Footer Base
==============================*/
.footer {
  background: var(--footer-bg);
  color: var(--footer-txt);
  padding: var(--space-lg) 0;
  width: 100%;
}

/*==============================
  Footer Container (Grid)
==============================*/
.footer-container {
  display: grid;

  /* 3 columns, equal width */
  grid-template-columns: 1fr 1fr 1fr;

  /* 3 rows: logo, upper row, lower row */
  grid-template-rows: auto auto auto;

  /* Gap between rows */
  row-gap: var(--space-md);

  /* Center everything by default */
  justify-items: center;
  align-items: center;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/*==============================
  Row 1: Logo spans all columns
==============================*/
.footer-logo {
  grid-column: 1 / 4; /* span all 3 columns */
  text-align: center;
}

/*==============================
  Row 2: Upper row
==============================*/
.footer-upper-left   { grid-column: 1; justify-self: start; }
.footer-upper-center { grid-column: 2; }
.footer-upper-right  { grid-column: 3; justify-self: end; }

/*==============================
  Row 3: Lower row
==============================*/
.footer-lower-left   { grid-column: 1; justify-self: start; }
.footer-lower-center { grid-column: 2; }
.footer-lower-right  { grid-column: 3; justify-self: end; }






/*==============================
  Legacy Compatibility from main.css
==============================*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 3rem;
}

.flip-card {
  background: transparent;
  width: 16rem;
  height: 16rem;
  perspective: 1000px;
  color: white;
}

.flip-card .card-icon {
  width: 11rem;
  height: 11rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background-color: var(--card-bg-front);
  color: var(--card-txt-front);
}

.flip-card-back {
  background-color: var(--card-bg-back);
  color: var(--card-txt-back);
  transform: rotateY(180deg);
}

.media-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: left;
  width: 100%;
  gap: 1rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.media-card {
  background-color: var(--sidebar-bg);
  color: var(--media-txt);
  border: var(--media-brdr);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 31%;
  min-height: 20rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-card .card-icon {
  width: 12rem;
  height: auto;
  margin-bottom: 1rem;
}

.media-card h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.media-card p {
  font-size: 0.9rem;
  text-align: center;
  margin: 0.25rem 0;
}

.media-card video,
.media-card audio {
  width: 100%;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

.media-card a {
  color: red;
  text-decoration: none;
}

/* ============================== */
/* Video Wrapper */
/* ============================== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

/* ============================== */
/* Audio */
/* ============================== */
audio {
  width: 100%;
}

audio::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #ffffff;
  opacity: 1;
  border-radius: 0;
}

audio::-moz-media-controls {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0;
  opacity: 1;
  color: #ffffff;
}

/* ============================== */
/* Audio Wrapper */
/* ============================== */
.audio-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: rgb(0, 0, 0);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-wrapper .audio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-wrapper audio {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
}

.main-hero-container {
  flex: 0 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  height: 110px;
  background-color: var(--header-bg);
  color: var(--header-txt);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}



.creator-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 800px;
  background-color: var(--sidebar-bg);
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  justify-self: center;
}

.creator-card-avatar {
  width: 150px;
  height: 150px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.creator-card-info {
  flex: 1;
}

.creator-card-bio {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--main-txt);
  font-size: large;
}

.creator-card-email a {
  font-size: 0.9rem;
  color: red;
  text-decoration: none;
}

.creator-card__email a:hover {
  text-decoration: underline;
}




/* ============================== */
/* Dashboard styles */
/* ============================== */

.dashboard-cards { display: flex; flex-direction: column; gap: 1.5rem; }

/* User Info Card */
.userinfo-card {
  padding: 1.5rem;
}

.userinfo-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.userinfo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.userinfo-row:nth-child(3),
.userinfo-row:nth-child(4) {
  grid-template-columns: 1fr 1fr;
}

.userinfo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.userinfo-text {
  line-height: 1.3;
}


