* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background-color: #def2f1;
    display: flex;
    flex-direction: column;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* glava */
.head {
    background-color: #17252a;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    max-height: 50px;
    width: auto;
}

.topMenu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.topMenu a {
    text-decoration: none;
}

button {
    background-color: #3aafa9;
    color: #feffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover {
    background-color: #2b7a78;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

/* sredina */
.middle {
    flex: 1;
    padding: 40px 30px;
    background-color: #def2f1;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #feffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 40px;
    align-items: center;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.content-image img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.content h1 {
    color: #17252a;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.content p {
    color: #2b7a78;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* noga */
.foot {
    background-color: #2b7a78;
    color: #feffff;
    padding: 40px 30px;
    border-top: 5px solid #3aafa9;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #feffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #def2f1;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: #3aafa9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #feffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3aafa9;
    padding-top: 20px;
    color: #def2f1;
    font-size: 0.9rem;
}

/* res */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-text, .content-image {
        flex: 1;
        width: 100%;
    }
    .head {
        flex-direction: column;
        gap: 15px;
    }

    .topMenu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content {
        padding: 20px;
    }

    .content h1 {
        font-size: 1.8rem;
    }
}

/* Admin pano */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6b6b;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 5px;
    z-index: 999;
}

.admin-toggle:hover {
    background-color: #ee5a52;
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.admin-container {
    background-color: #feffff;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.admin-container h2 {
    color: #17252a;
    margin-bottom: 30px;
    font-size: 2rem;
}

.admin-container h3 {
    color: #2b7a78;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.close-admin {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff6b6b;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-admin:hover {
    background-color: #ee5a52;
}

.admin-form {
    border: 2px solid #3aafa9;
    padding: 25px;
    border-radius: 8px;
    background-color: #f5fffe;
    margin-bottom: 30px;
}

.admin-form label {
    display: block;
    color: #17252a;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #3aafa9;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: #17252a;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #2b7a78;
    box-shadow: 0 0 5px rgba(58, 175, 169, 0.3);
}

.admin-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn-save {
    background-color: #3aafa9;
    color: #feffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.btn-save:hover {
    background-color: #2b7a78;
}

.btn-cancel {
    background-color: #ff6b6b;
    color: #feffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.btn-cancel:hover {
    background-color: #ee5a52;
}

.posts-list {
    border: 2px solid #2b7a78;
    padding: 25px;
    border-radius: 8px;
    background-color: #f5fffe;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #feffff;
    border: 1px solid #def2f1;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-item-info {
    flex: 1;
}

.post-item h4 {
    color: #17252a;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.post-item p {
    color: #2b7a78;
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-item-actions {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.btn-edit {
    background-color: #3aafa9;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background-color: #2b7a78;
}

.btn-delete {
    background-color: #ff6b6b;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background-color: #ee5a52;
}

.btn-move {
    background-color: #e0e0e0;
    color: #17252a;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-move:hover {
    background-color: #c8c8c8;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.post-card {
    background-color: #feffff;
    border: 1px solid #def2f1;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-card h2 {
    color: #17252a;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.post-card p {
    color: #2b7a78;
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-card-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.post-card-images img,
.preview-image {
    width: 100%;
    max-width: 180px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.note {
    color: #2b7a78;
    font-size: 0.95rem;
    margin-top: 8px;
}

    

    .post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-item-actions {
        width: 100%;
        margin-top: 15px;
        margin-left: 0;
    }

    .btn-edit, .btn-delete {
        flex: 1;
    }

    .admin-form label {
        margin-top: 12px;
    }

/* Skrij javni admin gumb */
.admin-toggle {
    display: none !important;
}

/* Začasni tekstovni logo */
.site-logo-text {
    font-size: 34px;
    font-weight: 800;
    color: #f15a24;
    letter-spacing: 1px;
}

/* Logotip v glavi strani */
.site-logo-img {
    height: 78px;
    width: auto;
    display: block;
}

/* Prikaz samo zgornjega dela pokončnega logotipa v glavi */
.site-logo-img {
    width: 180px !important;
    height: 75px !important;
    object-fit: cover !important;
    object-position: top center !important;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

/* Logo v vsebinskem delu */
.post-card img {
    max-height: 260px;
    width: auto;
    object-fit: contain;
}
