﻿/* ==========================================================
   DIO 1: STARI STILOVI (Semafor, Login, Kostur) - NE DIRATI
   ========================================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: white;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.center {
    text-align: center;
}

.gold-text {
    color: #D4AF37;
}

.glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.glow-yellow {
    color: #ffeb3b;
    text-shadow: 0 0 15px #ffeb3b;
}

/* NAVIGACIJA (UPDATED) */
nav {
    background: #111;
    border-bottom: 2px solid #D4AF37;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centrira gumbice */
    align-items: center;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.admin-btn {
    border: 1px solid #D4AF37;
    padding: 5px 15px;
    border-radius: 5px;
}

.red-text {
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 5px 15px;
    border-radius: 5px;
    background: transparent;
}

    .red-text:hover {
        background-color: #ff4d4d;
        color: white;
    }

/* LOGO U NAVIGACIJI */
.nav-logo-right {
    height: 45px;
    width: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tournament-toggle {
    display: flex;
    justify-content: center;
    background: #111;
    border: 2px solid #333;
    border-radius: 50px;
    width: 300px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.toggle-btn {
    flex: 1;
    background: transparent;
    color: #888;
    border: none;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-btn.active {
    background: #D4AF37;
    color: black;
}

.bracket-view {
    display: none; /* Po defaultu skriveno, JS pali klasu active-bracket */
    background: #000;
    width: 100vw;
    height: calc(100vh - 160px); /* Smanjeno zbog gumba na vrhu */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
}

.bracket-view::-webkit-scrollbar {
    display: none;
}

.bracket-view.active {
    cursor: grabbing;
}

.bracket-view.active-bracket {
    display: block; /* Klasa koja prikazuje odabrani kostur */
}

.split-bracket-wrapper {
    width: max-content;
    height: max-content;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    padding: 100px;
    gap: 80px;
}

.side-bracket {
    display: flex;
    gap: 40px;
}

    .side-bracket.right {
        flex-direction: row-reverse;
    }

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 220px;
    flex-shrink: 0;
}

    .bracket-round h3 {
        text-align: center;
        color: #D4AF37;
        margin-bottom: 20px;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }

.matchup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.round-0 .matchup-container {
    height: 100px;
}

.round-1 .matchup-container {
    height: 200px;
}

.round-2 .matchup-container {
    height: 400px;
}

.round-3 .matchup-container {
    height: 800px;
}

.round-4 .matchup-container {
    height: 1600px;
}

.match-box {
    background: #151515;
    border: 1px solid #444;
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

    .match-box:hover {
        border-color: #666;
        transform: scale(1.05);
    }

.match-team {
    background: #222;
    padding: 6px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0;
}

.match-score {
    background: #D4AF37;
    color: black;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    width: 50px;
    margin: 4px auto;
}

.left .match-box::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #333;
    z-index: 1;
}

.right .match-box::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #333;
    z-index: 1;
}

.final-bracket {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    margin-top: 500px;
}

    .final-bracket h3 {
        font-size: 1.5rem;
        letter-spacing: 3px;
        color: #D4AF37;
    }

.trophy-icon {
    font-size: 4rem;
    margin-top: 20px;
    filter: drop-shadow(0 0 10px gold);
}

.match-box.final {
    border: 2px solid #D4AF37;
    transform: scale(1.3);
}

/* SEMAFOR */
#admin {
    width: 100vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scoreboard-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.scoreboard-flex {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 20px;
}

.team-panel {
    flex: 1;
    background: #0a0a0a;
    border: 2px solid #333;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-name {
    font-size: 3rem;
    margin: 10px 0;
    color: #D4AF37;
    text-align: center;
    line-height: 1.1;
    width: 100%;
}

.score {
    font-family: 'Black Ops One', cursive;
    font-size: 9rem;
    color: white;
    margin: 0;
    line-height: 1;
}

.corner-wrapper {
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 15px;
    width: 100%;
    text-align: center;
}

.corner-label {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.corner-number {
    font-size: 2.5rem;
    font-family: 'Black Ops One';
    color: #ffeb3b;
    margin-left: 10px;
}

.center-panel {
    flex: 0 0 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ultra-massive-timer {
    font-family: 'Black Ops One', cursive;
    font-size: 160px;
    color: #fff;
    line-height: 1;
    margin: 10px 0;
}

.mini-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.btn-mini {
    background: #D4AF37;
    color: black;
    border: none;
    padding: 2px 10px;
    font-weight: bold;
    cursor: pointer;
}

    .btn-mini.remove {
        background: #333;
        color: white;
    }

.btn-mini-corner {
    background: #222;
    border: 1px solid #444;
    color: #aaa;
    padding: 2px 8px;
    cursor: pointer;
}

.btn-fullscreen {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    padding: 5px 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

    .btn-fullscreen:hover {
        border-color: #D4AF37;
        color: #D4AF37;
    }

.center-controls-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
    opacity: 0.8;
}

.timer-row {
    display: flex;
    gap: 5px;
}

.btn-compact {
    border: none;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
}

    .btn-compact.start {
        background: #1a4d23;
        color: white;
    }

    .btn-compact.stop {
        background: #4d1a1a;
        color: white;
    }

    .btn-compact.reset {
        background: #eee;
        color: black;
    }

    .btn-compact.finish {
        background: #D4AF37;
        color: black;
        margin-top: 10px;
    }

/* MODALI & FORMULARI */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
}

.modal-content {
    background: #111;
    border: 2px solid #D4AF37;
    padding: 40px;
    width: 350px;
    margin: 10% auto;
    text-align: center;
    border-radius: 10px;
}

    .modal-content input {
        width: 80%;
        padding: 12px;
        margin-bottom: 20px;
        background: #222;
        border: 1px solid #444;
        color: white;
        text-align: center;
        font-size: 1.1rem;
    }

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-gold {
    background: #D4AF37;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: black;
}

.btn-red {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* RASPORED / UTAKMICE */
.scheduler-box {
    text-align: center;
    padding: 20px;
    background: #111;
    margin-bottom: 20px;
}

    .scheduler-box input, .scheduler-box select {
        padding: 10px;
        margin: 5px;
        background: #222;
        color: white;
        border: 1px solid #444;
    }

.full-width-select {
    width: 100%;
    padding: 15px;
    background: #222;
    color: #D4AF37;
    border: 1px solid #444;
    font-size: 1rem;
}

.date-time-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

    .date-time-row input {
        flex: 1;
    }

.date-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #111;
    padding: 15px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.nav-arrow {
    background: #D4AF37;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 5px;
}

#current-date-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    min-width: 200px;
    text-align: center;
}

.fixture-card {
    background: #151515;
    border-left: 5px solid #D4AF37;
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
}

#custom-alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 30px 50px;
    border: 4px solid #D4AF37;
    border-radius: 15px;
    z-index: 9999;
    font-family: 'Black Ops One';
    font-size: 3rem;
    transition: 0.3s;
    pointer-events: none;
}

    #custom-alert-box.show {
        transform: translate(-50%, -50%) scale(1);
    }

/* ==========================================================
   DIO 2: NOVI STILOVI ZA NASLOVNU
   ========================================================== */

/* Hero Sekcija */
.hero-section {
    position: relative;
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; 
    background-image: url('hero-smacina.jpg');
    background-size: cover;
    background-position: center center;
    z-index: 0; 
    will-change: transform; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(18,18,18,1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn-main-action {
    padding: 15px 40px;
    background-color: #E60000;
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
    transition: transform 0.2s;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

    .btn-main-action:hover {
        transform: translateY(-3px);
        background-color: white;
        color: #E60000;
    }

/* O Turniru */
.about-section {
    background-color: #1a1a1a;
    padding: 60px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

    .about-text p {
        color: #B0B0B0;
        line-height: 1.6;
    }

.stats-container {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #E60000;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ddd;
}

/* Sponzori */
.sponsors {
    text-align: center;
    padding: 40px 5%;
    background: #000;
    border-top: 1px solid #222;
}

.sponsor-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.sponsor-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #555;
    border: 2px solid #333;
    padding: 10px 20px;
}

/* CINEMATIC SLIKA NA DNU */
.cinematic-photo-container {
    width: 100%;
    height: 650px;
    position: relative;
    border-top: 2px solid #D4AF37;
    border-bottom: 2px solid #D4AF37;
    background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%), linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%), url('grupa-smacina.jpg');
    background-size: cover;
    background-position: center center;
}

@media (max-width: 768px) {
    .cinematic-photo-container {
        height: 300px;
    }
}

/* NOVI FOOTER */
footer {
    background-color: #121212;
    padding: 50px 5% 20px;
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .footer-col h4 {
        color: #D4AF37;
        margin-bottom: 20px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.1rem;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
        display: inline-block;
    }

.contact-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

    .contact-list li {
        margin-bottom: 10px;
        color: white;
        font-size: 1rem;
    }

.map-link {
    color: #E60000;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    color: white;
    border-radius: 50%;
    border: 1px solid #444;
    transition: 0.3s;
}

    .social-btn:hover {
        background: #D4AF37;
        color: black;
        border-color: #D4AF37;
        transform: translateY(-3px);
    }

.footer-bottom-dev {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 0.85rem;
}

.dev-text strong {
    color: #888;
    transition: 0.3s;
}

.footer-bottom-dev:hover .dev-text strong {
    color: #D4AF37;
}

.dev-icon-link {
    color: #666;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

    .dev-icon-link:hover {
        color: #E1306C;
        transform: scale(1.1);
    }

/* Live Widget Dizajn za Naslovnu */
.live-widget-container {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.live-header {
    color: #ff3333;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3333;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ff3333;
    animation: pulseRed 1.5s infinite;
    margin-right: 5px;
}

@keyframes pulseRed {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #ff3333;
    }

    100% {
        opacity: 0.6;
    }
}

.live-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.live-team-name {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    flex: 1;
    white-space: normal; 
    word-wrap: break-word;
    text-align: center; 
    line-height: 1.2; 
    padding: 0 5px; 
}

.live-score-box {
    font-family: 'Black Ops One', cursive;
    font-size: 2.2rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-timer-wrapper {
    color: #ccc;
    font-family: 'Black Ops One', cursive;
    font-size: 1.2rem;
}

.no-match-box {
    margin: 20px auto;
    padding: 10px 20px;
    border: 1px solid #555;
    border-radius: 30px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0,0,0,0.7);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pulse-gray {
    color: #888;
    animation: pulseGray 2s infinite;
}

@keyframes pulseGray {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   2. NAVIGACIJA (DESKTOP & MOBILE)
   ========================================= */
nav {
    background: #111;
    border-bottom: 2px solid #D4AF37;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    height: 50px;
    width: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.desktop-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

    .nav-btn:hover {
        color: #D4AF37;
    }

.admin-btn {
    border: 1px solid #D4AF37;
    padding: 5px 15px;
    border-radius: 5px;
}

.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #D4AF37;
        border-radius: 3px;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

    .mobile-nav-btn:hover {
        color: #D4AF37;
    }

.admin-btn-mob {
    border: 2px solid #D4AF37;
    padding: 10px 30px;
    border-radius: 50px;
    color: #D4AF37;
}

/* =========================================
   3. HALL OF FAME VREMENSKA CRTA
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 4px;
        background: #D4AF37;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
        border-radius: 2px;
    }

/* --- ANIMACIJE SKROLANJA (NOVO) --- */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
    /* Početno stanje animacije (Sakriveno i pomaknuto) */
    opacity: 0;
    transition: all 0.8s ease-out;
}

    .timeline-item.left {
        left: 0;
        transform: translateX(-50px);
    }

    .timeline-item.right {
        left: 50%;
        transform: translateX(50px);
    }

    /* Kada dodamo .show pomoću Javascripta, animacija se aktivira */
    .timeline-item.show {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -10px;
        background-color: #111;
        border: 4px solid #D4AF37;
        top: 30px;
        border-radius: 50%;
        z-index: 1;
    }

    .timeline-item.right::after {
        left: -10px;
    }

.timeline-content {
    padding: 20px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.timeline-year {
    font-size: 2rem;
    color: #D4AF37;
    font-family: 'Black Ops One', cursive;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* --- SLIKE SE VIŠE NE REŽU --- */
.timeline-img {
    width: 100%;
    height: auto; /* Prirodna visina da se sačuva omjer, nema max-height ili cover */
    display: block;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #444;
}

.timeline-team {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.timeline-score {
    font-size: 1.4rem;
    color: #D4AF37;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-runnerup {
    font-size: 1rem;
    color: #888;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #aaa;
    margin-top: 10px;
    line-height: 1.4;
    font-style: italic;
}

/* RESPONSIVE MEDIA QUERY */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-icon {
        display: flex;
    }

    .nav-logo {
        right: auto;
        left: 0;
        height: 40px;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-container {
        flex-direction: column;
    }

    .scoreboard-flex {
        flex-direction: column;
    }

    .ultra-massive-timer {
        font-size: 80px;
    }

    .center-panel {
        flex: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4 {
        display: inline-block;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-logo-right {
        height: 35px;
        right: 10px;
    }

    /* Prilagodba Vremenske Crte i Animacija za mobitel */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

        .timeline-item.left {
            transform: translateX(30px); /* Kreću zdesna prema sredini da izbjegnu liniju */
        }

        .timeline-item.right {
            left: 0;
            transform: translateX(30px); /* Svi kreću zdesna na mobitelu */
        }

        .timeline-item.show {
            transform: translateX(0); /* Kada dođu u fokus, vraćaju se na nulu */
        }

        .timeline-item.left::after, .timeline-item.right::after {
            left: 10px;
        }
}
/* =========================================
   4. EKIPE I IGRAČI
   ========================================= */
.search-container {
    margin-bottom: 40px;
}

.search-box {
    display: inline-flex;
    align-items: center;
    background: #151515;
    border: 2px solid #333;
    border-radius: 50px;
    padding: 5px 20px;
    width: 100%;
    max-width: 400px;
    transition: 0.3s;
}

    .search-box:focus-within {
        border-color: #D4AF37;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }

.search-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

#team-search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

    .team-card:hover {
        border-color: #D4AF37;
        transform: translateY(-5px);
        background: #151515;
    }

.team-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}

/* Modal za igrače specifičnosti */
.team-modal-content {
    max-width: 600px;
    width: 90%;
    padding: 30px;
}

.player-card {
    background: #1a1a1a;
    border-left: 4px solid #333;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

    .player-card.has-trophies {
        border-left-color: #D4AF37;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, rgba(26,26,26,1) 50%);
    }

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.player-stats-empty {
    font-size: 0.85rem;
    color: #666;
}

.trophy-badge {
    display: inline-block;
    background: rgba(0,0,0,0.5);
    border: 1px solid #444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ccc;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-delete-player {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
}

/* =========================================
   7. SHIMMER EFEKT UČITAVANJA (SKELETON)
   ========================================= */

.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.skeleton-card {
    height: 70px; 
    background: #1a1a1a;
    border-radius: 6px;
    border-left: 4px solid #333;
    position: relative;
    overflow: hidden; 
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, rgba(26,26,26,0) 0%, rgba(60,60,60,0.5) 50%, rgba(26,26,26,0) 100%);
    animation: shimmer 1.5s infinite; /* Vrti se u krug svake 1.5 sekunde */
}

@keyframes shimmer {
    0% { left: -150px; }
    100% { left: 100%; } 
}

.skrol-ulaz-lijevo {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Iskakaknje odozdo (za statistiku i sponzore) */
.skrol-iskakanje {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Klasa koja se dodaje putem JS-a kad element uđe u ekran */
.animacija-aktivna {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* 3. Velika slika (Filmski zoom) */
/* Prepravljamo stari kontejner da ne pušta sliku van okvira */
.cinematic-photo-container {
    background-image: none !important; /* Mičemo staru sliku */
    overflow: hidden; 
    position: relative;
}

.cinematic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%), linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%), url('grupa-smacina.jpg');
    background-size: cover;
    background-position: center center;
    transform: scale(1.3);
    transition: transform 2s ease-out; 
}

.cinematic-bg.animacija-aktivna {
    transform: scale(1);
}

#mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Dodajemo prazan prostor na dnu cijele stranice 
       kako nam donji meni ne bi prekrio tekst ili footer */
    body {
        padding-bottom: 70px; 
    }

    /* Prikazujemo donji meni i radimo stakleni efekt */
    #mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 2000;
        
        /* Magija stakla (Glassmorphism) */
        background: rgba(15, 15, 15, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px); /* Za iPhone Safari */
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

.bottom-nav-item {
        background: transparent;
        border: none;
        color: #888;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 20%; 
        cursor: pointer;
        transition: 0.3s ease;
    }

    .bottom-nav-item svg {
        width: 24px;
        height: 24px;
        transition: transform 0.2s, stroke 0.2s;
    }

    .bottom-nav-item span {
        font-size: 0.7rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* Efekt kad korisnik klikne na gumb (Active state) */
    .bottom-nav-item:active svg, 
    .bottom-nav-item:focus svg {
        stroke: #D4AF37;
        transform: scale(1.1);
    }
    
    .bottom-nav-item:active span,
    .bottom-nav-item:focus span {
        color: #D4AF37;
    }

    .hamburger-icon {
        display: none !important; 
    }

    .nav-logo {
        position: static !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .nav-container {
        justify-content: center !important;
    }
} 


#bracket-veterani-container .split-bracket-wrapper {
    padding: 50px; 
    gap: 40px; 
}

#bracket-veterani-final {
    margin-top: 100px; 
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.sponsor-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    height: 150px; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-decoration: none;
    overflow: hidden; 
}

.sponsor-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    background: #1a1a1a;
}


.sponsor-card.gold-sponsor {
    border-width: 2px;
    border-color: #D4AF37;
    background: linear-gradient(145deg, #111, #1a1500);
}

.sponsor-img {
    width: 100%;  
    height: 100%; 
    object-fit: contain; 
    transition: 0.3s ease;
}


@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .sponsor-card {
        height: 110px; 
        padding: 10px; 
    }
}

