/*
    CSC 648 Fall 2026
    Authors: Manisha Chand
    File: search.css
    Description: Layout for the vertical prototype search results page. Builds
    on the .tutoring-demo theme in tutoring.css; only adds the framed result
    rows (photo beside text) and the error and empty states.
*/

.tutoring-demo .search-page {
    padding: 40px 0;
}

.tutoring-demo .search-title {
    font-size: clamp(30px, 4vw, 44px);
}

.tutoring-demo .result-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tutoring-demo .result-card {
    flex-direction: row;
    gap: 24px;
}

.tutoring-demo .result-photo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 1px solid var(--demo-border);
    border-radius: 10px;
    background: #0a1218;
}

.tutoring-demo .result-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutoring-demo .photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--demo-accent);
    font-size: 40px;
    font-weight: 700;
}

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

/* Tutoring is free; the price line is accented so the "Free" is easy to spot. */
.tutoring-demo .result-price {
    margin-bottom: 6px;
    color: var(--demo-accent);
    font-size: 14px;
}

.tutoring-demo .result-bio {
    margin-bottom: 8px;
}

.tutoring-demo .result-meta {
    margin-bottom: 0;
    color: var(--demo-muted);
    font-size: 14px;
}

.tutoring-demo .empty-state,
.tutoring-demo .search-error {
    padding: 18px;
    border: 1px solid var(--demo-border);
    border-radius: 8px;
    color: var(--demo-muted);
}

.tutoring-demo .search-error {
    margin-top: 20px;
    color: #ffab91;
}

.tutoring-demo .upload-result {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.tutoring-demo .upload-result a {
    color: var(--demo-accent);
}

@media (max-width: 750px) {
    .tutoring-demo .result-card {
        flex-direction: column;
    }
}
