
/* =========================================================
   AWEBZONE V13 — FOUNDER PHOTO FIX + VISUAL DENSITY SYSTEM
   ========================================================= */

/* The image URL is injected by PHP as --az-founder-image. */
.az-avatar-large,
.az-mini-avatar,
.az-header-avatar,
.az-founder-avatar,
.az-profile-avatar{
  background-image:var(--az-founder-image)!important;
  background-size:cover!important;
  background-position:center 20%!important;
  background-repeat:no-repeat!important;
  background-color:#111315!important;
  color:transparent!important;
  overflow:hidden!important;
}

/* Remove fallback letters only from avatar surfaces. */
.az-avatar-large,
.az-mini-avatar,
.az-header-avatar{
  text-indent:-9999px!important;
  white-space:nowrap!important;
}

/* Visual utility elements added to cards and content areas */
.az-visual-strip{
  position:relative;
  overflow:hidden;
  min-height:86px;
  margin:14px 0 0;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(29,37,44,.10);
  background:
    radial-gradient(circle at 82% 25%, rgba(182,255,56,.22), transparent 26%),
    linear-gradient(135deg,#12171a,#20281d);
  color:#fff;
}

.az-visual-strip:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.23;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:24px 24px;
}

.az-visual-strip > *{
  position:relative;
  z-index:1;
}

.az-visual-strip small{
  display:block;
  color:rgba(255,255,255,.66);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-weight:800;
  font-size:9px;
}

.az-visual-strip b{
  display:block;
  margin-top:5px;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.03em;
}

.az-visual-chart{
  position:absolute!important;
  right:14px;
  bottom:0;
  width:43%;
  height:68px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:6px;
}

.az-visual-chart i{
  display:block;
  width:14%;
  min-width:12px;
  border-radius:7px 7px 0 0;
  background:linear-gradient(#b6ff38,#72b50a);
  box-shadow:0 0 18px rgba(182,255,56,.25);
  animation:az-v13-bars 3.2s ease-in-out infinite;
}

.az-visual-chart i:nth-child(1){height:28%;animation-delay:.0s}
.az-visual-chart i:nth-child(2){height:45%;animation-delay:.15s}
.az-visual-chart i:nth-child(3){height:66%;animation-delay:.3s}
.az-visual-chart i:nth-child(4){height:88%;animation-delay:.45s}

@keyframes az-v13-bars{
  0%,100%{transform:scaleY(.92);transform-origin:bottom}
  50%{transform:scaleY(1.05);transform-origin:bottom}
}

/* Decorative insight icons for visually empty content spaces */
.az-visual-dots{
  display:flex;
  gap:7px;
  align-items:center;
  margin-top:14px;
}
.az-visual-dots span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#b6ff38;
  box-shadow:0 0 0 6px rgba(182,255,56,.10);
}
.az-visual-dots span:nth-child(2){opacity:.65}
.az-visual-dots span:nth-child(3){opacity:.3}

/* Add subtle visual depth to cards without changing content */
.az-post,
.az-page-post,
.az-rail-card,
.az-service-feed-grid a,
.card,
.day-card{
  position:relative;
  overflow:hidden;
}

.az-post:after,
.az-page-post:after,
.az-rail-card:after{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-75px;
  bottom:-82px;
  border-radius:50%;
  border:1px solid rgba(182,255,56,.20);
  box-shadow:0 0 0 20px rgba(182,255,56,.035),0 0 0 45px rgba(182,255,56,.02);
  pointer-events:none;
}

/* Better empty-space balance on large feed cards */
.az-post .az-post-actions,
.az-page-post .az-post-actions{
  position:relative;
  z-index:2;
}

/* Founder spotlight gets more visual presence */
.az-founder-spotlight{
  background:
    radial-gradient(circle at 12% 20%,rgba(182,255,56,.18),transparent 28%),
    linear-gradient(135deg,#fff,#f3f7ef)!important;
}

/* Motion on visual blocks */
.az-visual-strip,
.az-founder-spotlight{
  animation:az-v13-rise .65s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes az-v13-rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:820px){
  .az-avatar-large{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
  }

  .az-mini-avatar{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
  }

  .az-header-avatar{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    background-position:center 20%!important;
  }

  .az-visual-strip{
    min-height:94px;
    border-radius:16px;
    padding:14px;
  }

  .az-visual-strip b{
    max-width:58%;
    font-size:16px;
  }

  .az-visual-chart{
    width:40%;
    right:10px;
    height:70px;
  }

  /* Ensure card content does not get squeezed by decorative elements */
  .az-post:after,
  .az-page-post:after{
    opacity:.75;
  }
}

@media(prefers-reduced-motion:reduce){
  .az-visual-strip,
  .az-founder-spotlight,
  .az-visual-chart i{
    animation:none!important;
  }
}
