/* ==========================================
   GRADOVI (archive-grad) – Beige modern theme
   File: assets/css/gradovi.css
   ========================================== */

/* ---- Theme vars ---- */
:root{
  --beige-bg: #efe1c7;
  --beige-line: #d8c6a3;
  --beige-accent: #c9a66b;
  --beige-card: #ffffff;
  --beige-ink: #5a3b12;
  --beige-ink-2: #3b2a12;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-hover: 0 16px 40px rgba(0,0,0,.12);
}

/* Scope strictly to this CPT archive */
.post-type-archive-grad .wrap--grad{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}

/* ---- Title centered with lines (like gradski servis) ---- */
.post-type-archive-grad .grad-title{
  margin: 10px 0 22px;
  padding: 6px 0;
  background: transparent;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;

  font-family: "Inter-Bold", Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--beige-ink);
}

.post-type-archive-grad .grad-title::before,
.post-type-archive-grad .grad-title::after{
  content:"";
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--beige-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  opacity: .95;
}

/* Optional “pill” behind title text (soft) */
.post-type-archive-grad .grad-title{
  position: relative;
}
.post-type-archive-grad .grad-title{
  /* tiny soft glow behind the text */
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

/* ---- Grid layout (brings back “2nd image” look) ---- */
.post-type-archive-grad .grad-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* Responsive columns */
@media (max-width: 1100px){
  .post-type-archive-grad .grad-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .post-type-archive-grad .wrap--grad{ padding: 14px 16px 50px; }
  .post-type-archive-grad .grad-title{ font-size: 18px; gap: 12px; }
  .post-type-archive-grad .grad-grid{ grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.post-type-archive-grad .grad-card{
  background: var(--beige-card);
  border: 1px solid rgba(216,198,163,.95);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Accent “crtica” on top of card */
.post-type-archive-grad .grad-card::before{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--beige-line);
  opacity: .95;
}

/* Subtle background ornament (optional, modern) */
.post-type-archive-grad .grad-card::after{
  content:"";
  position:absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201,166,107,.20), rgba(201,166,107,0));
  pointer-events:none;
}

.post-type-archive-grad .grad-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,166,107,.95);
}

/* ---- City title ---- */
.post-type-archive-grad .grad-city{
  margin: 12px 0 10px; /* leaves room for top line */
  font-family: "Inter-Bold", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
}

.post-type-archive-grad .grad-city a{
  color: var(--beige-ink);
  text-decoration: none;
}

.post-type-archive-grad .grad-city a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Icon + Temp row ---- */
.post-type-archive-grad .grad-row{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* Icon */
.post-type-archive-grad .grad-icon{
  width: 44px;
  height: 44px;
  opacity: .92;
  flex: 0 0 auto;
}

/* Info block */
.post-type-archive-grad .grad-info{
  display:flex;
  flex-direction: column;
  gap: 4px;
}

/* Temp */
.post-type-archive-grad .grad-temp{
  font-family: "Inter-Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #111;
}

/* Desc */
.post-type-archive-grad .grad-desc{
  opacity: .8;
  color: var(--beige-ink-2);
  font-family: "Inter-Regular", Arial, sans-serif;
  line-height: 1.35;
}

/* If weather unavailable text */
.post-type-archive-grad .grad-unavailable{
  margin: 10px 0 0;
  opacity: .8;
  color: var(--beige-ink-2);
}

/* ---- “Pogledaj detalje” as themed pill ---- */
.post-type-archive-grad .grad-more{
  margin-top: 12px;
}

.post-type-archive-grad .grad-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(243,230,207,.85);
  border: 1px solid rgba(216,198,163,.95);

  color: var(--beige-ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;

  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

/* Dot icon like STB */
.post-type-archive-grad .grad-link::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--beige-accent);
  box-shadow: 0 0 0 3px rgba(201,166,107,.18);
}

.post-type-archive-grad .grad-link:hover{
  transform: translateX(2px);
  background: #fbf4e7;
  border-color: rgba(201,166,107,.95);
}

/* Title pill (okvir) – za archive-grad */
.post-type-archive-grad .grad-title{
  position: relative;
}

.post-type-archive-grad .grad-title::before,
.post-type-archive-grad .grad-title::after{
  /* ostaje kako već imaš linije */
}

/* Wrapper oko samog teksta u H1 nije poseban span,
   pa koristimo background + border na samom H1 tekstu */
.post-type-archive-grad .grad-title{
  /* “pill” look */
  border: 1px solid rgba(216,198,163,.95);
  background: rgba(243,230,207,.55);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Single Grad – Beige theme
   body class: .single-grad
   ========================================== */

.single-grad .wrap--grad-single{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}

.single-grad .grad-single-header{
  text-align: center;
  margin: 10px 0 22px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(216,198,163,.95);
  background: rgba(243,230,207,.55);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.single-grad .grad-single-title{
  margin: 0;
  font-family: "Inter-Bold", Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .04em;
  color: #5a3b12;
}

.single-grad .grad-single-sub{
  margin-top: 6px;
  opacity: .8;
  color: #3b2a12;
  font-weight: 700;
}

.single-grad .grad-single-card{
  background: #fff;
  border: 1px solid rgba(216,198,163,.95);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* top accent line */
.single-grad .grad-single-card::before{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 3px;
  border-radius: 999px;
  background: #d8c6a3;
  opacity: .95;
}

/* main row */
.single-grad .grad-single-top{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 10px;
}

.single-grad .grad-single-icon{
  width: 56px;
  height: 56px;
  opacity: .95;
}

.single-grad .grad-single-temp{
  font-family: "Inter-Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: #111;
}

.single-grad .grad-single-desc{
  margin-top: 6px;
  opacity: .8;
  color: #3b2a12;
  font-weight: 700;
}

/* stats */
.single-grad .grad-single-stats{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.single-grad .grad-stat{
  border: 1px solid rgba(216,198,163,.7);
  background: rgba(243,230,207,.45);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.single-grad .grad-stat span{
  opacity: .8;
  color: #3b2a12;
  font-weight: 700;
}

.single-grad .grad-stat strong{
  color: #5a3b12;
  font-weight: 900;
}

/* content */
.single-grad .grad-single-content{
  margin-top: 18px;
  color: #3b2a12;
  line-height: 1.7;
}

/* comments wrapper */
.single-grad .grad-single-comments{
  margin-top: 22px;
}

/* responsive */
@media (max-width: 768px){
  .single-grad .grad-single-stats{
    grid-template-columns: 1fr;
  }
  .single-grad .grad-single-title{
    font-size: 20px;
  }
  .single-grad .grad-single-temp{
    font-size: 38px;
  }
}