/* =========================================
   NOYAN INDUSTRIAL PLATFORM
   Search Interface - Version 0.2.0
========================================= */

.noyan-ip-search {
    --nip-dark: #111827;
    --nip-navy: #0B1220;
    --nip-orange: #F59E0B;
    --nip-orange-dark: #D97706;
    --nip-text: #273449;
    --nip-muted: #64748B;
    --nip-border: #E2E8F0;

    width: 100%;
    max-width: 1200px;
    margin: 35px auto 70px;
    padding: 0 20px;
    color: var(--nip-text);
    direction: rtl;
    box-sizing: border-box;
}

.noyan-ip-search *,
.noyan-ip-search *::before,
.noyan-ip-search *::after {
    box-sizing: border-box;
}

/* Hero */

.noyan-ip-search__hero {
    position: relative;
    overflow: hidden;
    padding: 55px 35px 38px;
    margin-bottom: 35px;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(245, 158, 11, 0.13),
            transparent 35%
        ),
        linear-gradient(135deg, #0B1220, #172338);
    text-align: center;
    color: #fff;
}

.noyan-ip-search__eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--nip-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.noyan-ip-search__heading {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.7;
}

.noyan-ip-search__description {
    max-width: 700px;
    margin: 0 auto 28px;
    color: #CBD5E1;
    font-size: 14px;
    line-height: 2;
}

/* Search form */

.noyan-ip-search__form {
    max-width: 850px;
    margin: 0 auto;
}

.noyan-ip-search__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    background: #fff;
}

.noyan-ip-search__search-icon {
    padding-right: 13px;
    color: var(--nip-orange-dark);
    font-size: 30px;
    line-height: 1;
}

.noyan-ip-search__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 10px 8px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: var(--nip-dark) !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
}

.noyan-ip-search__input::placeholder {
    color: #94A3B8;
}

.noyan-ip-search__button {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 49px;
    padding: 10px 22px;
    border: 0;
    border-radius: 9px;
    background: var(--nip-orange-dark);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.noyan-ip-search__button:hover {
    background: #B45309;
    transform: translateY(-1px);
}

/* Filters */

.noyan-ip-search__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    color: #CBD5E1;
    font-size: 13px;
}

.noyan-ip-search__filters label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.noyan-ip-search__filters input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--nip-orange);
}

/* Suggestions */

.noyan-ip-search__suggestions {
    padding: 25px;
    border: 1px solid var(--nip-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.noyan-ip-search__suggestions > span {
    display: block;
    margin-bottom: 17px;
    color: var(--nip-muted);
    font-size: 13px;
}

.noyan-ip-search__tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.noyan-ip-search__tags span {
    padding: 9px 16px;
    border: 1px solid var(--nip-border);
    border-radius: 30px;
    background: #F8FAFC;
    color: var(--nip-text);
    font-size: 12px;
}

/* Results header */

.noyan-ip-search__results {
    margin-top: 35px;
}

.noyan-ip-search__results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nip-border);
}

.noyan-ip-search__results-label {
    color: var(--nip-orange-dark);
    font-size: 12px;
    font-weight: 800;
}

.noyan-ip-search__results-head h2 {
    margin: 7px 0 0;
    color: var(--nip-dark);
    font-size: 21px;
    font-weight: 800;
}

.noyan-ip-search__count {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 30px;
    background: #FFF7ED;
    color: #9A3412;
    font-size: 12px;
    font-weight: 700;
}

/* Result cards */

.noyan-ip-search__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
}

.noyan-ip-search__card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--nip-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.noyan-ip-search__card:hover {
    border-color: #F59E0B;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    transform: translateY(-3px);
}

.noyan-ip-search__image {
    display: flex;
    flex: 0 0 145px;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    overflow: hidden;
    background: #F1F5F9;
    text-decoration: none;
}

.noyan-ip-search__image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    padding: 10px;
}

.noyan-ip-search__image-placeholder {
    padding: 15px;
    color: #94A3B8;
    font-size: 12px;
    text-align: center;
}

