/* ==================================================
   FILMICHILL WORDPRESS THEME
   ================================================== */

/*
Theme Name: Filmichill
Theme URI: https://filmichill.com/
Author: Filmichill
Description: Lagana, responzivna WordPress tema za filmski magazin Filmichill.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: filmichill
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
:root {
  --fc-text: #202020;
  --fc-muted: #777;
  --fc-accent: #e45c42;
  --fc-border: #e9e9e9;
  --fc-width: 1440px;
  --fc-font: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--fc-text);
  font-family: var(--fc-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--fc-accent);
}

img {
  max-width: 100%;
  height: auto;
}

.fc-container {
  width: min(calc(100% - 48px), var(--fc-width));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--fc-border);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-branding {
  justify-self: start;
}

.site-title {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.site-title a {
  color: var(--fc-text);
}

.site-title .logo-accent,
.footer-logo .logo-accent {
  color: var(--fc-accent);
}

.site-tagline {
  margin: 6px 0 0;
  color: var(--fc-muted);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .1px;
  text-transform: none;
}

.primary-navigation {
  justify-self: center;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation .current-cat > a {
  color: var(--fc-accent);
}

.header-search {
  justify-self: end;
  display: flex;
  align-items: center;
  width: 190px;
  height: 38px;
  border: 1px solid var(--fc-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--fc-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.header-search input::placeholder {
  color: #999;
}

.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--fc-accent);
  cursor: pointer;
}

.header-search button:hover {
  background: #fff7f5;
}

.header-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--fc-border);
  background: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--fc-text);
  font: inherit;
}

/* MAIN CONTENT */

.site-main {
  min-height: 55vh;
  padding: 38px 0 64px;
}

/* NASLOVI NASLOVNICE I KATEGORIJA */

.archive-heading,
.home-section-heading h2 {
  margin: 0 0 28px;
  font-size: 18px !important;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.5px;
}

/* POST GRID AND CARDS */

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 36px;
}

.post-card {
  min-width: 0;
}

.post-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
  border-radius: 8px;
}

.post-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
  border-radius: 8px;
}

.post-card-image:hover img {
  transform: scale(1.04);
}

.post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
  border-radius: 8px;
}

/* NASLOV ČLANKA NA KARTICI */

.post-card-heading {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.post-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 12px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.35px;
  font-weight: 500;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--fc-accent);
}

.post-card-category {
  display: block;
  flex: 0 0 auto;
  margin-top: 13px;
  color: var(--fc-accent);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* POST META */

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.post-category {
  color: var(--fc-accent);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.read-more {
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}

/* PAGINATION */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 54px;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--fc-border);
  border-radius: 4px;
  font-size: 13px;
}

.pagination .current {
  color: #fff;
  background: var(--fc-text);
  border-color: var(--fc-text);
}

/* SINGLE ARTICLE */

.single-article {
  max-width: 900px;
  margin: 0 auto;
}

.single-title {
  margin: 8px 0 12px;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.13;
  letter-spacing: -1.7px;
}

