/* ------------------------------ */
/* Navigacija (header + logo + meni + jezik) */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffebe1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Layout unutar headera */
.navbar {
  max-width: 1200px;           /* centrira sadržaj */
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* logo lijevo, meni sredina, gumb desno */
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: #c13b26;
  text-decoration: none;
  flex: 0 0 auto;
}

/* Meni */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  background: #7d7a77;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}


/* Jezični prekidač */
.lang-switch {
  flex: 0 0 auto;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #7d7a77;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lang-switch a:hover {
  background: #000;
  color: #ffebe1;
  transform: scale(1.03);
}

/* ------------------------------ */
/* Mobilna verzija */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .lang-switch {
    margin-top: 0.5rem;
  }
}


/* ------------------------------ */
/* Hero sekcija */

.hero {
  position: relative;
  background: url('/images/blueberry-cake.png') center center / cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
/* lagani overlay da tekst bude čitljiv */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* tekst iznad slike */
.hero .container {
  position: relative;
  z-index: 2;
}

/* ------------------------------ */
/* Sekcije s receptima */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  color: #c13b26;
  border-left: 5px solid #c13b26;
  padding-left: 10px;
  margin-bottom: 1.5rem;
}

/* ------------------------------ */
/* Kartice recepata */
/* ------------------------------
STARI GRID (isključen 14 04 2026 - Level 2)
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 1rem;
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
------------------------------ */

/* ------------------------------ */
/* Kartice recepata */
.recipe-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.recipe-card:hover .card-image {
  transform: scale(1.05);
}

/* ------------------------------ */
/* Footer */

footer {
  background: #5e5148;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer p {
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ff8261;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ------------------------------ */
/* Mobilna verzija */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* RECIPE PAGE */
.recipe {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.recipe h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.recipe-image {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
}

.recipe-content {
  line-height: 1.7;
  font-size: 16px;
}

.recipe-content h2 {
  margin-top: 2rem;
  color: #c13b26;
}

.recipe-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  /* 👇 jači shadow kao prije */
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);

  transition: all 0.3s ease;
}

/* 🔥 IMAGE */
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* 🔥 GRADIENT OVERLAY (TO TI FALI) */
  .recipe-card::before {
  content: "";
  position: absolute;
  inset: 0;

  /* 👇 puno nježnije + toplije */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0)
  );

  z-index: 1;
  transition: 0.3s;
}


/* ------------------------------------------------ */
/* STARI overlay naslov preko slike
   isključen 09.05.2026

.card-title {
  position: absolute;
  bottom: 10px;
  left: 15px;
  right: 15px;

  color: white;
  font-size: 18px;
  font-weight: 600;

  z-index: 2;
}
*/
/* ------------------------------------------------ */

/* ------------------------------------------------ */
/* NOVI 🔥 card title ispod slike
   dodano 09.05.2026 */

.card-title {
  padding: 18px 20px;
  margin: 0;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;

  color: #222;

  background: #f3f3f3;

  position: static;
}
/* ------------------------------------------------ */

/* 🔥 HOVER = “skoči” */
.recipe-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* 🔥 svjetliji gradient na hover */
.recipe-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.08),
    rgba(0,0,0,0)
  );
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.recipe-card:hover .card-image {
  transform: scale(1.05);
}

/* "Vidi više" link ispod sekcije (npr. Slatko)
   - lagano ga odvaja od grida (margin-top)
   - daje jaču vidljivost (font-weight + boja)
   - uklanja default underline
   - na hover vraća underline za bolji UX */
.view-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: #c13b26;
  text-decoration: none;
}

.view-more:hover {
  text-decoration: underline;
}

/* GRID ZA RECEPTE * dodano 09.05.2026*/
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

/* tablet */
@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobitel */
@media (max-width: 600px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------ */
/* DODANO 09.05.2026
   styling za recipe kartice u gridu */

.recipe-grid .recipe-card {
  text-decoration: none;
  color: inherit;
  background: #f3f3f3;
}

.recipe-grid .card-title {
  position: absolute;

  bottom: 12px;
  left: 16px;
  right: 16px;

  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;

  z-index: 2;
  
}
/* ------------------------------------------------ */

/* ------------------------------------------------ */
/* DODANO 09.05.2026
   styling naslova na recipe karticama */

.recipe-grid .card-title {
  padding: 18px 20px;
  margin: 0;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;

  color: #222;

  position: static;
  background: #f3f3f3;
}
/* ------------------------------------------------ */


/* NAVIGATION */
nav {
  display: flex;
  gap: 1.5rem;          /* razmak između linkova */
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: #c13b26;       /* tvoja crvena */
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;  /* logo lijevo, nav sredina, lang desno */
  align-items: center;
}

.category-hero {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 2rem;
}
/* ------------------------------------------------ */
/* TEST GRID — postavljeno 09.05.2026 privremeno isključen 19.05.2026
   razlog:
   pregazio mobile responsive grid zbog !important
   i forsirao 3 kolone na mobitelu

.recipe-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}
*/
/* ------------------------------------------------ */

/* ------------------------------------------------ */
/* FORCE FIX kartica 09.05.2026 */

.recipe-card {
  display: block !important;
  background: #f3f3f3 !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.recipe-card .card-title {
  display: block !important;

  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;

  padding: 20px !important;
  margin: 0 !important;

  background: #e7e3df !important;

  color: #222 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  text-decoration: none !important;
}
/* ------------------------------------------------ */

/* ------------------------------------------------ */
/* DODANO 09.05.2026
   centriranje titlea u karticama */

.recipe-card .card-title {
  text-align: center;
}
/* ------------------------------------------------ */

/* ------------------------------------------------ */
/* FORCE CENTER TITLE 09.05.2026 */

.recipe-card .card-title {
  width: 100% !important;
  display: block !important;

  text-align: center !important;

  margin: 0 auto !important;
  padding: 18px 20px !important;

  position: relative !important;
  left: auto !important;
  right: auto !important;
}
/* ------------------------------------------------ */

.recipe-title {
  text-align: center;
  padding: 18px;
  margin: 0;

  font-size: 22px;
  font-weight: 700;

  color: #222;
  background: #e7e3df;
}

/* PROJECTS CAROUSEL */
.projects-carousel{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
}

.project-card{
  min-width:280px;
  max-width:280px;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:#111;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  transition:0.3s ease;
  scroll-snap-align:start;
  flex-shrink:0;
}

.project-card:hover{
  transform:translateY(-4px);
}

.project-card img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
}

.project-info{
  padding:16px;
}

.project-info h3{
  margin:0 0 8px;
}

.project-info p{
  margin:0;
  font-size:14px;
  line-height:1.5;
}

/* ------------------------------ */
/* Social Links */

.social-links{
  display:flex;
  justify-content:center;
  gap:14px;
  margin:30px 0;
  flex-wrap:wrap;
}

.social-links a{
  display:flex;
  align-items:center;
  justify-content:center;

  width:42px;
  height:42px;

  border-radius:50%;

  background:#4b3d36;
  color:#fff;

  text-decoration:none;
  font-size:14px;
  font-weight:700;

  transition:all .3s ease;
}

.social-links a:hover{
  transform:translateY(-2px);
  opacity:.9;
}

/* ------------------------------ */
/* Pagination */

.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  margin:40px 0;
  flex-wrap:wrap;
}

.pagination a{
  padding:10px 16px;
  background:#4b3d36;
  color:#fff;
  text-decoration:none;
  border-radius:8px;
}

.pagination a:hover{
  opacity:.9;
}

.pagination span{
  font-weight:600;
}