.noyan-ip-search__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 19px;
}

.noyan-ip-search__type {
    display: inline-block;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #FFF7ED;
    color: #B45309;
    font-size: 11px;
    font-weight: 800;
}

.noyan-ip-search__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
}

.noyan-ip-search__title a {
    color: var(--nip-dark);
    text-decoration: none;
}

.noyan-ip-search__title a:hover {
    color: var(--nip-orange-dark);
}

.noyan-ip-search__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-bottom: 12px;
    color: var(--nip-muted);
    font-size: 11px;
    line-height: 1.8;
}

.noyan-ip-search__meta strong {
    color: var(--nip-text);
}

.noyan-ip-search__excerpt {
    margin: 0 0 15px;
    color: var(--nip-muted);
    font-size: 12px;
    line-height: 2;
}

.noyan-ip-search__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--nip-orange-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.noyan-ip-search__more:hover {
    color: #92400E;
}

/* Empty state and notices */

.noyan-ip-search__empty {
    padding: 45px 20px;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    background: #F8FAFC;
    text-align: center;
}

.noyan-ip-search__empty h3 {
    margin: 0 0 10px;
    color: var(--nip-dark);
    font-size: 18px;
}

.noyan-ip-search__empty p,
.noyan-ip-search__notice {
    color: var(--nip-muted);
    font-size: 13px;
    line-height: 2;
}

.noyan-ip-search__notice {
    padding: 18px;
    border-radius: 10px;
    background: #FFF7ED;
}

/* Accessibility */

