/* =========================================================
   KVADRAT PO KVADRAT — COMPONENTS CSS
   STRUCTURE • GRID • CONTENT ONLY
   NO EFFECTS • NO GLOW • NO ANIMATIONS
========================================================= */


/* =========================================================
   GLOBAL GRIDS
========================================================= */

.cards-grid,
.episode-grid,
.guests-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

/* default grids */
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.episode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guests-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* responsive */
@media (max-width: 1200px) {
  .guests-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
  .guests-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .episode-grid,
  .guests-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CARD – BASE STRUCTURE (THEME SAFE)
========================================================= */

.card,
.episode-card,
.card--guest {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.card img,
.episode-card img,
.card--guest img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}


/* =========================================================
   CARD BODY / CONTENT
========================================================= */

.card-body,
.card-content {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title,
.card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.card-meta,
.card-content p,
.muted {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}


/* =========================================================
   PACKAGE LIST (SPONSOR CARDS)
========================================================= */

.package-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.package-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.package-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}


/* =========================================================
   FEATURED / PREMIUM CARD (STRUCTURE ONLY)
========================================================= */

.card.featured {
  border-width: 2px;
}



/* =========================================================
   GUEST CARD TEXT OVER IMAGE
========================================================= */

.card--guest .card-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    transparent
  );
}




/* =========================================================
   MODAL – STRUCTURE ONLY
========================================================= */

.guest-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.guest-modal.active {
  display: flex;
}

.guest-modal-content {
  width: 92%;
  max-width: 840px;
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px;
}


/* =========================================================
   MODAL GRID
========================================================= */

.guest-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 768px) {
  .guest-modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.guest-modal-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}


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

#guestModalName {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

#guestModalRole {
  font-size: 15px;
  margin-bottom: 14px;
}

#guestModalBio {
  font-size: 15px;
  line-height: 1.7;
}
/* =========================================================
   SOCIAL FLOAT – CINEMATIC
========================================================= */

.social-float{
  position: fixed;
  right: 24px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;

  /* start hidden */
  opacity: 0;
  transform: translateY(40px) scale(.95);
  pointer-events: none;

  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.16,1,.3,1);
}

/* aktivan (ispod heroa) */
.social-float.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* dugme */
.social-float a{
  width: 54px;
  height: 54px;
  background: #facc15;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* ikona */
.social-float img{
  width: 24px;
  height: 24px;
}

/* hover efekat */
.social-float a:hover{
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

@media (max-width: 768px){

  .social-float{
    right: -62px; /* sakriveno */
    transition: right .45s cubic-bezier(.16,1,.3,1);
  }

  .social-float.open{
    right: 16px; /* izvučeno */
  }

  /* strelica */
  .social-toggle{
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 44px;
    border-radius: 10px 0 0 10px;
    background: #facc15;
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
     /* 🔑 OVO FALI */
  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1; /* dodatno zatezanje */
  }

  .social-float.open .social-toggle{
    transform: translateY(-50%) rotate(180deg);
  }
}
