:root {
    --bg: #f3f1ea;
    --surface: #ffffff;
    --primary: #26351f;
    --primary-dark: #172112;
    --accent: #8a6f2a;
    --accent-light: #d9c98b;
    --text: #222222;
    --muted: #666666;
    --border: #dddddd;
}

/* Osnovno */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* HEADER - prilagođeno za novi široki banner */
header,
.site-header {
    background: var(--primary-dark);
    color: #f5f1df;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 5px solid var(--accent);
}

.header-overlay {
    max-width: 1200px;
    margin: 0 auto;
}

header img,
.site-logo {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

/* Ako se koristi novi banner sa tekstom u slici, H1 se može sakriti dodavanjem class="visually-hidden" */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* Za stare stranice koje još imaju H1 ispod slike */
header h1,
.site-header h1 {
    font-size: 26px;
    margin: 12px 0 0;
    letter-spacing: 1px;
    color: #f5f1df;
    text-shadow: 0 2px 3px rgba(0,0,0,0.45);
}

.site-subtitle {
    font-size: 16px;
    color: var(--accent-light);
    margin: 4px 0 0;
    font-weight: bold;
}

/* Navigacija */
nav {
    background: var(--primary);
    text-align: center;
    padding: 12px;
    border-bottom: 3px solid var(--accent);
}

nav a {
    color: #f5f1df;
    margin: 8px 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

nav a:hover {
    color: var(--accent-light);
}

/* Glavni sadržaj */
main {
    max-width: 1100px;
    margin: 24px auto;
    background: var(--surface);
    padding: 24px;
    border: 1px solid #e4dfcf;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
    background: var(--primary);
    color: #f5f1df;
    padding: 10px 12px;
    margin-top: 30px;
    border-left: 6px solid var(--accent);
}

h3 {
    color: var(--primary);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--accent);
}

.section {
    margin-bottom: 30px;
}

/* Kartice i grid */
.grid,
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card,
.price-box,
.news,
.rule,
.doc-list li {
    border: 1px solid var(--border);
    background: #fafafa;
}

.card {
    flex: 1 1 220px;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
}

.card:hover {
    transform: translateY(-2px);
    transition: 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.card img {
    max-width: 100%;
    height: auto;
}

.card a {
    font-weight: bold;
    text-decoration: none;
}

/* Slike i galerije */
.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.image-row img {
    max-width: 100%;
    height: auto;
}

.text-block {
    text-align: justify;
}

/* Arhiva novosti */
.archive {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.archive a {
    background: #e9e5d6;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.archive a:hover {
    background: var(--accent);
    color: white;
}

/* Novosti */
.news {
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.news h2 {
    margin-top: 0;
}

.news img {
    width: 100%;
    height: auto;
    margin: 10px 0;
}

.date {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* Dokumenti */
.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.doc-list .date {
    float: right;
}

/* Cjenici / kontakt */
.price-box {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.price-box strong {
    color: var(--primary);
}

form {
    margin-top: 20px;
}

input,
textarea {
    width: 100%;
    padding: 9px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input[type="submit"],
input[type="reset"] {
    width: auto;
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 6px;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: var(--accent);
}

/* Sigurnost / pravila */
.rule {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
}

.rule img {
    width: 120px;
    height: auto;
    align-self: flex-start;
}

/* Način lova */
.hunt-intro {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 24px;
    text-align: justify;
    border-radius: 6px;
}

.hunt-card {
    border: 1px solid var(--border);
    background: #fafafa;
    margin-bottom: 18px;
    padding: 15px;
    display: grid;
    grid-template-columns: 80px 1fr 220px;
    gap: 15px;
    align-items: start;
    border-radius: 6px;
}

.hunt-card img {
    max-width: 70px;
    height: auto;
}

.hunt-card h3 {
    margin-top: 0;
}

.hunt-data {
    background: #f1efe7;
    border-left: 4px solid var(--accent);
    padding: 10px;
    font-size: 14px;
}

/* Članovi */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.member-card {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
    border-radius: 6px;
}

.member-card:hover {
    transform: translateY(-2px);
    transition: 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.member-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
}

.member-card p {
    font-weight: bold;
    margin: 10px 0 0;
    font-size: 14px;
}

/* Napomene */
.note,
.legacy-note {
    background: #fff8e1;
    border: 1px solid #ead28a;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
}

/* Stari očuvani sadržaj */
.legacy-content {
    overflow-x: auto;
}

.legacy-content table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.legacy-content td {
    padding: 4px;
    vertical-align: top;
}

.legacy-content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 22px;
    font-size: 12px;
    color: #e8e1c8;
    background: var(--primary-dark);
    border-top: 4px solid var(--accent);
}

/* Mobitel */
@media (max-width: 800px) {
    header,
    .site-header {
        padding: 8px 6px;
    }

    header h1,
    .site-header h1 {
        font-size: 22px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    main {
        margin: 10px;
        padding: 16px;
    }

    nav a {
        display: block;
        margin: 6px 0;
    }

    .rule,
    .hunt-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .rule img,
    .hunt-card img {
        margin: 0 auto;
    }

    .hunt-card .description {
        text-align: justify;
    }

    .doc-list .date {
        float: none;
        display: block;
        margin-top: 5px;
    }
}
