/* 1. ФОНТОВИ */
@font-face {
    font-family: 'EvilEmpire';
    src: url('fonts/evilempire.otf') format('opentype');
    font-weight: normal; font-style: normal;
}

:root {
    --neon-orange: #FF5F15;
    --neon-red: #ffffff;
    --dark-bg: #0b0b0b;
}

/* 2. ГЛОБАЛНИ СТИЛОВИ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 3. NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 30px; background-color: #000; height: 80px; border-bottom: 2px solid var(--neon-orange);
}
.logo img { height: 130px; }
.social-links { display: flex; gap: 15px; }
.social-icon { color: white; text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: 0.2s; }
.social-icon:hover { color: var(--neon-orange); }

/* 4. HERO СЕКЦИЈА */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('sliki/svetlo.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero h1 { font-family: 'Oswald', sans-serif; font-size: 5.5rem; text-transform: uppercase; }
/* Стилизирање на Hero копчето */
.stats-btn {
    display: inline-block;
    margin-top: 25px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stats-btn img {
    height: 170px; /* Прилагоди ја висината по желба */
    width: auto;
    display: block;
}

/* Ефект кога ќе поминеш со глувчето */
.stats-btn:hover {
    transform: scale(1.05); /* Малку се зголемува */
    filter: brightness(1.2); /* Станува помалку посветло */
}

/* Hero содржината да биде центрирана за копчето да стои убаво под текстот */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* 5. РАСПОРЕД: KOJ SME NIE + МЕЧЕВИ */
.main-split {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 40px; margin-top: 80px; padding-bottom: 60px;
}
.about-section { flex: 2; }
.section-title {
    font-family: 'Oswald', sans-serif; font-size: 2.5rem; text-transform: uppercase;
    margin: 0 0 20px 0; border-left: 8px solid var(--neon-orange); padding-left: 15px; 
    color: var(--neon-orange); line-height: 1;
}
.about-text { color: #ccc; font-size: 1.1rem; padding-left: 23px; }

/* UPCOMING MATCHES ВИЏЕТ */
.matches-widget {
    flex: 1; min-width: 400px; background: var(--neon-orange);
    padding: 15px; border-radius: 12px; align-self: flex-start;
}
.widget-header { color: white; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; }
.match-card { background: #fff; border-radius: 8px; padding: 18px; color: #111; }
.match-info-top { display: flex; justify-content: space-between; font-size: 0.75rem; border-bottom: 1px solid #eee; margin-bottom: 12px; padding-bottom: 8px; font-weight: 800; color: #666; }
.match-main { display: flex; gap: 15px; align-items: center; }
.match-time { background: #f4f4f4; padding: 10px; border-radius: 6px; text-align: center; }
.match-time .date { display: block; font-weight: 900; }
.teams .team { display: flex; align-items: center; gap: 8px; font-weight: 900; margin: 4px 0; }
.teams img { width: 35px; height: 35px; object-fit: contain; }

/* 6. ГРИДОВИ ЗА ИГРАЧИ */
.players-grid, .staff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 50px; }
.card { background: #111; border: 1px solid #222; transition: 0.3s; cursor: pointer; }
.card:hover { border-color: var(--neon-orange); transform: translateY(-10px); }
.card img { width: 100%; height: 320px; object-fit: cover; }
.info { padding: 15px; text-align: center; }
.info h3 { font-family: 'EvilEmpire', sans-serif; color: var(--neon-orange); font-size: 1.9rem; }

/* 7. ГАЛЕРИЈА */
/* НОВИОТ КОД ЗА ГАЛЕРИЈА - СЛАЈДЕР */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 60px;
}

.gallery-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 300px; /* Ширина на секоја слика */
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #222;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.4s;
}

.gallery-item:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* КОПЧИЊА ЗА СЛАЈДЕРОТ */
.slider-btn {
    background: var(--neon-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #fff;
    color: #000;
}

/* МОДАЛ ЗА ЗГОЛЕМЕНА СЛИКА (LIGHTBOX) */
.modal-content-img {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    border: 3px solid var(--neon-orange);
    box-shadow: 0 0 20px rgba(255, 95, 21, 0.5);
}

#closeImageModal {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: var(--neon-orange);
    cursor: pointer;
}

/* 8. МОДАЛ (image_e10515.png СТИЛ) */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}

.modal-content { 
    background-color: #0d0d0d; width: 90%; max-width: 1000px; 
    padding: 60px; border: 1px solid #333; position: relative; overflow: hidden; 
}

.modal-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.modal-left { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }

.bg-logo-watermark {
    position: absolute; top: 40%; left: 45%; transform: translate(-50%, -50%);
    width: 130%; opacity: 0.08; z-index: 1; pointer-events: none;
}

#modalImg { height: 450px; object-fit: contain; position: relative; z-index: 2; }

#modalNick { 
    font-family: 'EvilEmpire', sans-serif; color: var(--neon-orange); 
    font-size: 5.5rem; margin-top: 10px; z-index: 3; text-transform: uppercase;
}

/* ДЕСНА СТРАНА: ГОЛЕМ РАЗМАК */
.modal-right { flex: 1.5; padding-left: 20px; }

.stats-container { display: flex; flex-direction: column; gap: 18px; }

.modal-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.modal-socials img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1); /* Ги прави иконите бели */
    transition: transform 0.2s ease;
}

