/*
Theme Name: Totaline Theme
Theme URI:  https://openit.gr
Author:     OpenIT
Author URI: https://openit.gr
Description: Custom theme for Totaline site
Version:    1.0
Text Domain: totaline_theme
*/

/* ------------------------------
   GLOBAL STYLES
------------------------------ */
body {
    font-family: 'Noto Sans', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    font-family: 'Noto Sans', 'Inter', sans-serif;
}

:root {
    --mega-offset: 121px !important;
}

.site-header.scrolled #searchToggle,
.site-header.scrolled #searchToggle i {
    color: #fff !important;
}

#searchToggle {
    position: relative;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
}

#searchToggle img,
#searchToggle i {
    display: block;
    width: 22px;
    height: 22px;
}

#searchToggle i {
    display: block;
    width: 24px;
    height: 24px;
}

/* ------------------------------
   SEARCH CONTAINER (BLUR)
------------------------------ */
.search-container {
    position: absolute;
    top: 125px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1500;
    border-radius: 15px;
}

.search-container.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container form {
    display: flex;
    width: 65%;
    max-width: 700px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-container input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    border: none;
    background: transparent;
    color: #283583;
}

.search-container input[type="search"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
}

.search-container button {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--header-link-color, #000);
    cursor: pointer;
    font-size: 1.3rem;
    transition: opacity 0.3s ease;
}

.search-container button:hover {
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    #searchToggle {
        display: none !important;
    }

    #searchToggle,
    #searchToggle i {
        color: #fff !important;
    }

    .search-container {
        position: fixed;
        top: 150px;
        height: auto;
        padding: 12px 0;
        background: rgb(255, 255, 255);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
    }

    .search-container form {
        width: 90%;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
    }

    .search-container input[type="search"] {
        background: #fff;
        border-radius: 6px 0 0 6px;
        font-size: 1rem;
        padding: 10px 15px;
    }

    .search-container button {
        color: #111;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    #serchToggle {
        margin-right: 6px;
    }
}

/* Mobile search μέσα στο burger */
.mobile-search-wrapper form {
    display: flex;
    align-items: center;
}

.mobile-search-wrapper input[type="search"] {
    font-size: 0.95rem;
}

.btn-primary,
.btn-primary:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    height: 36px !important;
}