/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 3 de ago. de 2026, 22:18:36
    Author     : glaub
*/

.header-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.header-search {
    position: relative;
    width: 100%;
}

.header-search > .bi-search {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    z-index: 2;
    color: #94a3b8;
    pointer-events: none;
}

.header-search .form-control {
    width: 100%;
    min-height: 46px;
    padding-left: 45px;
    padding-right: 45px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.header-search .form-control::placeholder {
    color: #64748b;
}

.header-search .form-control:focus {
    border-color: rgba(124, 58, 237, 0.75);
    background: #0f172a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.header-search-clear {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    cursor: pointer;
}

.header-search-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1080;
    max-height: 430px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
}

.header-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.header-search-result:hover,
.header-search-result.active {
    background: rgba(124, 58, 237, 0.15);
    color: #fff;
}

.header-search-result-image {
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    overflow: hidden;
    border-radius: 9px;
    background: #1e293b;
}

.header-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-search-result-content {
    min-width: 0;
    flex: 1;
}

.header-search-result-title {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-result-original {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.73rem;
}

.header-search-result-meta i {
    color: #a78bfa;
}

.header-search-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 80px;
    padding: 18px;
    color: #94a3b8;
    font-size: 0.88rem;
    text-align: center;
}

.header-search-status i {
    color: #a78bfa;
    font-size: 1.1rem;
}

.header-search-footer {
    display: block;
    margin-top: 7px;
    padding: 11px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #a78bfa;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.header-search-footer:hover {
    color: #c4b5fd;
}

@media (max-width: 991.98px) {
    .header-search-wrapper {
        max-width: none;
    }

    .header-search-results {
        position: fixed;
        top: auto;
        right: 12px;
        left: 12px;
        max-height: 65vh;
    }
}

.site-nav-dropdown {
    position: relative;
}

.site-nav-dropdown .site-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav-dropdown .dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.site-nav-dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.site-blog-dropdown-menu {
    min-width: 230px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.site-blog-dropdown-menu::before {
    position: absolute;
    top: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    background: #0f172a;
    content: "";
    transform: rotate(45deg);
}

.site-blog-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.site-blog-dropdown-item i {
    width: 20px;
    color: #a78bfa;
    font-size: 1rem;
    text-align: center;
}

.site-blog-dropdown-item:hover,
.site-blog-dropdown-item:focus,
.site-blog-dropdown-item.active {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.18);
    transform: translateX(2px);
}

.site-blog-dropdown-menu .dropdown-divider {
    margin: 6px 4px;
    border-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 991.98px) {
    .site-nav-dropdown {
        width: 100%;
    }

    .site-nav-dropdown .site-nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .site-blog-dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 7px;
        transform: none !important;
        box-shadow: none;
    }

    .site-blog-dropdown-menu::before {
        display: none;
    }
}