/* ---------------------------------------------
   WPCozy Search – Frontend Styles
---------------------------------------------- */

.wpc-search-block {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Search form */
.wpc-search-form {
    display: flex;
    gap: 0px;
    align-items: center;
}

.wpc-search-input {
    flex: 1;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px 0px 0px 4px!important;
	min-height: 3.5rem;
}

.wpc-search-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid #0073aa;
    background: #0073aa;
    color: #fff;
    border-radius: 0px 4px 4px 0px !important;
    cursor: pointer;
	min-width: 3.5rem;
	min-height: 3.5rem;
}

.wpc-search-button-icon {
	text-align: center;
	width: 100%;
}

.wpc-search-button:hover {
    background: #005f8d;
}

/* ---------------------------------------------
   Overlay Mode
---------------------------------------------- */

.wpc-search-results-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: none;
    overflow-y: scroll;
    pointer-events: all;
	width: 100%;
}

.wpc-search-results-inner {
    background: #fff;
    max-width: 800px;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
	margin-top: 56px;
	min-height: 40vh;
}

.wpc-search-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------------------------------------------
   Popover Mode
---------------------------------------------- */

.wpc-search-popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

.wpc-search-popover-inner {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
	margin-top: 56px;
	min-height: 40vh;
}

/* ---------------------------------------------
   Results List
---------------------------------------------- */

.wpc-search-results-list {
    margin-top: 1rem;
}

.wpc-search-result-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.wpc-search-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0.25rem;
    border-radius: 4px;
}

.wpc-search-result-link:hover {
    background: #f7f7f7;
}

.wpc-search-result-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.25rem;
}

/* ---------------------------------------------
   Breadcrumbs
---------------------------------------------- */

.wpc-search-breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #666 !important;
}

.wpc-search-breadcrumb {
    color: #0073aa !important;
    text-decoration: none;
}

.wpc-search-breadcrumb:hover {
    text-decoration: underline;
}

.wpc-search-breadcrumb-parent {
    font-weight: bold;
}

.wpc-search-breadcrumb-current {
    font-weight: bold;
}

.wpc-search-breadcrumb-separator {
    margin: 0 0.25rem;
}

/* ---------------------------------------------
   Excerpt
---------------------------------------------- */

.wpc-search-result-excerpt {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.45;
}

/* Highlighting */
.wpc-search-highlight {
    background: yellow;
    padding: 0 2px;
}

/* ---------------------------------------------
   Show More Button
---------------------------------------------- */

.wpc-search-show-more {
    text-align: center;
    margin-top: 1.25rem;
}

.wpc-search-show-more .button,
.wpc-search-show-more-button {
    padding: 0.55rem 1rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpc-search-show-more .button:hover,
.wpc-search-show-more-button:hover {
    background: #005f8d;
}

/* ---------------------------------------------
   Responsive
---------------------------------------------- */

@media (max-width: 480px) {
    .wpc-search-form {
        flex-direction: row;
        align-items: stretch;
		min-height: 3.5rem;
    }

    .wpc-search-button {
        width: auto;
		min-width: 3.5rem;
		min-height: 3.5rem;
        justify-content: center;
		padding: 10px 16px;
    }
}