﻿/* wwwroot/css/showcase/showcase-stilovi.css */
/* Zajednički stilovi za natuknice, liste i tekst - za sve showcase teme */

/* CSS Varijable za boje - override-aju se po temama */
:root {
    --header-bg-start: #1F3D0F;
    --header-bg-mid: #2B6B40;
    --header-bg-end: #4A7729;
    --header-text: #FFFFFF;
    --header-text-hover: #E8F3E0;
}

/* Tekstualne klase */
.Bold {
    font-weight: bold;
}

.Italic {
    font-style: italic;
}

.Prvi-odlomak {
    font-size: 1.2em;
    font-family: 'A Plantin', Georgia, serif;
}

.TEXT-s-natuknicom,
.TEXT,
.Text {
    font-size: 1.2em;
    font-family: 'A Plantin', Georgia, serif;
}

    /* Linkovi unutar clanak sadržaja */
    .clanak-showcase-content a,
    .TEXT a,
    .Text a,
    .TEXT-s-natuknicom a,
    .Prvi-odlomak a,
    .static-content a {
        color: #DB694E;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .clanak-showcase-content a:hover,
        .TEXT a:hover,
        .Text a:hover,
        .TEXT-s-natuknicom a:hover,
        .Prvi-odlomak a:hover,
        .static-content a:hover {
            color: #4A7729;
        }

/* Statički sadržaj - crno-bijeli stil */
.static-content,
.static-content h1,
.static-content h2,
.static-content h3,
.static-content h4,
.static-content h5,
.static-content h6 {
    color: #212529;
}

.static-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important; 
    line-height: 1.8;
    /*max-width: 750px;*/
    margin: 0 auto;
    /*text-align: left !important;*/
}

    .static-content h1,
    .static-content h2,
    .static-content h3,
    .static-content h4,
    .static-content h5,
    .static-content h6,
    .static-content p,
    .static-content ul,
    .static-content ol,
    .static-content li,
    .static-content div,
    .static-content span {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
        /*text-align: left !important;*/
    }

    .static-content h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 0.5rem;
    }

    .static-content h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .static-content h3,
    .static-content h4 {
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .static-content p {
        margin-bottom: 1rem;
        text-align: justify;
    }

    .static-content ul,
    .static-content ol {
        margin: 1rem 0;
        padding-left: 2rem;
    }

    .static-content li {
        margin-bottom: 0.5rem;
    }

    .static-content strong,
    .static-content b {
        font-weight: 700;
        color: #212529;
    }

    .static-content em,
    .static-content i {
        font-style: italic;
    }

.NATUKNICA {
    font-weight: bold;
    font-size: 1.3em;
    font-family: 'A Plantin', Georgia, serif;
    margin-bottom: 0.5rem;
}

.NATUKNICA-manje {
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'A Plantin', Georgia, serif;
}

/* Literatura */
.Literatura,
.LIT-space-before,
.LIT {
    font-size: 0.9em;
    line-height: 1.6;
}

.LIT-space-before {
    margin-top: 1rem;
}

.LIT {
    font-weight: bold;
}

/* Autori */
.AUTORI, .Autori {
    font-size: 0.9em;
    font-variant-caps: small-caps;
    letter-spacing: 0.05em;
}

/* Superscript */
.CharOverride-2 {
    vertical-align: super;
    font-size: 0.83em;
}

/* Font varijante */
.zrcola {
    font-family: 'zrcola', monospace;
}

.A-Plantin-italic {
    font-family: 'A Plantin', Georgia, serif;
    font-style: italic;
}

.A-Plantin {
    font-family: 'A Plantin', Georgia, serif;
}

/* Liste */
.clanak-showcase ul,
.clanak-showcase ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

    .clanak-showcase ul li,
    .clanak-showcase ol li {
        margin-bottom: 0.5rem;
        font-family: 'A Plantin', Georgia, serif;
    }

/* Citati */
.clanak-showcase blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-green, #4A7729);
    font-style: italic;
    background-color: rgba(74, 119, 41, 0.05);
}

