/* --- [공통 및 검색 결과용] 기존 카드 디자인 --- */
.search-container {
    padding: 50px 20px;
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.search-info-bar .text {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-info-bar .btn-group {
    display: flex;
    gap: 10px;
}

.btn-board { padding: 10px 18px; background: #fff; color: #333; border: 1px solid #bbb; border-radius: 8px; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: 0.2s; }
.btn-write { padding: 10px 18px; background: #28a745; color: #fff; border-radius: 8px; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: 0.2s; border: 1px solid #218838; }
.btn-board:hover { background: #f0f0f0; border-color: #999; }
.btn-write:hover { background: #218838; transform: scale(1.03); }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.result-card {
    border: 2px solid #ddd;
    padding: 25px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.result-card:hover {
    transform: translateY(-8px);
    border-color: #28a745;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.result-card .category-tag {
    color: #1e7e34;
    font-size: 0.85rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.result-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #222;
    line-height: 1.4;
    word-break: keep-all;
}

.result-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e63946;
    margin-bottom: 8px;
}

.result-card .status {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.result-card .status strong {
    color: #28a745;
}

.btn-view {
    display: block;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-view:hover { background: #000; }

.no-result {
    grid-column: 1/-1;
    text-align: center;
    padding: 100px;
    color: #999;
}

/* --- [메인 페이지 전용] 가로형 심플 리스트 스타일 --- */
.main-simple-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.main-list-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.main-list-item:hover {
    border-color: #28a745;
    background: #f9fdfa;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.m-category {
    color: #28a745;
    font-weight: bold;
    font-size: 0.85rem;
    width: 90px;
    flex-shrink: 0;
}

.m-title {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-price {
    font-weight: 800;
    color: #e63946;
    font-size: 1.1rem;
    width: 110px;
    text-align: right;
    margin-left: 20px;
}

.m-status {
    font-size: 0.9rem;
    color: #888;
    width: 120px;
    text-align: right;
    margin-left: 20px;
}

.m-status strong { color: #28a745; }

/* 타이머 기본 스타일 (캡슐 형태) */
.m-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    margin-right: 15px;
    min-width: 85px;
}

/* 24시간 이상 여유 있는 경우 (초록 계열) */
.timer-safe {
    color: #28a745;
    background-color: #f0fff4;
    border-color: #c6f6d5;
}

/* 24시간 미만 긴박한 경우 (빨간 계열) */
.timer-urgent {
    color: #e63946;
    background-color: #fff1f2;
    border-color: #ffccd1;
}