/* ========================================
   ISOMASS SEARCH PAGE STYLES
   File: /css/isomass-search.css (used by /search/index.php)
   Nav search panel and .isomass-sr-only live in isomass-global.css
======================================== */

.isomass-search-page {
    font-family: 'Mona Sans', sans-serif;
}

/* ---------- Hero ---------- */
.search-hero {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.search-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.search-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.search-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background-color: #d21e2b;
}

.search-hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.search-hero-form {
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.search-hero-form input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 14px 16px;
    font-family: 'Mona Sans', sans-serif;
    font-size: 1.05rem;
    color: #222;
    background: transparent;
}

.search-hero-form input:focus {
    outline: none;
}

.search-hero-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-hero-form:focus-within {
    box-shadow: 0 0 0 3px rgba(210, 30, 43, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-hero-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d21e2b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 26px;
    font-family: 'Mona Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-hero-form button:hover {
    background-color: #b01a24;
}

.search-hero-content .isomass-review-pill {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

/* ---------- Body ---------- */
.search-body {
    background-color: #ffffff;
    padding: 70px 0 90px;
}

.search-body .container {
    max-width: 1000px;
}

.search-summary {
    margin-bottom: 40px;
}

.search-summary-count {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 12px;
}

.search-summary-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}

.search-tag {
    display: inline-block;
    background-color: #fdeff0;
    color: #b01a24;
    border: 1px solid rgba(210, 30, 43, 0.2);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.search-tag-small {
    padding: 3px 10px;
    font-size: 0.78rem;
}

.search-group {
    margin-bottom: 45px;
}

.search-group-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

.search-group-title span {
    font-weight: 500;
    color: #888;
    font-size: 1rem;
}

.search-results {
    display: grid;
    gap: 16px;
}

/* Result cards - grey panel with red icon, matching the About and Information cards */
.search-result {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.search-result:hover {
    border-color: rgba(210, 30, 43, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.search-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #d21e2b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(210, 30, 43, 0.3);
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-type {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d21e2b;
    margin-bottom: 4px;
}

.search-result h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.search-result h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result h3 a:hover {
    color: #d21e2b;
}

.search-result p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 12px;
}

.search-result-matched {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.search-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d21e2b;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.search-result-link i {
    font-size: 0.8rem;
}

.search-result-link:hover {
    color: #b01a24;
    gap: 12px;
}

.search-result-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    color: #333;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-result-doc i {
    color: #d21e2b;
}

.search-result-doc:hover {
    border-color: #d21e2b;
    color: #d21e2b;
}

/* ---------- No results ---------- */
.search-empty {
    text-align: center;
    background-color: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 45px;
}

.search-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d21e2b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.search-empty h2 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 10px;
}

.search-empty p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Search by problem ---------- */
.search-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.search-problem {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 45%, #fdeff0 100%);
    border: 1px solid rgba(210, 30, 43, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-problem:hover {
    border-color: rgba(210, 30, 43, 0.45);
    box-shadow: 0 10px 24px rgba(210, 30, 43, 0.1);
    transform: translateY(-2px);
}

.search-problem-text strong {
    display: block;
    font-size: 1rem;
    color: #222;
    margin-bottom: 3px;
}

.search-problem-text span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #666;
}

/* ---------- Popular searches ---------- */
.search-popular {
    margin-bottom: 50px;
}

.search-popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-chip {
    display: inline-block;
    background-color: #f3f3f3;
    color: #333;
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-chip:hover {
    background-color: #d21e2b;
    color: #ffffff;
}

/* ---------- Help CTA - black rectangle ---------- */
.search-cta {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px 40px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.search-cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d21e2b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(210, 30, 43, 0.4);
}

.search-cta-text {
    flex: 1;
}

.search-cta-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.search-cta-text p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.search-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.search-cta-btn,
.search-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-cta-btn {
    background-color: #d21e2b;
    color: #ffffff;
    border: 2px solid #d21e2b;
}

.search-cta-btn:hover {
    background-color: #b01a24;
    border-color: #b01a24;
    color: #ffffff;
}

.search-cta-phone {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-cta-phone i {
    color: #ff4757;
}

.search-cta-phone:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .search-hero {
        padding: 70px 0;
    }

    .search-hero h1 {
        font-size: 2.6rem;
    }

    .search-problems {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-hero {
        padding: 55px 0;
    }

    .search-hero h1 {
        font-size: 2.2rem;
    }

    .search-hero h1::after {
        width: 70px;
    }

    .search-hero-form {
        flex-direction: column;
        padding: 10px;
    }

    .search-hero-form input {
        padding: 12px;
        font-size: 1rem;
    }

    .search-hero-form button {
        justify-content: center;
        padding: 14px;
    }

    .search-body {
        padding: 50px 0 70px;
    }

    .search-result {
        padding: 20px;
        gap: 16px;
    }

    .search-result-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .search-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 25px;
    }

    .search-cta-actions {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .search-hero h1 {
        font-size: 1.9rem;
    }

    .search-result {
        flex-direction: column;
    }

    .search-problems {
        grid-template-columns: 1fr;
    }
}
