/* სხეულის სტილები ძებნის დროს */
body.search-active {
    overflow: hidden; /* ბლოკავს ფონური კონტენტის სქროლვას */
}

/* ძებნის ფანჯრის ძირითადი სტილები */
#custom-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* მუქი ფონი გამჭვირვალობით */
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* კონტენტი ზემოთ იქნება */
    padding-top: 50px;
    box-sizing: border-box;
}

/* ანიმაცია: ფანჯრის გახსნა */
#custom-search-overlay.search-open {
    opacity: 1;
    visibility: visible;
}

/* დახურვის ღილაკი */
#close-search-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 100000;
}

/* ძებნის კონტეინერი */
.search-content {
    width: 90%;
    max-width: 800px;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#custom-search-overlay.search-open .search-content {
    transform: translateY(0);
    opacity: 1;
}

/* საძიებო ველი */
.search-field-container {
    display: flex;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

#custom-search-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    padding: 10px 0;
    outline: none;
}

#custom-search-input::placeholder {
    color: #aaa;
}

/* ძებნის ღილაკი (ღილაკი შორთკოდიდან) */
.custom-search-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.search-png-icon {
    width: 24px;
    height: 24px;
    filter: invert(1); /* თუ თქვენი იკონი შავია, თეთრად გადმოაქცევს */
}

/* AJAX შედეგები */
#ajax-search-results {
    margin-top: 30px;
    color: #fff;
    max-height: calc(100vh - 200px); /* სიმაღლის ლიმიტი */
    overflow-y: auto;
}

.loading-message, .no-results h3 {
    text-align: center;
    color: #ccc;
}

.ajax-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.result-item a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.result-item a:hover h4 {
    color: #0073aa; /* WordPress-ის ლურჯი */
}

.result-item h4 {
    font-size: 1.2em;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.result-excerpt {
    color: #aaa;
    font-size: 0.9em;
    margin: 0;
}

.result-type {
    display: inline-block;
    font-size: 0.7em;
    background: #555;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    margin-top: 5px;
}

#custom-search-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 19px;
    padding: 19px 0;
    outline: none;
}

[type=button], [type=submit], button {
    background-color: #ffffff00;
    border: 0px solid #cc336600 !important;
    border-radius: 50px;
    color: #cc336600 !important; /* ეს ტექსტის ფერსაც გამჭვირვალეს ხდის */
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: 10px;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: 50px;
    height: 50px;
    margin-top: 12px;
    cursor: pointer; /* დავამატე, რომ ხელის ფორმა მიიღოს */
}

button.search-icon-btn:hover {
    background-color: #ffffff00;
}

/* სწრაფი ბმულები (თავდაპირველი კონტენტი) */
.quick-links-initial h2 {
    color: #ccc;
    font-size: 1.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-top: 40px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: background 0.2s;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.link-card h3 {
    margin-top: 10px;
    font-size: 1.1em;
}

.link-card p {
    color: #aaa;
    font-size: 0.85em;
}