/*  phpBB3 Style Sheet
    --------------------------------------------------------------
	Style name:			Flat Style
	Based on style:		prosilver (the default phpBB 3.2.x style)
	Original author:	Tom Beddard ( http://www.subblue.com/ )
	Modified by:		Ian Bradley ( http://iansvivarium.com )
    --------------------------------------------------------------
*/

@import url("normalize.css?v=3.2");
@import url("base.css?v=3.2");
@import url("utilities.css?v=3.2");
@import url("common.css?v=3.2");
@import url("links.css?v=3.2");
@import url("content.css?v=3.2");
@import url("buttons.css?v=3.2");
@import url("cp.css?v=3.2");
@import url("forms.css?v=3.2");
@import url("icons.css?v=3.2");
@import url("colours.css?v=3.2");
@import url("responsive.css?v=3.2");
@import url("flat.css?v=3.2");
/* SMANJI HEADER VISINU */
.headerbar {
    padding: 10px 0 !important;
}

/* SMANJI UNUTRAŠNJI RAZMAK */
#site-description {
    padding: 5px 0 !important;
}

/* SMANJI NASLOV */
#site-description h1 {
    font-size: 20px !important;
    margin: 0 !important;
}

/* SMANJI PODNASLOV */
#site-description p {
    font-size: 12px !important;
    margin: 2px 0 !important;
}
@media (max-width: 768px) {
    .headerbar {
        padding: 5px 0 !important;
    }

    #site-description h1 {
        font-size: 16px !important;
    }
}
.welcome-teaser{
    max-width:900px;
    margin:20px auto;
    padding:25px;
    border-radius:16px;

    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(10px);

    border:1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.4),
        0 1px 1px rgba(255,255,255,0.03);

    animation: fadeIn .6s ease;
}

@keyframes fadeIn{
    from{opacity:0;transform:translateY(10px)}
    to{opacity:1}
}

.welcome-teaser h2{
    font-size:22px;
    margin-bottom:10px;
}

.welcome-teaser p{
    opacity:.85;
    line-height:1.6;
    margin-bottom:15px;
}

.teaser-actions{
    display:flex;
    gap:10px;
    margin-bottom:15px;
    flex-wrap:wrap;
}

.btn{
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:0.25s;
}

.btn.primary{
    background: linear-gradient(90deg,#22c55e,#4ade80);
    color:#052e16;
}


.btn.secondary{
    background:#1e293b;
    color:#e5e7eb;
    border:1px solid #334155;
}

.btn:hover{
    transform:translateY(-2px);
}

.teaser-tags{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.teaser-tags span{
    background:rgba(255,255,255,0.05);
    padding:5px 10px;
    border-radius:6px;
    font-size:12px;
}
@media (max-width:768px){
    .welcome-teaser{
        padding:18px;
    }

    .welcome-teaser h2{
        font-size:18px;
    }
}
/* FULLSCREEN OVERLAY */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
}

/* BLOKIRAJ SCROLL ISPOD */
body.welcome-active {
    overflow: hidden;
}

/* TEASER CARD */
.welcome-overlay .welcome-teaser {
    max-width: 520px;
    width: 90%;

    padding: 30px;
    border-radius: 18px;

background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.08);

box-shadow:
    0 25px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06);

    text-align: center;

    animation: fadeIn .5s ease;
}

.welcome-overlay h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.welcome-overlay p {
    font-size: 14px;
    opacity: .85;
}
/* NASLOV */
.welcome-teaser h2 {
    color: #f8fafc; /* skoro bijelo */
}

/* GLAVNI TEKST */
.welcome-teaser p {
    color: #e2e8f0; /* svijetlo siva */
    opacity: 1; /* ukloni prigušenje */
}

/* BOLD (Pustopoljina) */
.welcome-teaser strong {
    color: #ffffff;
}
/* MANJI BLUR SAMO NA DESKTOPU */
@media (min-width: 769px) {
    .welcome-overlay {
        backdrop-filter: blur(2px);
    }
}
/* === SIDEBAR - FORSIRANO RADI === */

.custom-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.main-content {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
}

.sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
    background: #1e1e1e !important;
    padding: 15px !important;
    border-radius: 8px !important;
    position: sticky !important;
    top: 165px !important;
    float: none !important;
    display: block !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .custom-layout {
        flex-direction: column !important;
    }
    
    .sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 20px !important;
    }
}
/* Desktop */
[id^="p"] {
    scroll-margin-top: 150px;
}

/* Mobilni */
@media (max-width: 768px) {
    [id^="p"] {
        scroll-margin-top: 110px;
    }
}
@media (max-width: 768px) {

    /* Scroll offset */
    [id^="p"] { scroll-margin-top: 110px !important; }

    /* === AVATAR === */
    .postprofile dt a img,
    .postprofile dt img,
    .postprofile .avatar-container img,
    .postprofile img.avatar,
    .postprofile img[src*="avatar"] {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
    }
    .postprofile .avatar-container {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: none !important;
        line-height: 0 !important;
    }
    .postprofile.online img.avatar,
    .postprofile.online dt a img,
    .postprofile.online dt img {
        border: 3px solid #00c853 !important;
    }

    /* === IME I RANK === */
    .postprofile dd.profile-rank {
        display: block !important;
        font-size: 0.72em !important;
        color: #999 !important;
        margin: 2px 0 !important;
        padding: 0 !important;
        clear: both !important;
    }
    .postprofile dd.joined { display: none !important; }

    /* === CONTACT – sakrij tekst, ostavi ikonu === */
    .postprofile dd.contact {
        display: block !important;
        font-size: 0 !important;
        line-height: 1 !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    .postprofile dd.contact a,
    .postprofile dd.contact img,
    .postprofile dd.contact i,
    .postprofile dd.contact span.contact-icons,
    .postprofile dd.contact span.contact-icons * {
        font-size: 16px !important;
        line-height: normal !important;
        display: inline-block !important;
    }

    /* === FONT TIJELA POSTA === */
    .postbody .content {
        font-size: 16px !important;
        line-height: 1.65 !important;
        word-break: break-word !important;
    }

    /* === REAKCIJE – reset float === */
    .reaction-bar,
    .reaction-box,
    .post-reaction-bar {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        margin: 8px 0 !important;
    }

    /* === SHARE – reset float === */
    .post-share-buttons,
    .share-links,
    [class*="share_"] {
        float: none !important;
        clear: both !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 8px 0 0 0 !important;
    }
}
/* Featured / Tema dana */
.forced-topic {
    background: #fff3cd;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 600;
}