/* wwwroot/css/showcase-header.css */
/* Stilovi za bolji kontrast u showcase headeru */

/* Sticky footer */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.showcase-footer {
    flex-shrink: 0;
}

.showcase-navbar {
    background: linear-gradient(135deg, #1F3D0F 0%, #2B6B40 50%, #4A7729 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
}

.showcase-navbar .navbar-brand {
    color: #FFFFFF !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.showcase-navbar .navbar-brand:hover {
    color: #E8F3E0 !important;
    transform: scale(1.02);
}

.showcase-navbar .brand-text {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.showcase-navbar .brand-text strong {
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.showcase-nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.showcase-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #E8F3E0 !important;
    transform: translateY(-2px);
}

.showcase-nav-link i {
    margin-right: 5px;
    font-size: 1.1rem;
}

.tema-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tema-badge strong {
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* Pretraživanje */
.showcase-search .search-icon {
    background-color: #2B6B40;
    color: #FFFFFF;
    border: 2px solid #2B6B40;
    font-size: 1.1rem;
}

.showcase-search .search-input {
    border: 2px solid #4A7729;
    border-left: none;
    border-right: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

.showcase-search .search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #2B6B40;
}

.showcase-search .search-button {
    background-color: #4A7729;
    color: #FFFFFF;
    border: 2px solid #4A7729;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.showcase-search .search-button:hover {
    background-color: #2B6B40;
    border-color: #2B6B40;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Footer */
.showcase-footer {
    background: linear-gradient(135deg, #1F3D0F 0%, #2B6B40 100%);
    color: #FFFFFF;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.showcase-footer strong {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.showcase-footer .footer-link {
    color: #E8F3E0 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
}

.showcase-footer .footer-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-navbar .navbar-brand {
        font-size: 1rem;
    }

    .showcase-nav-link {
        padding: 0.6rem 0.5rem !important;
        margin: 0.2rem 0;
    }

    .tema-badge {
        margin-top: 0.5rem;
        display: inline-block;
    }

    .showcase-search .search-input {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .showcase-search .search-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .showcase-search .search-icon {
        padding: 0.5rem 0.75rem;
    }
}

/* Navbar toggler za bolji kontrast */
.showcase-navbar .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.showcase-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.showcase-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Back to Top gumb */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A7729 0%, #2B6B40 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #2B6B40 0%, #1F3D0F 100%);
    transform: translateY(0) scale(1.1);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Autocomplete suggestions */
#autocompleteSuggestions {
    margin-top: 2px;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f0f0f0 !important;
}

.suggestion-item.active {
    background-color: #e6f3ff !important;
    border-left: 3px solid #4A7729;
}

.suggestion-item:first-child {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

