/* ==========================================================================
   VETERAN COD2 - GLAVNI REVIDIRANI STIL (style.css)
   ========================================================================== */

/* --- POZADINA I GLOBALNI STIL SAJTA --- */
body {
    /* Velika Call of Duty 2 slika u pozadini sa mracnim prelivom radi boljeg kontrasta */
    background-image: linear-gradient(rgba(11, 12, 16, 0.82), rgba(11, 12, 16, 0.88)), 
                      url('https://postimg.co');
    font-family: 'Verdana', Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Slika stoji mirno dok se sajt skroluje */
    background-size: cover; /* Automatski rasteže sliku preko celog ekrana */
    background-position: center top;
    background-color: #0b0c10;
    color: #c5c6c7;
}

/* Resetovanje i boks model */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
    padding: 10px;
    color: #a9a9a9;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

a {
    color: #46d311;
    font-family: Arial, sans-serif;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* --- GLAVNI PROŠIRENI KONTEJNER SAJTA --- */
#container {
    margin: 0 auto;
    text-align: left;
    width: 100%;
    max-width: 1100px; /* Povecana širina da sve stane u jedan red */
    padding: 0 15px;
}

/* --- ZAGLAVLJE (HEADER) I MENI --- */
#header {
    position: relative;
    height: 304px;
    width: 100%;
    max-width: 1060px;
    margin: 20px auto 0 auto;
    background-image: url(images/header.jpg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px 8px 0 0;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
}

#header ul {
    position: absolute;
    bottom: 15px; /* Smešta meni na dno slike, preko trake */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centriranje svih linkova na sredini ekrana */
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 12px; /* Razmak izmedu dugmica */
    padding: 0 15px;
}

#header ul li {
    display: inline-block;
}

#header ul li a {
    color: #46d311; /* Prepoznatljiva COD2 zelena boja */
    font-size: 13px;
    text-transform: uppercase;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85); /* Crna pozadina iza slova radi citljivosti */
    border: 1px solid #46d311;
    border-radius: 4px;
    text-shadow: 0 0 5px rgba(70, 211, 17, 0.4);
    display: inline-flex;
    align-items: center;
}

/* Efekat kada se mišem prede preko dugmica u meniju */
#header ul li a:hover {
    color: #ffffff;
    background: #46d311;
    box-shadow: 0 0 15px #46d311; /* Svetleci neon efekat */
    transform: translateY(-2px); /* Dugme se blago podigne */
}

/* Podešavanje za PayPal sliku unutar donacije */
#header ul li a img {
    max-height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* --- GLAVNI SADRŽAJ (FLEXBOX RASPORED) --- */
#content {
    background: rgba(15, 16, 20, 0.9); /* Poluprovidna tamna podloga */
    margin: 0 auto;
    width: 100%;
    max-width: 1060px;
    padding: 25px 20px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Blokira skakanje servera u novi red */
    justify-content: space-between;
    align-items: flex-start;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
    gap: 25px;
}

/* --- UPUTSTVO ZA SPAJANJE (LEVA STRANA) --- */
.connect-sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
    font-family: 'Arial', sans-serif;
    text-align: left;
    color: #ffffff;
}
.connect-section-title {
    color: #ff3b3f;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.connect-section-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 2px;
    background: #ff3b3f;
    margin-right: 6px;
}
.connect-main-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #ffffff;
}
.connect-card {
    background: rgba(20, 22, 28, 0.95);
    border: 1px solid #2d3035;
    border-radius: 6px;
    padding: 15px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.connect-icon-box {
    background: rgba(255, 59, 63, 0.15);
    border: 1px solid #ff3b3f;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.connect-icon-box svg {
    width: 14px;
    height: 14px;
    fill: #ff3b3f;
}
.connect-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}
.connect-card-text {
    font-size: 11px;
    color: #9aa0a6;
    line-height: 1.5;
    margin-bottom: 12px;
}
.connect-card-text span {
    background: #2d3035;
    padding: 1px 4px;
    border-radius: 3px;
    color: #ff3b3f;
    font-weight: bold;
}
.connect-code-box {
    background: #0f1115;
    border-left: 3px solid #ff3b3f;
    padding: 8px;
    border-radius: 0 4px 4px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #e8eaed;
    word-break: break-all;
    margin-bottom: 10px;
}
.connect-card-footer {
    font-size: 10px;
    color: #5f6368;
    line-height: 1.4;
}

/* --- MREŽA SA SERVERIMA (DESNA STRANA) --- */
.servers-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    flex-grow: 1 !important;
}

/* Pojedinacni blok za svaki server */
.server-block {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 236px; /* Savršeno uklapanje unutar novog prostora */
}

/* Izgled IP adrese iznad servera */
.server-header-box {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    border: 1px dashed #46d311;
    padding: 6px 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.server-ip {
    color: #46d311 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 4px;
}

.join-btn {
    background: #46d311;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-decoration: none;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(70, 211, 17, 0.6);
    transition: all 0.2s ease;
    margin-right: 4px;
}

.join-btn:hover {
    background: #ffffff;
    color: #46d311 !important;
    box-shadow: 0 0 12px #ffffff;
}

/* GameTracker okviri */
#content iframe {
    background-color: #333333;
    border: 1px solid #444444;
    border-radius: 6px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#content iframe:hover {
    transform: scale(1.02);
    border-color: #46d311;
}

/* --- PODNOŽJE (FOOTER) --- */
#footer {
    background: rgba(20, 22, 26, 0.98);
    width: 100%;
    max-width: 1060px;
    margin: 0 auto 40px auto;
    padding: 20px 0;
    border-top: 2px solid #46d311;
    border-radius: 0 0 8px 8px;
    text-align: center;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
}

.footer-content-box {
    text-align: center !important;
    width: 100% !important;
}

#footer span {
    color: #666666;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Domaci tekstualni brojac poseta */
.php-counter {
    display: inline-block !important;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #46d311;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(70, 211, 17, 0.2);
}
.php-counter span {
    color: #46d311 !important;
    font-size: 14px;
}

/* Klasa za cišcenje rasporeda */
.clear {
    clear: both;
}
