/* Birokratski CSS - resen, suhoparen in dolgočasen */
:root {
    --eu-blue: #003399;
    --eu-yellow: #FFCC00;
    --bureaucracy-gray: #f4f5f7;
    --text-dark: #222222;
    --border-color: #cccccc;
}

body {
    font-family: "Arial", "Helvetica", sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.childish-font {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #000080;
    transform: rotate(-2deg);
    display: inline-block;
}

/* Header, ki zgleda kot vladni portal */
.official-header {
    background-color: var(--eu-blue);
    color: white;
    padding: 10px 20px;
    border-bottom: 5px solid var(--eu-yellow);
    position: relative;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.banana-logo {
    width: 40px;
    height: 40px;
    background-color: var(--eu-blue);
    border-radius: 50%;
    border: 2px solid var(--eu-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    overflow: hidden;
    text-align: center;
}

.header-nav {
    display: flex;
}
.header-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}
.header-nav a:hover {
    text-decoration: underline;
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--eu-blue);
        flex-direction: column;
        border-top: 2px solid var(--eu-yellow);
        z-index: 100;
    }
    .header-nav a {
        padding: 15px 20px;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-toggle:checked ~ .header-nav {
        display: flex;
    }
}

.warning-banner {
    background-color: #ffeeba;
    color: #856404;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #ffeeba;
    font-family: "Times New Roman", Times, serif;
}

/* Glavni vsebinski kontejner */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
}

.bureaucratic-title {
    border-bottom: 2px solid var(--eu-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: "Times New Roman", Times, serif;
    color: var(--eu-blue);
}

.ref-number {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: -15px;
    margin-bottom: 20px;
}

/* TABELE za Leaderboard */
.official-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.official-table th {
    background-color: var(--bureaucracy-gray);
    color: var(--eu-blue);
    text-align: left;
    padding: 12px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.official-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
}

.official-table tr:nth-child(even) {
    background-color: #fafafa;
}
.official-table a {
    color: var(--eu-blue);
    font-weight: bold;
    text-decoration: none;
}
.official-table a:hover {
    text-decoration: underline;
}

/* OBRAZCI (za predloge) */
.official-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.official-form input[type="text"],
.official-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-sizing: border-box;
    font-family: inherit;
}

.official-button {
    background-color: var(--eu-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--eu-yellow);
    transition: transform 0.1s;
}

.official-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--eu-yellow);
}

/* IGRALNI DEL (Game UI) */
.game-container {
    display: flex;
    gap: 20px;
}
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
}

.game-main {
    flex: 1.5;
    text-align: center;
    border: 2px dashed var(--border-color);
    padding: 20px;
    background-color: var(--bureaucracy-gray);
}

.click-target {
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.05s;
    display: inline-block;
    background: white;
    padding: 20px 40px;
    border: 4px solid var(--eu-blue);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.click-target:active {
    transform: scale(0.95);
}

.score-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--eu-blue);
    margin: 10px 0;
    font-family: "Courier New", Courier, monospace;
}

.upgrades-panel {
    flex: 1;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}
@media (max-width: 768px) {
    .upgrades-panel {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 15px;
    }
}

.upgrade-item {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}
.upgrade-item:hover {
    background-color: #f0f8ff;
}
.upgrade-item:active {
    background-color: #e6f2ff;
}
.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #eee;
}

.upgrade-info h4 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    color: var(--eu-blue);
}
.upgrade-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}
.upgrade-cost {
    font-weight: bold;
    background-color: var(--eu-yellow);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* NAME MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 30px;
    border: 4px solid var(--eu-blue);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* FOOTER */
.official-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    background-color: #f9f9f9;
}
