/* assets/css/auction_search.css */

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

.search-title {
    text-align: center;
    margin-bottom: 30px;
}

.search-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.search-title p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Card Styling */
.search-card, .loading-card, .result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fafafa;
}

.form-control:focus {
    border-color: #4f46e5;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-btn {
    height: 56px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Recent Search Section */
.recent-search-section {
    margin-top: 30px;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recent-header h3 {
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-header h3 span {
    color: #999;
    font-weight: normal;
    font-size: 13px;
}

.btn-text {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}

.btn-text:hover {
    color: #333;
}

.recent-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.recent-item:hover {
    border-color: #4f46e5;
    background: #fcfcfc;
}

.recent-info .case {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
}

.recent-info .court {
    font-size: 13px;
    color: #666;
}

.recent-meta {
    text-align: right;
    font-size: 12px;
    color: #aaa;
}

/* Loading State */
.loading-card {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.loading-card p {
    color: #666;
    margin-bottom: 30px;
}

.progress-steps {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.step-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 15px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.step-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.step-item.done {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.step-item.done .check::before {
    content: '✓';
    font-weight: bold;
}

/* Result Card */
.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.auction-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}

.case-number {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #475569;
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.price-box {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-box span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.price-box strong {
    display: block;
    font-size: 18px;
    color: #0f172a;
}

.price-box.highlight {
    border-color: #3b82f6;
    background: #eff6ff;
}

.price-box.highlight strong {
    color: #2563eb;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}
