/* =========================
 *    BASE
 *    ========================= */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================
 *    BLUR BACKGROUND
 *    ========================= */

.bg-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(80px) brightness(0.28);
  transform: scale(1.2);
}

/* =========================
 *    LAYOUT
 *    ========================= */

.layout {
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 520px 1fr;
  height: 100vh;
  margin-top: 70px;
}

/* =========================
 *    LEFT PANEL
 *    ========================= */

.left {
  padding: 60px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.85);
}

/* =========================
 *    TEXT
 *    ========================= */

.collection {
  font-size: 14px;
  color: #888;
  margin-bottom: 6px;
}

h1 {
  font-size: 44px; /* KEEP */
  margin: 10px 0;
}

.artist {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 20px;
}

.desc {
  color: #ccc;
  line-height: 1.6;
}

/* =========================
 *  *    DETAILS GRID
 *   * ========================= */

.details {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.block-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.grid > div {
  display: flex;
  flex-direction: column;
}

.grid span {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.grid b {
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
  cursor: pointer;
}

.grid b:hover {
  color: #fff;
}

/* Links inside grid */
.grid .link-cell {
  font-size: 13px;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

.grid .link-cell:hover {
  color: #ccc;
}


/* =========================
 *    LINKS
 *    ========================= */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.market-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 6px;

  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;

  font-size: 13px; /* KEEP */
  color: #ddd;
  text-decoration: none;

  transition: all 0.2s ease;
}

/* hover */
.market-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* arrow */
.market-btn .arrow {
  font-size: 12px;
  opacity: 0.5;
  transition: 0.2s;
}

.market-btn:hover .arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* =========================
 *    RIGHT PANEL
 *    ========================= */

.right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
 *    ART CARD
 *    ========================= */

.art-card {
  backdrop-filter: blur(10px);
}

.art-card img {
  max-width: 100%;

  opacity: 0;
  transform: scale(0.98);
  transition: 0.4s ease;
}

.art-card img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* =========================
 *    FADE
 *    ========================= */

.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);

  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 90%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    black 0%,
    black 90%,
    transparent 100%
  );

}

/* =========================
 *    MOBILE
 *    ========================= */

@media(max-width:900px){

  html, body {
    height: auto;
    overflow-y: auto;
  }

  .layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .right {
    order: 0;
    padding: 0px;
    margin-bottom: -10px;
    flex: none;
  }

  .left {
    order: 1;
    padding: 24px;
    overflow: visible;
  }
}


.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #222;
  z-index: 9000;
  backdrop-filter: blur(6px);
}

.logo-container,
.logo-link,
.logo {
  pointer-events: auto !important;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo {
  display: block;
  height: 35px;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s ease, transform 0.3s ease;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8999;
  text-align: center;
  opacity: 1;
  transition: opacity 2s ease;
}

.header-nav {
  margin-right: 2%;
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  text-shadow: 0 0 10px rgba(255, 255, 240, 0.6);
  color: #fff;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 13000;
  position: relative;
  transition: all 0.3s ease;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #E0E0E0;
  border-radius: 3px;
  transition: all 0.35s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: #bb86fc;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: #bb86fc;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 1);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 12000;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: #E0E0E0;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  margin: 20px 0;
  transition: color 0.3s, text-shadow 0.3s;
}

.mobile-nav a:hover {
  color: #bb86fc;
  text-shadow: 0 0 10px rgba(187,134,252,0.7);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
    margin-left: auto;
  }
}

/* =========================
 *  *    DESCRIPTION (SMART COLLAPSE)
 *   * ========================= */

.desc-wrap {
  position: relative;
}

/* base text */
.desc {
  color: #ccc;
  line-height: 1.6;
  font-size: 15px;
  max-height: 120px;
  overflow: hidden;

  /* smooth expand */
  transition: max-height 0.4s ease;

  /* PERFECT fade without edges */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );
}

/* expanded state */
.desc.expanded {
  max-height: 1000px;

  -webkit-mask-image: none;
  mask-image: none;
}

/* toggle button */
.desc-toggle {
  margin-top: 8px;

  background: none;
  border: none;

  color: #aaa;
  font-size: 13px;

  cursor: pointer;
  padding: 0;

  transition: all 0.2s ease;
}

/* hover effect (match your links/buttons) */
.desc-toggle:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* subtle active feedback */
.desc-toggle:active {
  transform: translateY(1px);
  opacity: 0.8;
}

.arrow svg {
  display: block;
}

/* =========================
    DETAILS LINKS CELLS
============================ */

.grid .link-cell {
    display: flex;
    flex-direction: column;
}

.grid .link-cell a {
    font-size: 12px;
    color: #fff;
    text-decoration: underline;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.grid .link-cell a:hover {
    opacity: 0.7;
}

@media (min-width: 1024px) {

  .layout {
    height: 100vh;
    overflow: hidden; 
  }

  .right {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .art-card {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
  }


  .art-card img {
    max-height: 100vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block;
  }

}

.artist-link {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.artist-link:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.collection {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.network-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.art-video {
  max-width: 100%;
  opacity: 1;
  transform: scale(0.98);
  transition: 0.4s ease;
  display: block;
}

.art-video.loaded {
  opacity: 1;
  transform: scale(1);
}

/* =========================
 *  *    ART CARD
 *   *    ========================= */

.art-card{
    position: relative;
}

/* =========================
 *  *    ACTION BUTTONS
 *   *    ========================= */

.art-actions{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:20;
}

.art-btn{
    position:absolute;

    width:40px;
    height:40px;

    border:none;
    border-radius:8px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,0.1);

    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);

    border:1px solid rgba(255,255,255,0.06);

    cursor:pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        opacity .18s ease;

    pointer-events:auto;

    opacity:0.95;
    overflow: hidden;

}


.art-btn:hover{
    transform:scale(1.01);

    background:rgba(0,0,0,0.14);
}

.art-btn:active{
    transform:scale(0.96);
}

.art-btn img{
    width:20px;
    height:20px;
    display:block;
    opacity:0.6;
}

/* SHARE */
.share-btn{
    top:60px;
    right:20px;
}

/* DOWNLOAD */
.download-btn{
    right:20px;
    bottom:83px;
}

/* mobile */
@media (max-width:768px){

    .art-btn{
        width:38px;
        height:38px;
    }

    .art-btn img{
        width:18px;
        height:18px;
    }

    .share-btn{
        top:15px;
        right:15px;
    }

    .download-btn{
        right:15px;
        bottom:17px;
    }
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@media (max-width:900px){

  .art-card{
      position:relative;
      width:100%;
      min-height:320px;
      overflow:hidden;

      display:flex;
      align-items:center;
      justify-content:center;
  }

}