.modal-socials a:hover img {
    transform: scale(1.2); /* Ефект на зголемување */
}
.stat-row { 
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.8rem; border-bottom: 1px solid #222; padding-bottom: 8px; 
}

.stat-label { color: var(--neon-red); font-weight: 900; text-transform: uppercase; }

.stat-value { color: #fff; font-weight: 500; text-align: right; }

.joined-box { 
    margin-top: 30px; background: var(--neon-orange); color: #000; 
    padding: 10px 20px; display: inline-block; font-size: 1.6rem; 
    font-weight: 900; float: right; 
}

.close-button { position: absolute; top: 20px; right: 25px; font-size: 40px; color: var(--neon-orange); cursor: pointer; }

/* 9. ФУТЕР */
.heroic-footer { background: #000; padding: 40px 0; border-top: 1px solid #222; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.footer-logo { height: 80px; opacity: 0.5; }
.footer-socials a { color: white; text-decoration: none; margin-left: 20px; font-weight: 900; font-size: 0.8rem; }

/* 10. РЕСПОНЗИВ */
@media (max-width: 1024px) {
    .navbar { padding: 12px 20px; }
    .logo img { height: 100px; }
    .social-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
    .main-split { gap: 30px; }
    .matches-widget { min-width: auto; }
    .gallery-item { min-width: 260px; }
}

@media (max-width: 768px) {
    .hero { height: 50vh; }
    .hero h1 { font-size: 3rem; }
    .navbar { flex-wrap: wrap; justify-content: center; gap: 15px; text-align: center; }
    .logo img { height: 85px; }
    .social-links { width: 100%; justify-content: center; }
    .main-split { flex-direction: column; }
    .matches-widget { width: 100%; }
    .about-text { font-size: 1rem; padding-left: 0; }
    .players-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-wrapper { flex-direction: column; align-items: stretch; }
    .slider-btn { width: 42px; height: 42px; font-size: 20px; }
    .gallery-slider { gap: 12px; }
    .gallery-item { min-width: 220px; height: 180px; }
    .modal-content { padding: 40px; }
    .modal-layout { flex-direction: column; }
    #modalImg { height: 320px; }
    #modalNick { font-size: 3rem; }
    .modal-right { padding-left: 0; width: 100%; }
    .stat-row { font-size: 1.4rem; }
    .joined-box { font-size: 1.4rem; }
    .footer-container { flex-direction: column; text-align: center; gap: 20px; }
    .footer-socials a { margin-left: 0; margin-right: 20px; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; }
    .stats-btn img { height: 130px; }
    .players-grid, .staff-grid { grid-template-columns: 1fr; }
    .gallery-item { min-width: 100%; }
    .gallery-wrapper { gap: 12px; }
    .slider-btn { display: none; }
    .modal-content { padding: 25px; }
    .modal-layout { gap: 20px; }
    #modalNick { font-size: 2.2rem; }
    .stat-row { font-size: 1.2rem; }
    .joined-box { width: 100%; float: none; }
    .footer-socials a { display: block; margin: 10px 0 0; }
}

@media (max-width: 1000px) {
    .main-split { flex-direction: column; align-items: center; }
    .modal-layout { flex-direction: column; }
    .players-grid { grid-template-columns: repeat(2, 1fr); }
}