:root {
    --background-color: #fff;
    --surface-color: #ffffff;
    --primary-color: #ffd6e8;
    --accent-color: #b5ead7;
    --text-color: #2e2e2e;
    --heading-color: #2e2e2e;
    --link-color: #dab138;
    --muted-text-color: #666666;
    --border-color: #cccccc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-radius: 1.25rem;
    --logo-url: url("/site_data/staticata/static/logo.jpg")
}

html[data-theme="dark"] {

    --background-color: rgb(9,10,12);
    --surface-color: #222222;
    --primary-color: #2a2430;
    --accent-color: #2f5d50;
    --text-color: #a8a293;
    --heading-color: #dab138;
    --muted-text-color: #7c735f;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --logo-url: url("/site_data/staticata/static/logo_dark.jpg")
}

body {
    margin: 0;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
    color: var(--heading-color);
  font-weight: 800;
  font-style: normal;
}

.site-header {
    background-color: var(--background-color);
    padding: 1rem 0;
}

.logo {
    max-width: 100%;
}
.logo > img {
    display: block;
    max-width: 100%;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.site-title a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5em;
    font-weight: bold;
}

.login-button,
.theme-toggle,
.read-more,
.back-link {
    font-weight: bold;
    color: var(--text-color);
}
.read-more,.back-link {
    color: var(--link-color);
}


.login-button {
    text-decoration: none;
    background-color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

.theme-toggle {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; /* razmak između elemenata */
}

/* Srednji ekrani (tablet) */
@media (min-width: 600px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        max-width: 600px;
    }
}



.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}


.post-card,.hero {
    background-color: var(--surface-color);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px var(--shadow-color);
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.hero {

    margin-bottom: 1rem;
}

.post-card img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
}

.read-more {
    display: inline-block;
    text-decoration: none;
    margin-top: auto;
    font-weight: bold;
}

.post-detail img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    margin-bottom: 1rem;
}

.post-date {
    font-size: 0.8em;
    color: var(--muted-text-color);
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    margin: 1rem 0;
    text-decoration: none;
}

.back-link.bottom {
    margin-top: 2rem;
    display: block;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background-color: var(--background-color);
}

.login-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px var(--shadow-color);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5em;
    color: var(--text-color);
}

.login-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: var(--text-color);
}

.login-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1em;
    background: var(--surface-color);
    color: var(--text-color);
}

.login-form button {
    background-color: var(--accent-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
    font-size: 1em;
}
