/* ==========================================================================
   stranica.css — Sređene margine za Pitch sekciju
   ========================================================================== */

/* ===== VARIABLES (root) ===== */
:root {
  --logo-slot-size: 44px;
  --logo-vert-offset: 0px;

  /* DEFINICIJE VELIČINA NASLOVA */
  --h2-size-desktop: 3.5rem;
  --h2-size-mobile: 2.1rem;

  --h1-size-desktop: 5.5rem;
  --h1-size-mobile: 2.4rem;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY & BACKGROUND ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: white;
  background-image: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(255,102,0,0.8) 140%), url("photos/bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ===== GLOBAL HEADER STYLES (NASLOVI) ===== */

/* H2 naslovi */
section h2 {
    font-size: var(--h2-size-desktop);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6), 0 0 28px rgba(255,102,0,0.15);
    margin-bottom: 30px; /* Globalni razmak ispod naslova */
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

/* Narančasta crta ispod naslova */
section h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px; /* Malo deblja crta da se bolje vidi */
    background-color: #ff6600;
    margin: 15px auto 0; /* 15px odmak od teksta naslova */
    opacity: 1;
    border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(255,102,0,0.4); }
    50% { text-shadow: 0 0 22px rgba(255,170,50,0.9); }
    100% { text-shadow: 0 0 10px rgba(255,102,0,0.4); }
}

/* ===== NAVBAR ===== */
nav {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-slot-size);
  height: var(--logo-slot-size);
  border-radius: 8px;
  overflow: hidden;
}

.logo-slot .logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo > span {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6600, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255,102,0,0.6);
    animation: glow 2.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ff6600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
}

.date-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.95), rgba(255, 170, 51, 0.88));
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 50px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 35px;
  animation: slideDown 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero h1 {
  font-size: var(--h1-size-desktop);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 30px 0;
  color: #fff;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.7), 0 0 40px rgba(255, 102, 0, 0.2);
  animation: fadeInUp 0.95s backwards;
  max-width: 1000px;
}

.hero p {
  font-size: 1.5rem;
  color: #f0f0f0;
  max-width: 850px;
  margin: 0 auto 55px;
  animation: fadeInUp 1.05s backwards;
}

.details {
  display: flex;
  gap: 50px;
  font-size: 1.2rem;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s backwards;
}

.details span {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.details span:hover {
  background: rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.5);
}

/* BUTTONS */
.cta-buttons button, .pitch-btn, .registration-btn {
  padding: 18px 50px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6600 0%, #ff8c42 100%);
  color: white;
  transition: all 0.4s;
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.35);
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
}

.cta-buttons button:hover, .pitch-btn:hover, .registration-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(255, 102, 0, 0.5);
}

/* ===== SECTIONS GENERIC ===== */
section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

/* ===== PITCH SECTION - POPRAVLJENE MARGINE ===== */
.pitch {
    padding: 80px 20px; /* Dovoljno prostora gore/dolje */
    text-align: center;
}

.pitch h2 {
    /* Naslov je već definiran gore, ali ovdje možemo dodati specifičnosti ako treba */
    margin-bottom: 20px;
}

.pitch p {
    font-size: 1.2rem;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto; /* 0 gore, auto bočno, 40px dolje do gumba */
    line-height: 1.6;
}

/* ===== PROŠLA GODINA ===== */
#prosla-godina p {
    font-size: 1.15rem;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.highlights {
    display: flex;
    gap: 30px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.highlight-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(255,102,0,0.35);
    padding: 30px 40px;
    border-radius: 14px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(255,102,0,0.15);
}

.highlight-card h3 {
    font-size: 3rem;
    color: #ff6600;
    margin-bottom: 10px;
}

/* Slider */
.gallery-slider {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slides img {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    height: 460px;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6600, #ff9950);
    border: none;
    color: white;
    font-size: 1.8rem;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}
.prev { left: 15px; }
.next { right: 15px; }

/* ===== SCHEDULE / PROGRAM ===== */
.schedule table {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 102, 0, 0.15);
}

.schedule th {
  background: linear-gradient(135deg, #ff6600, #e65c00);
  color: white;
  padding: 20px 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.schedule td {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255, 102, 0, 0.2);
}

.schedule tr:hover td {
  background-color: rgba(255, 102, 0, 0.08);
}

/* ===== WORKSHOPS ===== */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.workshop-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 0, 0.3);
  transition: 0.3s;
}

.workshop-card:hover {
  border-color: #ff6600;
  transform: translateY(-5px);
}

.workshop-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ff6600;
}

/* ===== POSLODAVCI ===== */
.employers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 30px auto 0;
}

.employer-card {
  background: linear-gradient(135deg, #161616, #0f0f0f);
  border: 1px solid rgba(255, 102, 0, 0.12);
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s;
}

.employer-card:hover {
    transform: translateY(-6px);
}

.employer-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

.employer-name {
    margin-top: 10px;
    color: #ddd;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(13,13,13,0.96);
  text-align: center;
  color: #bbb;
  padding: 48px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
}

.footer-images {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px;
  overflow-x: auto;
}

.logo-frame {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller (Max 900px) */
@media (max-width: 900px) {
    .employers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (Max 600px) */
@media (max-width: 600px) {

    /* 1. TYPOGRAPHY FIXES FOR MOBILE */
    section h2 {
        font-size: var(--h2-size-mobile);
        margin-bottom: 25px; /* Manji razmak na mobitelu */
    }

    .hero h1 {
        font-size: var(--h1-size-mobile);
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 2. NAVBAR */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid #333;
    }

    .nav-links.active {
        display: flex;
    }

    /* 3. LAYOUT ADJUSTMENTS */
    .hero {
        padding: 60px 16px;
        min-height: auto;
    }

    .details {
        gap: 10px;
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons button {
        width: 100%;
    }

    /* Pitch sekcija na mobitelu */
    .pitch p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Highlights */
    .highlights {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .highlight-card {
        width: 100%;
    }

    /* Slider slike */
    .slides img {
        flex: 0 0 100%;
        width: 100%;
        height: 250px;
    }

    /* Schedule - kartice */
    .schedule thead {
        display: none;
    }

    .schedule tbody, .schedule tr, .schedule td {
        display: block;
        width: 100%;
    }

    .schedule tr {
        margin-bottom: 20px;
        background: #1a1a1a;
        border-radius: 10px;
        padding: 10px;
        border-left: 4px solid #ff6600;
    }

    .schedule td {
        text-align: left;
        padding: 8px 5px;
        border-bottom: none;
    }

    .schedule td:first-child {
        font-weight: bold;
        color: #ff6600;
    }

    /* Poslodavci grid */
    .employers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .employer-card img {
        height: 80px;
    }

    /* Footer */
    .footer-images {
        justify-content: flex-start;
    }

    .logo-frame {
        width: 80px;
        height: 80px;
    }
}