.noyan-ip-search a:focus-visible,
.noyan-ip-search button:focus-visible,
.noyan-ip-search input:focus-visible {
    outline: 3px solid rgba(245, 158, 11, .55) !important;
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 900px) {

    .noyan-ip-search__list {
        grid-template-columns: 1fr;
    }

    .noyan-ip-search__hero {
        padding: 42px 25px 32px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .noyan-ip-search {
        margin: 20px auto 45px;
        padding: 0 12px;
    }

    .noyan-ip-search__hero {
        padding: 32px 17px 25px;
        border-radius: 13px;
    }

    .noyan-ip-search__heading {
        font-size: 22px;
        line-height: 1.8;
    }

    .noyan-ip-search__description {
        font-size: 12px;
    }

    .noyan-ip-search__input-wrap {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .noyan-ip-search__search-icon {
        display: none;
    }

    .noyan-ip-search__input {
        flex: 1 1 100%;
        height: 45px;
        padding: 8px 12px;
    }

    .noyan-ip-search__button {
        width: 100%;
        min-height: 45px;
    }

    .noyan-ip-search__filters {
        justify-content: flex-start;
        gap: 13px;
        font-size: 11px;
    }

    .noyan-ip-search__results-head {
        align-items: flex-start;
    }

    .noyan-ip-search__results-head h2 {
        font-size: 16px;
    }

    .noyan-ip-search__card {
        flex-direction: column;
    }

    .noyan-ip-search__image {
        flex-basis: auto;
        min-height: 170px;
    }

    .noyan-ip-search__image img {
        height: 170px;
    }

    .noyan-ip-search__card-body {
        padding: 16px;
    }

}
/* =========================================
   NOYAN IP - RESULTS UI REFINEMENT
   Version 0.2.1
========================================= */

/* Results heading - protect against theme overrides */

.noyan-ip-search .noyan-ip-search__results-head h2 {
    margin: 7px 0 0 !important;
    color: #111827 !important;
    font-family: inherit !important;
    font-size: clamp(19px, 2vw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
}
/* Result cards refinement */

.noyan-ip-search .noyan-ip-search__list {
    align-items: stretch;
    gap: 20px;
}

.noyan-ip-search .noyan-ip-search__card {
    min-height: 210px;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.noyan-ip-search .noyan-ip-search__card:hover {
    border-color: #F59E0B !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.noyan-ip-search .noyan-ip-search__image {
    flex: 0 0 132px;
    min-height: 210px;
    background: #F8FAFC !important;
}

.noyan-ip-search .noyan-ip-search__image img {
    width: 100%;
    height: 190px;
    padding: 12px;
    object-fit: contain;
}

.noyan-ip-search .noyan-ip-search__image-placeholder {
    color: #94A3B8 !important;
    font-size: 11px;
    line-height: 1.8;
}

.noyan-ip-search .noyan-ip-search__card-body {
    padding: 20px;
}

.noyan-ip-search .noyan-ip-search__title {
    font-size: 14px !important;
    line-height: 1.9 !important;
}

.noyan-ip-search .noyan-ip-search__excerpt {
    font-size: 12px;
    line-height: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
/* Mobile refinement */

@media (max-width: 600px) {

    .noyan-ip-search .noyan-ip-search__results-head h2 {
        font-size: 18px !important;
    }

    .noyan-ip-search .noyan-ip-search__card {
        min-height: 0;
    }

    .noyan-ip-search .noyan-ip-search__image {
        min-height: 155px;
    }

    .noyan-ip-search .noyan-ip-search__image img {
        height: 155px;
    }

    .noyan-ip-search .noyan-ip-search__card-body {
        padding: 16px;
    }

}
/* =========================================
   NOYAN IP - CARD TYPES
   Version 0.3.0
========================================= */

/* Product cards */

.noyan-ip-search .noyan-ip-search__card--product {
    border-color: #E2E8F0;
    background: #FFFFFF;
}

.noyan-ip-search .noyan-ip-search__card--product .noyan-ip-search__image {
    flex-basis: 150px;
    background: #F1F5F9 !important;
}

.noyan-ip-search .noyan-ip-search__card--product .noyan-ip-search__type {
    background: #FFF7ED;
    color: #B45309;
}

.noyan-ip-search .noyan-ip-search__card--product .noyan-ip-search__meta {
    gap: 8px 14px;
    padding: 9px 0;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

/* Article cards */

.noyan-ip-search .noyan-ip-search__card--article {
    background: #FFFFFF;
}

.noyan-ip-search .noyan-ip-search__card--article .noyan-ip-search__image {
    flex-basis: 110px;
    background: #F8FAFC !important;
}

.noyan-ip-search .noyan-ip-search__card--article .noyan-ip-search__type {
    background: #EFF6FF;
    color: #1D4ED8;
}

.noyan-ip-search .noyan-ip-search__card--article .noyan-ip-search__excerpt {
    color: #64748B;
    -webkit-line-clamp: 3;
}

/* Page cards */

.noyan-ip-search .noyan-ip-search__card--page {
    background: #FFFFFF;
}

.noyan-ip-search .noyan-ip-search__card--page .noyan-ip-search__image {
    flex-basis: 100px;
    background: #F8FAFC !important;
}

.noyan-ip-search .noyan-ip-search__card--page .noyan-ip-search__type {
    background: #F1F5F9;
    color: #475569;
}

.noyan-ip-search .noyan-ip-search__card--page .noyan-ip-search__excerpt {
    -webkit-line-clamp: 2;
}

/* Shared card consistency */

.noyan-ip-search .noyan-ip-search__card--product,
.noyan-ip-search .noyan-ip-search__card--article,
.noyan-ip-search .noyan-ip-search__card--page {
    transition: transform .2s ease,
                border-color .2s ease,
                box-shadow .2s ease;
}

.noyan-ip-search .noyan-ip-search__card--product:hover,
.noyan-ip-search .noyan-ip-search__card--article:hover,
.noyan-ip-search .noyan-ip-search__card--page:hover {
    transform: translateY(-3px);
    border-color: #F59E0B;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .07);
}

/* Mobile */

@media (max-width: 600px) {

    .noyan-ip-search .noyan-ip-search__card--product .noyan-ip-search__image,
    .noyan-ip-search .noyan-ip-search__card--article .noyan-ip-search__image,
    .noyan-ip-search .noyan-ip-search__card--page .noyan-ip-search__image {
        flex-basis: auto;
    }

}