@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Crimson+Text:wght@400;600&display=swap');


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    color: #ddd;
    background: linear-gradient( rgba(0,0,0,.75), rgba(0,0,0,.9) ), url("https://bnetcmsus-a.akamaihd.net/cms/template_resource/5828I8W26TV51590014180482.jpg") center/cover fixed;
}



.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 30px 40px;
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 30px;
    font-family: Arial, sans-serif;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,7,5,0.92);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


.logo {
    font-family: Cinzel;
    font-size: 26px;
    color: #d4af37;
}



nav a {
    color: #ddd;
    text-decoration: none;
    margin-left: 28px;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}


    nav a:hover {
        color: #d4af37;
        border-bottom-color: #d4af37;
    }



.content {
    text-align: center;
    width: 100%;
}


.crest {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.5));
}

.event-banner-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 25px;
}

.event-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(rgba(212,175,55,0.15), rgba(139,101,8,0.1));
    border: 1px solid #d4af37;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffd76a;
    box-shadow: 0 0 20px rgba(212,175,55,0.25);
    animation: event-pulse 2s ease-in-out infinite;
}

.event-banner-icon {
    font-size: 18px;
}

@keyframes event-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(212,175,55,0.2); }
    50% { box-shadow: 0 0 25px rgba(212,175,55,0.45); }
}



h1 {
    font-family: Cinzel;
    font-size: 56px;
    color: #d4af37;
    text-shadow: 0 0 20px black;
    margin: 0 0 8px;
    letter-spacing: 1px;
}



h2 {
    font-weight: normal;
    color: #bbb;
    margin: 0 0 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}



.online-dot {
    width: 12px;
    height: 12px;
    background: #00ff55;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff55;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}



.status-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

.status-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.status-stat:last-child {
    border-bottom: none;
}

.status-lbl {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
}

.status-num {
    font-family: Cinzel;
    font-size: 24px;
    color: white;
    font-weight: 600;
}



.buttons {
    margin-top: 10px;
}



    .buttons a,
    button {
        background: linear-gradient( #d4af37, #8b6508 );
        padding: 15px 35px;
        margin: 10px;
        border-radius: 10px;
        color: black;
        font-family: Arial, sans-serif;
        font-weight: bold;
        text-decoration: none;
        border: 0;
        cursor: pointer;
        display: inline-block;
        transition: filter 0.15s;
    }

    .buttons a:hover,
    button:hover:not(:disabled) {
        filter: brightness(1.1);
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }



/* --- Zakaj KoKS (features) --- */

.features-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 12px;
}

.features-section h3 {
    font-family: Cinzel;
    color: #d4af37;
    font-size: 19px;
    margin: 0 0 10px;
}

.features-section p {
    color: #aaa;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 800px) {
    .features-section {
        grid-template-columns: 1fr;
    }
}



/* --- Footer --- */

.site-footer {
    text-align: center;
    padding: 40px 20px 50px;
    border-top: 1px solid rgba(212,175,55,0.15);
    font-family: Arial, sans-serif;
}

.site-footer p {
    color: #777;
    font-size: 13px;
    margin: 10px 0;
}

.footer-links a {
    color: #d4af37;
    text-decoration: none;
    margin: 0 12px;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}



.register-box {
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 100px;
    padding: 40px;
    background: #111e;
    border: 1px solid #d4af37;
    border-radius: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
}



input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #000;
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}



button {
    width: 100%;
}



#result {
    margin-top: 20px;
    color: #00ff55;
    min-height: 1.2em;
}



.back {
    display: block;
    margin-top: 20px;
    color: #d4af37;
}



/* --- Focus dostopnost --- */

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}



@media(max-width:600px) {

    h1 {
        font-size: 45px;
    }

    .hero {
        padding: 20px 20px 40px;
        min-height: auto;
    }

    .register-box {
        margin-top: 60px;
        padding: 30px 24px;
    }

    nav {
        justify-content: center;
        text-align: center;
    }

    nav a {
        margin: 0 12px;
    }
}



/* --- Novice + sidebar portal --- */

.portal-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 35px;
    align-items: start;
}

.portal-main .news-heading {
    margin: 0 0 20px;
}

@media (max-width: 800px) {
    .portal-section {
        grid-template-columns: 1fr;
    }
}

.sidebar-card {
    background: #111d;
    border: 1px solid #806000;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    text-align: left;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card h3 {
    font-family: Cinzel;
    color: #d4af37;
    font-size: 17px;
    margin: 0 0 15px;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-list li {
    border-bottom: none;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #806000;
    border-radius: 8px;
    color: #ddd;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.link-list a::after {
    content: "→";
    opacity: 0.6;
}

.link-list a:hover {
    background: linear-gradient(#d4af37, #8b6508);
    color: black;
    font-weight: bold;
    border-color: #d4af37;
}

.link-list a:hover::after {
    opacity: 1;
}

.discord-btn {
    display: block;
    text-align: center;
    background: linear-gradient(#5865F2, #454FBF);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.discord-btn:hover {
    filter: brightness(1.1);
}

.news-heading {
    font-family: Cinzel;
    color: #d4af37;
}

.news-card {
    background: #111d;
    border: 1px solid #806000;
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 18px;
}

.news-card h3 {
    color: #d4af37;
    font-family: Cinzel;
    margin: 0 0 5px;
    font-size: 18px;
}

.news-date {
    color: #999;
    font-size: 13px;
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
}

.news-card p:last-child {
    color: #ccc;
    white-space: pre-wrap;
    margin: 0;
    font-size: 16px;
}



/* --- Lestvica (leaderboard.html) --- */

.leaderboard-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
    width: 100%;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: #111c;
    border: 1px solid #806000;
    color: #ddd;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: auto;
}

.tab-btn.active {
    background: linear-gradient(#d4af37, #8b6508);
    color: black;
}

.rank-badge {
    display: inline-block;
    width: 28px;
    text-align: center;
    font-weight: bold;
    color: #d4af37;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #111d;
    border: 1px solid #806000;
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

th {
    background: #1a1305;
    color: #d4af37;
    font-family: Cinzel;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
    color: #ddd;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #1a1a1a;
}

.leaderboard-search {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 25px;
}

.leaderboard-search input {
    flex: 1;
    margin: 0;
}

.leaderboard-search button {
    width: auto;
    white-space: nowrap;
}



/* --- Pravila (rules.html) --- */

.rules-wrap {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 15px 60px;
    text-align: left;
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.rules-wrap h2 {
    font-family: Cinzel;
    color: #d4af37;
    margin-top: 35px;
}

.rules-wrap ol, .rules-wrap ul {
    line-height: 1.8;
}
