@import 'base.css';






/* ================================
   Brand & Logo
   ================================ */

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ================================
   Navigation Links
   ================================ */

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.but.active {
    color: var(--primary-color) !important;
}

/* ================================
   Dropdown Menus
   ================================ */

.btn-group .btn {
    margin-top: 3px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.dropdown-item:hover {
    background: rgba(139, 69, 19, 0.05);
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* ================================
   Modern Search Styles
   ================================ */

.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.modern-search {
    width: 50%;
    transition: width 0.7s ease;
}
.modern-search:focus-within {
    width: 100%;
}

.search-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-container:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.search-container.focused {
    box-shadow: var(--shadow-strong);
    transform: translateY(-3px);
}

.search-input {
    border: none;
    background: transparent;
    padding: 12px 50px 12px 20px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
}

.search-input::placeholder {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #6c757d;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.2);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.search-btn.searching {
    animation: searchPulse 1.5s infinite;
}

/* ================================
   Search Results Dropdown
   ================================ */

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Result Item */
.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(139, 69, 19, 0.05);
    padding-right: 25px;
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.result-content h6 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.result-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ================================
   Search States
   ================================ */

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
}

.search-loading {
    padding: 20px;
    text-align: center;
}

.search-loading .spinner {
    width: 30px;
    height: 15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 5px;
}

/* ================================
   Search Suggestions
   ================================ */

.search-suggestions {
    padding: 15px 20px;
    background: rgba(139, 69, 19, 0.02);
    border-bottom: 1px solid #f8f9fa;
}

.search-suggestions h6 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    background: rgba(139, 69, 19, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* ================================
   Search Highlighting
   ================================ */

mark {
    background: linear-gradient(135deg, var(--gold-accent), var(--light-gold));
    color: var(--dark-brown);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ================================
   Animations
   ================================ */

@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 69, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   Logo Section
   ================================ */

.logo {
    background: #f2eee9;
    transition: all 0.3s ease;
}

.logo .navbar-brand figure {
    margin: 0;
}

.logo .navbar-brand figcaption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* ================================
   Navbar Toggler
   ================================ */

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.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(95, 87, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group .btn {
        text-align: right;
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #f0f0f0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        padding: 1rem 0 !important;
    }

    .logo .row {
        flex-direction: column;
    }

    .logo .col-lg-9,
    .logo .col-3 {
        width: 100%;
        text-align: center;
    }

    .modern-search {
        max-width: 100%;
        margin-top: 1rem;
    }

    .search-container {
        border-radius: 25px;
    }

    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 0.9rem;
    }

    .search-btn {
        width: 35px;
        height: 35px;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group .btn {
        text-align: start;
        justify-content: start;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem;
        margin: 0;
        font-size: 0.9rem;
    }

    .logo .fs-6 {
        font-size: 0.85rem !important;
    }

    .search-result-item {
        padding: 12px 15px;
    }

    .result-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .result-content h6 {
        font-size: 0.9rem;
    }

    .result-content p {
        font-size: 0.8rem;
    }
}


/* ================================
   Navbar Base Styles - Fixed
   ================================ */


._nav {
    background-color: rgba(255, 255, 255, 0.95) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
}

.navonscroll {
        position: sticky !important;
        top: 0 !important;
        z-index: 1050 !important;
        background-color: #fff !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        font-size: large !important;
    }

.logo-section{
background: #f2eee9;
    height: 165px;
    display: flex;
    align-items: center;
}
.but{
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}
