/* =========================
   BASE
========================= */
@import "./base/reset.css";
@import "./base/variables.css";
@import "./base/typography.css";

/* =========================
   LAYOUT
========================= */
@import "./layout/page.css";
@import "./layout/header.css";
@import url("layout/navigation.css");
@import "./layout/footer.css";


/* =========================
   PAGES
========================= */
@import "./pages/front-page.css";

/* =========================
   UTILITIES
========================= */
@import "./utilities/helpers.css";

@import  "./gi-accordion.css";

html{
  scrollbar-gutter: stable;
}

/* DEFAULT PAFE TEMLATE START */

/* =========================
   PAGE HERO (with centered title)
   ========================= */

.page-hero{
  position: relative;
  width: 100%;
}

.page-hero__media{
  width: 100%;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

.page-hero__image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* overlay content */
.page-hero--has-title .page-hero__content{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
}

.page-hero--has-title .page-hero__inner{
  width: min(1150px, calc(100% - 40px));
}

/* title style (βάλε ό,τι χρησιμοποιείς στα άλλα templates) */
.page-hero__title{
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.5;
}

.page-hero__breadcrumbs{
  margin-top: 14px;
}

/* Mobile */
@media (max-width: 768px){
  .page-hero__media{
    height: 55vh;
    min-height: 320px;
  }
}

/* BREADCRUMB */
.breadcrumbs-bar{
  width: 100%;
  background: transparent;
  padding: 14px 0 0;
}

.breadcrumbs-bar__inner{
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumbs{
  margin: 0;
}

.breadcrumbs__list{
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.breadcrumbs__list a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

.breadcrumbs__list a:hover{
  text-decoration: underline;
}



/* =========================
   PAGE INTRO (global)
   ========================= */

.page-intro__inner{
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
}

.page-intro__title{
  width: 100%;
}

/* Το δικό σου lead παραμένει όπως το έχεις (max-width:980px) */

/* =========================
   PAGE CONTENT (global)
   ========================= */

.page-content{
  /* ΜΗΝ έχει width που να χαλάει το centering */
  width: auto;
}

.page-content__inner{
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
}

/* Αν μέσα στο the_content βάζεις wide blocks / full-width στοιχεία,
   αυτό βοηθάει να μη “σπάνε” το layout */
.page-content__inner > *{
  max-width: 100%;
}

/* =========================
   PAGE CONTENT WRAPPER (page.php only)
   ========================= */

/* OUTER: 1150px centered */
.page-content-wrapper{
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
}

/* INNER: 930px centered μέσα στο 1150 */
.page-content-wrapper__inner{
  width: min(930px, 100%);
  margin: 0 auto;
}

/* (optional) αν κάπου το .page-content έχει περίεργα width/padding */
.page-content{
  width: 100%;
}

/* --------------------------------------------------
   INTRO LEAD (ACF)
-------------------------------------------------- */

.page-intro__lead {
  max-width: 1150px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.page-intro__lead p + p {
  margin-top: 1.6rem;
}




/* DEFAULT PAFE TEMLATE END */


/* =========================
   HERO with centered title
   ========================= */

.page-hero {
  position: relative;
  width: 100%;
  height: 70vh; /* όπως είχες */
  min-height: 420px; /* προαιρετικό */
  overflow: hidden;
  margin-bottom: 50px;
}

.page-hero__media {
  position: absolute;
  inset: 0;
    z-index: 0;

     width: 100%;
  height: 70vh;

}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero .page-hero__media{
  height: 70vh !important;
  min-height: 420px !important;
  width: 100%;
}

.page-hero .page-hero__image{
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* (optional) σκοτεινό overlay για αναγνωσιμότητα */
.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
    z-index: 1;                 /* ✅ κάτω από το content */

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,.55)
  );
  pointer-events:none;
}

.page-hero__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
}

.page-hero__inner{
  width: min(1150px, calc(100% - 40px));
}

.page-hero__title{
  margin: 0;
  font-size: 7rem;
  line-height: 0.5;

    color: #fff;                /* ✅ για να φαίνεται */

}

/* --------------------------------------------------
   HERO / TITLE ANIMATION (OPT-IN)
-------------------------------------------------- */

/* ΔΕΝ κρύβουμε τίποτα by default */
.page-hero__media.is-anim {
  opacity: 0;
  transform: translateY(-40px);
}

.page-intro__title.is-anim {
  opacity: 0;
  transform: translateY(40px);
}

.site-main.is-visible .page-hero__media.is-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.site-main.is-visible .page-intro__title.is-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.edition-prepend {
  font-weight: 300;
  letter-spacing: 7px;
    font-size: 3.5rem;

}


/* breadcrumbs/lead optional */
.page-hero__breadcrumbs{
  margin-top: 12px;
}

.page-hero__lead{
  margin-top: 14px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile tweaks */
@media (max-width: 768px){
  .page-hero{
    height: 60vh;
    min-height: 360px;
  }
  .page-hero__title{
    font-size: clamp(1.8rem, 7vw, 3rem);
  }
}


/* WP OVERRIDE – hero image full bleed */
.page-hero__image.wp-post-image{
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* =========================
   INNER PAGES OVERLAY MENU
   Must NOT affect document flow
========================= */

#inner-menu.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;         /* καλύτερο σε Safari/iOS */
  z-index: 9999;

  /* κλειστό state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* σημαντικό: να μην "σπρώχνει" το layout */
  margin: 0;

   background: rgba(15,15,15,0.92);   /* άλλαξέ το όπως θες */
  backdrop-filter: blur(8px);         /* optional */
  -webkit-backdrop-filter: blur(8px); /* Safari */
}

.menu-overlay__nav{
  background: rgba(15,15,15,0.92);
}

/* ανοιχτό state (διάλεξε το class που χρησιμοποιείς στο JS) */
#inner-menu.menu-overlay.is-open,
#inner-menu.menu-overlay.is-active,
#inner-menu.menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ACCORDIO */
.page-intro__inner-info {

    max-width: 1150px;
}

/* WORKSHOP */
.workshop-pdf__iframe{
  width:100%;
  height:80vh !important;
  min-height:600px;
  border:1px solid rgba(255,255,255,.25);
  background:#000;
}

.workshop-pdf {
  margin-top: 30px;
}

.workshop-pdf__fallback a {
  color: white;
}


/* =========================
   OFFICIAL SELECTION GRID
========================= */

/* ΑΚΡΙΒΩΣ 1150px */
.films-grid-wrap {
  width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid */
.films-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 36px;
  row-gap: 56px;
}

/* Tablet */
@media (max-width: 1200px) {
  .films-grid-wrap {
    width: calc(100% - 40px);
  }
}

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

/* Mobile */
@media (max-width: 640px) {
  .films-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
}

/* =========================
   FILM CARD
========================= */

.film-card {
  color: #ffffff;

  display: flex;
  flex-direction: column;
}

/* Title – 30px */
.film-card__title {
  color: #C43D3D;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 18px 0;
  font-weight: 500;
    text-align: center;

  /* slot ύψος (διάλεξε 2 ή 3 γραμμές) */
  min-height: calc(2 * 1.15em);   /* <-- 2 γραμμές slot */
  /* min-height: calc(3 * 1.15em); */ /* <-- ή 3 γραμμές slot */

  /* το κρίσιμο: να κάθεται κάτω */
  display: flex;
  align-items: flex-end;
  justify-content: center;

  /* να σπάει ωραία */
  overflow-wrap: anywhere;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
             'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

}

/* Poster */
.film-card__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;   /* poster ratio */
  overflow: hidden;
}

.film-card__img {
  width: 100%;
  height: 100%;
    object-fit: cover;     /* γεμίζει το frame */
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease;
}

/* Hover zoom ONLY image */
.film-card__poster:hover .film-card__img {
  transform: scale(1.05);
}

/* Meta block */
.film-card__meta {
  margin-top: 20px;
  text-align: center;
}

/* Directed by – 25px */
.film-card__label {
  font-size: 25px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 500;
    margin-bottom: 6px; /* ήταν 12px */

}

/* Director – 18px */
.film-card__director {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

/* Country – 16px */
.film-card__country {
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.9;
}

/* ΜΟΝΟ στο Official Selection single */
.page-content--official-selection{
  width: 100%;
  max-width: none; /* δεν επηρεάζει άλλα */
}

.page-content--official-selection .page-content__inner{
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* το grid container σου */
.page-content--official-selection .films-grid-wrap{
  width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px){
  .page-content--official-selection .films-grid-wrap{
    width: calc(100% - 40px);
  }
}


/* AWARDS GRID CSS */
/* =========================
   Awards Grid (3 columns)
   ========================= */
.awards-grid{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 36px;

  /* Κλειδί: όλα τα items ίσου ύψους στη γραμμή */
  align-items: stretch;
}

@media (max-width: 1024px){
  .awards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .awards-grid{ grid-template-columns: 1fr; gap: 44px; }
}

/* =========================
   Award Card Layout
   ========================= */
.award-card{
  display: grid;
  grid-template-rows: auto auto auto;
}

/* =========================
   TOP BLOCK
   ========================= */
.award-card__top{
  display: grid;
  gap: 6px;

  /* 🔒 Κλειδώνουμε ένα minimum ύψος
     ώστε ΟΛΑ τα images να ξεκινούν
     στο ίδιο baseline */
  min-height: 150px;

  align-content: start;
}

/* 1) Award category */
.award-card__award{
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #C43D3D;
}

/* 2) Credit Line Top */
.award-card__credit--top{
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

/* 3) Movie title */
.award-card__film{
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

/* =========================
   IMAGE BLOCK
   ========================= */
.award-card__media{
  width: 100%;
  height: 450px;          /* 🔒 ίδιο ύψος για όλα */
  margin: 15px 0;         /* 🔒 ίδιο κενό πάνω & κάτω */
  overflow: hidden;
    box-sizing: border-box;

}

.award-card__media img,
.award-card__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   BOTTOM BLOCK
   ========================= */
.award-card__bottom{
  display: grid;
  gap: 8px;
  text-align: center;

  /* 🔒 Κλειδώνουμε footer ύψος
     για ίση ευθυγράμμιση */
  min-height: 140px;

  align-content: start;
}

/* 5) Professional role */
.award-card__role{
  font-size: 20px;
  font-weight: 300;
  line-height: 1.15;
}

/* 6) Awarded person */
.award-card__person{
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: -4px;
}

/* 7) Country / Year */
.award-card__country-date{
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

/* 8) Credit Line Bottom */
.award-card__credit--bottom{
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 5px;

}

@media (max-width: 768px){
  .award-card__top{
    min-height: 0px;   /* απόσταση από τα πάνω elements */
  }
}

@media (max-width: 768px){
  .award-card__head{ margin-bottom: 15px; }
  .award-card__foot{ margin-top: 15px; } /* αν θέλεις και κάτω */
}