/* Tabele */
.clanak-showcase table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

    .clanak-showcase table th,
    .clanak-showcase table td {
        padding: 0.75rem;
        border: 1px solid var(--border-color, #DFE6DC);
        text-align: left;
    }

    .clanak-showcase table th {
        background-color: var(--primary-green, #4A7729);
        color: white;
        font-weight: bold;
    }

    .clanak-showcase table tr:nth-child(even) {
        background-color: rgba(74, 119, 41, 0.05);
    }

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .gallery-item img {
        transition: all 0.3s ease;
    }

    .gallery-item:hover img {
        filter: brightness(1.1);
    }

/* Modal za galeriju */
.modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Showcase cards */
.showcase-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

    .showcase-card:hover {
        transform: translateY(-5px);
    }

    .showcase-card .card-img-top {
        transition: all 0.3s ease;
    }

    .showcase-card:hover .card-img-top {
        transform: scale(1.1);
    }

/* Stat boxes sa ikonama */
.stat-box i {
    transition: all 0.3s ease;
}

.stat-box:hover i {
    transform: scale(1.2);
}

/* Dodaj na kraj showcase-stilovi.css */

/* Carousel stilovi */
.showcase-carousel {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

    .showcase-carousel .carousel-image {
        height: 600px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .showcase-carousel .carousel-item a {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .showcase-carousel .carousel-item:hover .carousel-image {
        transform: scale(1.05);
    }

    .showcase-carousel .carousel-caption {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem 1rem 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

        .showcase-carousel .carousel-caption h5 {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .showcase-carousel .carousel-caption p {
            font-size: 1.1rem;
            margin-bottom: 0;
        }

    .showcase-carousel .carousel-control-prev-icon,
    .showcase-carousel .carousel-control-next-icon {
        background-color: rgba(74, 119, 41, 0.8);
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        padding: 0.5rem;
    }

    .showcase-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
    .showcase-carousel .carousel-control-next:hover .carousel-control-next-icon {
        background-color: rgba(74, 119, 41, 1);
    }

    .showcase-carousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid rgba(74, 119, 41, 0.8);
    }

        .showcase-carousel .carousel-indicators button.active {
            background-color: rgba(74, 119, 41, 1);
        }

/* Carousel sa smanjenim natpisima */
.carousel-caption-small {
    padding: 0.5rem 1rem;
}

.carousel-title {
    font-size: 1rem !important;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-legend {
    display: none !important;
}

.carousel-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .carousel-link:hover .carousel-caption-small {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }

/* Showcase kartice sa gumbom na dnu */
.showcase-card {
    display: flex;
    flex-direction: column;
}

    .showcase-card .card-body {
        display: flex;
        flex-direction: column;
        padding: 1rem 1.25rem; /* DODANO - padding oko teksta */
    }

    .showcase-card .card-title {
        margin-bottom: 0.75rem; /* DODANO - razmak ispod naslova */
    }

    .showcase-card .card-text {
        flex-grow: 1;
        margin-bottom: 0.75rem; /* DODANO - razmak ispod opisa */
    }

    .showcase-card .btn {
        margin-top: auto; /* Gura gumb na dno */
    }

    /* Dodatna sigurnost - sprječavanje pomaka pri hover-u */
    .showcase-card:hover .card-body {
        padding: 1rem 1.25rem; /* Zadrži isti padding na hover */
    }

    .showcase-card:hover .card-title,
    .showcase-card:hover .card-text {
        transform: none; /* Sprječava pomak teksta */
    }

/* Formatiranje HTML sadržaja u preview tekstu */
.card-text b,
.card-text strong {
    font-weight: 700;
    color: var(--primary-green, #4A7729);
}

.card-text i,
.card-text em {
    font-style: italic;
}

.search-result-item b,
.search-result-item strong {
    font-weight: 700;
    color: var(--primary-green, #4A7729);
}

.search-result-item i,
.search-result-item em {
    font-style: italic;
}

/* Sprječavanje loma layout-a zbog dugih riječi */
.card-text,
.search-result-item .text-muted {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive - manje fontove na mobilnim uređajima */
@media (max-width: 768px) {
    .showcase-carousel .carousel-image {
        height: 400px;
    }

    .showcase-carousel .carousel-caption h5 {
        font-size: 1.3rem;
    }

    .showcase-carousel .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-title {
        font-size: 0.9rem !important;
    }

    .carousel-legend {
        font-size: 0.9rem !important;
    }
}

:root {
    --showcase-article-content-width: 750px;
    --showcase-sidebar-width: 220px;
    --showcase-article-gap: 1rem;
}

.showcase-article-shell {
    width: min(100% - 1rem, 1320px);
    margin-inline: auto;
}

.showcase-article-shell--single {
    width: min(100% - 1rem, calc(var(--showcase-article-content-width) + 8rem));
}

.clanak-showcase {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

.clanak-showcase-content {
    width: min(100%, var(--showcase-article-content-width));
    margin-inline: auto;
}

.showcase-article-main {
    flex: 1 1 calc(100% - var(--showcase-sidebar-width) - var(--showcase-article-gap));
    max-width: calc(100% - var(--showcase-sidebar-width) - var(--showcase-article-gap));
    min-width: 0;
}

.showcase-article-main--full {
    flex: 1 1 100%;
    max-width: 100%;
}

/* Showcase članak - raspored sa strane */
.showcase-article-layout {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: var(--showcase-article-gap);
    width: 100%;
}

.showcase-article-layout--single {
    display: block;
}

.showcase-article-sidebar {
    flex: 0 0 var(--showcase-sidebar-width);
    width: var(--showcase-sidebar-width);
    align-self: flex-start;
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.showcase-main-gallery {
    align-items: start;
}

.showcase-main-gallery-item {
    display: flex;
    flex-direction: column;
}

.showcase-gallery-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.showcase-gallery-image {
    cursor: pointer;
}

.showcase-gallery-caption {
    line-height: 1.5;
}

.article-side-gallery,
.uputnice-panel {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.showcase-sidebar-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.side-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.side-image-item {
    margin: 0;
}

.showcase-gallery-thumbnail-card {
    overflow: hidden;
}

.showcase-gallery-thumbnail {
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.side-gallery-caption {
    font-size: 0.7rem;
    line-height: 1.35;
}

.logo-footer{
    max-height:60px;
}

@media (max-width: 820px) {
    .showcase-article-layout {
        display: block;
    }

    .showcase-article-sidebar {
        position: static;
        width: 100%;
        margin-top: 1.5rem;
    }

    .showcase-article-shell {
        width: min(100% - 1.5rem, 980px);
    }

    .showcase-article-main {
        max-width: 100%;
    }
}

.uputnica-box {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, color 0.2s ease;
}

    .uputnica-box:hover {
        transform: translateX(4px);
        color: inherit;
    }

.uputnica-box-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    object-fit: cover;
}

.uputnica-box:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.uputnica-box:first-of-type {
    padding-top: 0;
}

.uputnica-box-content {
    min-width: 0;
}

.uputnica-box-title {
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}

.uputnica-box-text {
    line-height: 1.45;
}

@media (max-width: 768px) {
    .article-side-gallery,
    .uputnice-panel {
        padding: 1rem;
    }

    .side-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .uputnica-box-image {
        width: 60%;
        aspect-ratio: 1;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .showcase-article-shell {
        width: min(100% - 1rem, 100%);
    }

    .side-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Static page styles - for Impresum and similar pages */
.static-page-shell {
    width: min(100% - 1rem, 1320px);
    margin-inline: auto;
}

.static-page-shell--narrow {
    width: min(100% - 1rem, calc(var(--showcase-article-content-width) + 8rem));
}

.static-page {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

.static-page-content {
    width: min(100%, var(--showcase-article-content-width));
    margin-inline: auto;
}

.static-page h1,
.static-page h2,
.static-page h3,
.static-page h4,
.static-page h5,
.static-page h6,
.static-page p,
.static-page ul,
.static-page ol,
.static-page li {
    font-family: inherit;
}

.static-page {
    color: #212529;
    line-height: 1.8;
}

.static-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.static-page h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-page h3,
.static-page h4 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.static-page p {
    margin-bottom: 1rem;
}

.static-page ul,
.static-page ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.static-page li {
    margin-bottom: 0.5rem;
}

.static-page a {
    color: #DB694E;
    text-decoration: none;
    transition: all 0.2s ease;
}

.static-page a:hover {
    color: #4A7729;
}

@media (max-width: 820px) {
    .static-page-shell {
        width: min(100% - 1.5rem, 980px);
    }
}

@media (max-width: 576px) {
    .static-page-shell {
        width: min(100% - 1rem, 100%);
    }
}

.showcase-footer {
    background: linear-gradient(135deg, var(--header-bg-start, #1F3D0F), var(--header-bg-mid, #2B6B40));
    color: white;
}

.showcase-footer h6 {
    color: #E8F3E0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-contact-info {
    flex: 1;
    min-width: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #E8F3E0;
}

.showcase-footer .bi {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-logo {
        width: 50px;
        height: 50px;
    }
}