.single-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.single-category {
  color: var(--fc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.single-category a {
  color: inherit;
  text-decoration: none;
}

.single-meta {
  color: var(--fc-muted);
  font-size: 13px;
}

.single-featured-image {
  margin: 0 0 30px;
}

.single-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content p {
  margin: 0 0 1.35em;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.25;
  letter-spacing: -.5px;
  margin: 1.6em 0 .65em;
}

.entry-content figure {
  margin: 1.8em 0;
}

.entry-content figure img {
  width: 100%;
  height: auto;
}

.entry-content a {
  color: var(--fc-accent);
  text-decoration: underline;
}

/* INTRO TEXT */

.single-intro {
  margin: 0 0 22px;
  color: var(--fc-text);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.single-intro p {
  margin: 0;
}

/* YOUTUBE VIDEO */

.single-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 30px;
  overflow: hidden;
  background: #111;
}

.single-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PAGES */

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

/* HOMEPAGE SECTIONS */

.home-category-section {
  margin: 0 0 48px;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}

.home-section-heading h2 {
  margin: 0;
}

.home-view-all {
  color: var(--fc-accent);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.home-view-all:hover {
  text-decoration: underline;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--fc-border);
  padding: 30px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.footer-logo .logo-accent {
  color: var(--fc-accent);
}

.footer-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation a {
  font-size: 13px;
  color: #555;
}

.copyright {
  margin: 0;
  color: #999;
  font-size: 12px;
  text-align: center;
}

.no-posts {
  color: var(--fc-muted);
}

/* TABLET */

@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-navigation ul {
    gap: 18px;
  }

  .header-search {
    width: 160px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .fc-container {
    width: min(calc(100% - 32px), var(--fc-width));
  }

  .header-inner {
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-title {
    font-size: 32px;
  }

  .site-tagline {
    display: block;
    font-size: 12px;
    margin-top: 4px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    z-index: 20;
    top: 69px;
    left: -16px;
    right: -16px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--fc-border);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-navigation li a {
    display: block;
    padding: 11px 4px;
    font-size: 15px;
  }

  .header-search {
    order: 3;
    width: 100%;
    height: 36px;
  }

  .site-main {
    padding: 26px 0 48px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .post-card-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 9px 0 8px;
  }

  .post-card-category {
    margin-top: 10px;
    font-size: 11px;
  }

  .post-card-meta {
    font-size: 11px;
  }

  .post-category {
    font-size: 15px;
  }

  .single-title {
    letter-spacing: -1px;
  }

  .entry-content {
    font-size: 17px;
  }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-title {
    font-size: 18px;
  }

  .post-card-category {
    font-size: 12px;
  }

  .post-card-meta {
    font-size: 11px;
  }

  .post-category {
    font-size: 15px;
  }
}

/* MANJI NASLOVI NA MOBITELIMA */

@media (max-width: 640px) {
  .home-category-section {
    margin-bottom: 34px;
  }

  .home-section-heading {
    margin-bottom: 28px;
  }

  .archive-heading,
  .home-section-heading h2 {
    font-size: 24px !important;
  }

  .home-view-all {
    font-size: 13px;
  }
}

/* INTRO TEXT ON MOBILE */

@media (max-width: 640px) {
  .single-intro {
    font-size: 16px;
  }
}

/* FILMICHILL – OCJENJIVANJE ČLANAKA */

.fc-rating {
  width: 100%;
  margin: 48px auto 25px;
  padding: 30px 20px;
  border-top: 1px solid var(--fc-border);
  text-align: center;
}

.fc-rating h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.4px;
  text-align: center;
}

.fc-rating-subtitle {
  margin: 0 0 22px;
  color: var(--fc-muted);
  font-size: 14px;
  text-align: center;
}

.fc-rating-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.fc-rating-button {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--fc-border);
  border-radius: 8px;
  background: #fff;
  color: var(--fc-text);
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.fc-rating-button:hover {
  border-color: var(--fc-accent);
  background: #fff8f6;
}

.fc-rating-button.is-selected {
  border-color: var(--fc-accent);
  background: #fff3ef;
  color: var(--fc-accent);
}

.fc-rating-button:disabled {
  cursor: wait;
  opacity: .7;
}

.fc-rating-icon {
  font-size: 25px;
}

.fc-rating-label {
  font-size: 13px;
  font-weight: 700;
}

.fc-rating-count {
  font-size: 19px;
  font-weight: 800;
}

.fc-rating-message {
  min-height: 22px;
  margin: 15px 0 0;
  color: var(--fc-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 480px) {
  .fc-rating {
    padding: 25px 10px;
  }

  .fc-rating-buttons {
    gap: 10px;
  }

  .fc-rating-button {
    padding: 15px 8px;
  }

  .fc-rating h3 {
    font-size: 18px;
  }
}

/* ZELENI THUMBS UP */

.fc-rating-button:first-child:hover,
.fc-rating-button:first-child.is-selected {
  border-color: #2e9d50;
  background: #effaf2;
  color: #2e9d50;
}

/* CRVENI THUMBS DOWN */

.fc-rating-button:last-child:hover,
.fc-rating-button:last-child.is-selected {
  border-color: var(--fc-accent);
  background: #fff3ef;
  color: var(--fc-accent);
}

/* JOŠ ZA ČITANJE */

.fc-related {
  margin: 45px 0 20px;
}

.fc-related h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.5px;
}

.fc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fc-related-card {
  min-width: 0;
}

.fc-related-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #eee;
}

.fc-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.fc-related-image:hover img {
  transform: scale(1.04);
}

.fc-related-card h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.fc-related-card h3 a:hover {
  color: var(--fc-accent);
}

@media (max-width: 600px) {
  .fc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .fc-related h2 {
    font-size: 21px;
  }

  .fc-related-card h3 {
    font-size: 14px;
  }
}

/* JEDNAKA VELIČINA NASLOVA */

body.category .archive-heading,
body.home .home-section-heading h2 {
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: -0.5px !important;
}

/* VIŠE PROSTORA ZA TEKST NA MOBITELU */

@media (max-width: 760px) {
  .single-article {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* RAZMAK PODNOŽJA NA MOBITELU */

@media (max-width: 760px) {
  .site-footer .fc-container {
    width: min(calc(100% - 48px), var(--fc-width));
  }

  .footer-navigation {
    width: 100%;
  }

  .footer-navigation ul {
    justify-content: center;
    column-gap: 18px;
    row-gap: 12px;
  }
}
/* BOČNI RAZMAK TEKSTA NA INFORMACIJSKIM STRANICAMA */
@media (max-width: 760px) {
  .page-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* SMANJEN RAZMAK IZMEĐU OCJENJIVANJA I PREPORUČENIH ČLANAKA */

.fc-rating {
    padding-bottom: 12px;
    margin-bottom: 0;
}

.fc-rating-message {
    min-height: 0;
    margin-top: 6px;
}

.fc-related {
    margin-top: 25px;
}

/* MOBITELI */
@media (max-width: 480px) {
    .fc-rating {
        padding-bottom: 10px;
    }

    .fc-related {
        margin-top: 22px;
    }
}

body,
body * {
    font-family: "Roboto", sans-serif;
}
.home-category-section {
    margin-bottom: 28px;
}

/* FILMICHILL – NOVI DIZAJN OCJENJIVANJA ZVJEZDICAMA */

.fc-rating {
    width: 100%;
    margin: 40px auto 0;
    padding: 28px 20px 12px;
    border-top: 1px solid var(--fc-border);
    text-align: center;
}

.fc-rating h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.4px;
}

.fc-rating-subtitle {
    margin: 0 0 16px;
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 0 auto 12px;
}

.fc-star {
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: #d8d8d8;
    font-family: Arial, sans-serif !important;
    font-size: 39px;
    line-height: 1.2;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.fc-star:hover {
    color: #e5a52b;
    transform: scale(1.12);
}

.fc-star.is-active {
    color: #e5a52b;
}

.fc-star:disabled {
    cursor: wait;
    opacity: .75;
}

.fc-rating-summary {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.fc-rating-average {
    color: var(--fc-text);
    font-size: 25px;
    font-weight: 800;
}

.fc-rating-out-of {
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-rating-count {
    margin-left: 5px;
    color: var(--fc-muted);
    font-size: 13px;
}

.fc-rating-message {
    min-height: 0;
    margin: 8px 0 0;
    color: var(--fc-muted);
    font-size: 13px;
}

@media (max-width: 480px) {
    .fc-rating {
        padding: 24px 10px 10px;
        margin-top: 32px;
    }

    .fc-rating h3 {
        font-size: 19px;
    }

    .fc-star {
        font-size: 36px;
    }
}
