﻿/* Cookie consent banner styles */
:root {
    --brand-red: #CC0000;
    --brand-red-hover: #990000;
    --brand-blue: #003399;
    --brand-blue-hover: #3366CC;
    --text-dark: #000000;
    --text-muted: #666666;
    --border-light: #CCCCCC;
    --bg-light: #FFFFFF;
    --warning-bg: #FFFFCC;
    --warning-border: #FFCC99;
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid #e5e5e5;
    padding: 0.75rem 0;
    z-index: 2000;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.05);
}

.cookie-consent-inner {
    gap: 0.75rem;
}

.cookie-consent-text strong {
    display: block;
    color: var(--brand-red);
}

.cookie-consent-text a {
    color: var(--brand-red);
    text-decoration: none;
}

.cookie-consent-btn {
    min-width: 120px;
}

/* Ensure links inside izdanje entries match brand red and hover gray */
.izdanje a, .content a, .footer a {
    color: var(--brand-red);
    text-decoration: none;
}
    .content a:hover,
    .content a:focus,
    .footer a:hover,
    .footer a:focus,
    .izdanje a:hover,
    .izdanje a:focus {
        color: var(--brand-blue);
        text-decoration: none;
    }

/* Noscript banner styling */
.cookie-consent-noscript {
    position: relative;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: 0.5rem 0;
}

h1, .text-bibliografija {
    color: var(--brand-red);
}

h1, h2 {
    display: inline-block;
}

h2, h3, h4 {
    color: var(--brand-blue);
}

/* Reduce header height */
header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 1.1rem;
}

.nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Reduce footer height */
.footer {
    padding: 0.45rem 0 !important;
    margin-top: 1rem !important;
    font-size: 0.9rem;
    line-height: 1.3rem !important; /* Reduced from 1.3 to 1 for compact height */
}

.footer .container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Make footer text more compact */
.footer,
.footer a {
    line-height: 1.3 !important; /* Minimal line height */
}

/* Ensure proper spacing without overlap */
main {
    padding-bottom: 1.5rem;
    min-height: 300px;
}

body > .container {
    padding-bottom: 2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--brand-blue-hover);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    header .navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
    
    .footer {
        padding: 0.3rem 0 !important;
        font-size: 0.85rem;
        line-height: 1 !important;
    }
    
    .footer .container {
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
    }
    
    main {
        padding-bottom: 2rem;
    }
    
    body > .container {
        padding-bottom: 2.5rem;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

