/**
 * MISSIONA Recruit LP Styles - Search Results
 * 検索結果セクション関連スタイル
 */

/* ========================================
   Search Results Section (検索結果セクション)
   ======================================== */
.search-results-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.search-results-container {
    width: 100%;
}

.search-results-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3342f;
}

.search-results-heading {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
}

.back-to-top-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background-color: transparent;
    text-decoration: none;
    border-radius: 50%;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.back-to-top-button:hover {
    transform: translateX(-2px);
    opacity: 0.8;
}

.back-to-top-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ========================================
   検索結果のカードスタイル
   ======================================== */

/* 検索結果のグリッドレイアウト */
#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 100%;
}

/* 検索結果のカードを他の.cardと同じサイズに統一 */
#results .card {
    max-width: 400px;
    width: 100%;
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* 検索結果のカード：1つ目も同じサイズにする（.card-listの設定を上書き） */
#results.card-list .card:first-child,
#results .card:first-child {
    max-width: 400px;
    grid-column: auto;
    display: flex !important;
    flex-direction: column !important;
}

#results .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

#results .card time {
    font-size: 12px;
    color: var(--text-muted);
    margin: var(--spacing-sm) var(--spacing-lg) 0;
    padding: var(--spacing-xs) 0;
}

#results .card p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
