/*
Theme Name: Uni Theme
Theme URI: http://example.com/
Author: Veselin Dimitrov
Author URI: http://example.com/
Description: Много проста къстъм тема с една заглавна страница
Version: 1.0
*/

body {
    /* font-family: Arial, sans-serif; */
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 300;
    background: #f7f7f7;
} 

.header-top {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.logo-text {
    font-weight: bold;
    text-decoration: none;
}
.subtitle {
    color: #28a745;
    font-size: 0.9rem;
    margin-left: 10px;
}

.nav-menu {
    background-color: #ffffff;
    padding: 0;
    border: none;
}

.nav-menu .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    text-decoration: none;
}

.nav-menu .nav-link:hover {
    color: #28a745;
}

.language-selector {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.language-selector:hover {
    background-color: #e9ecef;
    color: #495057;
}

.menu-toggle {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.menu-toggle:hover {
    background-color: #e9ecef;
    color: #495057;
}

header .header-logos{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .logo-padagogik {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
}

.autocomplete-suggestions {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 50px;
    /* max-height: 200px; */
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    width: 101%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* padding: 10px; */
    box-sizing: border-box;
    font-size: 14px;
    color: #333;    
}

.resultLink {
    text-decoration: none;
    color: #333;
}

/* Допълнителни стилове за Bootstrap компонентите */
.header-top {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.logo-text {
    font-weight: bold;
    text-decoration: none;
}

.logo-fachportal {
    color: #28a745;
    font-size: 1.8rem;
}

.logo-padagogik {
    color: #fc0000;
    font-size: 1.8rem;
}

.subtitle {
    color: #28a745;
    font-size: 0.9rem;
    margin-left: 10px;
    line-height: 1.2;
}

.nav-menu {
    background-color: #ffffff;
    /* padding: 10px 0;
    border-bottom: 1px solid #e9ecef; */
}

.nav-menu .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: #28a745;
    background-color: #f8f9fa;
}

.language-selector {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.menu-toggle {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.dipf-logo {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dipf-logo:hover {
    color: #495057;
    text-decoration: none;
}

/* Responsive стилове */
@media (max-width: 768px) {
    .logo-fachportal, .logo-padagogik {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-left: 5px;
    }
    
    .nav-menu .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #f8f9fa;
    }
}

/* Стилове за пагинацията */
.pagination {
    margin: 32px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    /* border: 1px solid #dee2e6; */
    /* border-radius: 4px; */
    /* color: #28a745; */
    color: #0d6efd;
    transition: all 0.3s ease;
    border: none;
}

.pagination span:hover {
    color: #0a58ca;
}

.pagination a:hover {
    color: #0a58ca;
    text-decoration: none;
}

.pagination .current {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Bootstrap пагинация стилове */
.pagination .page-link {
    min-height: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    box-sizing: border-box;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #0a58ca;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled span.page-link {
    background-color: #f8f9fa;
}

/* Осигуряваме еднаква височина за всички елементи */
.pagination .page-item .page-link,
.pagination .page-item span.page-link {
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Специфично за страничните бутони */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}


.info-icon {
    color: #6c757d;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.info-icon:hover {
    color: #0d6efd;
}
.info-tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    font-size: 0.875rem;
    color: #212529;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.info-tooltip.show {
    display: block;
}

.result-item {
    display: flex !important;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
    width: 30px;
    flex-shrink: 0;
    z-index: 10;
}

.result-icon {
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1.2rem;
}

.result-icon:hover {
    color: #0d6efd;
}

.result-content {
    flex: 1;
}

.result-content:hover {
    color: #cc0000 !important;
}

.result-item:hover .result-content,
.result-item:hover .result-content * {
    color: #cc0000 !important;
}

/* Keep highlighted text white on red background even on hover */
.result-item:hover .result-content span[style*="background-color: red"],
.result-item .result-content span[style*="background-color: red"] {
    color: white !important;
}

/* Cart icon styles */
.cart-icon {
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.cart-icon:hover i {
    color: #0d6efd !important;
}

.cart-icon .badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add to cart icon specific styles */
.add-to-cart {
    color: #6c757d !important;
}

.add-to-cart:hover {
    color: #495057 !important;
}

.add-to-cart.in-cart {
    background-color: #6c757d !important;
    color: white !important;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.add-to-cart.in-cart:hover {
    background-color: #495057 !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Warenkorb page styles */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cart badge animation */
#cart-count {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container p,
.container span,
.container div {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.simple-template-content .entry-header {
    box-shadow: none;
}

/* Search buttons styling */
#searchButton {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
}

#searchButton:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
}

/* FFB and IBK cards styling */
.row.g-4 .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.row.g-4 .card .card-header {
    border-radius: 0;
}

.row.g-4 a:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}