/* winning_bid.css */

/* 페이지 헤더 스타일 */
.page-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.page-header-simple h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.new-item-btn {
    background-color: #3cb371;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.new-item-btn:hover {
    background-color: #2e8b57;
}

/* 카드 및 탭 스타일 */
.card h3 { 
    font-size: 18px; 
    margin-bottom: 20px; 
    padding-bottom: 12px; 
    border-bottom: 2px solid #e0e0e0; 
    color: #2d5016; 
    line-height: 1.4; 
    word-break: keep-all;
}

.tab-btn { padding: 10px 20px; border: none; background: none; font-size: 1em; cursor: pointer; border-bottom: 3px solid transparent; color: #666; }
.tab-btn.active { border-bottom-color: #3cb371; color: #2d5016; font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 타임라인 스타일 */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid #ddd; }
.timeline-item { margin-bottom: 20px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 5px; width: 10px; height: 10px; background: #ddd; border-radius: 50%; }
.timeline-item.highlight::before { background: #3cb371; width: 14px; height: 14px; left: -38px; }

/* 현재 진행 중인 단계 애니메이션 (current 클래스) */
.timeline-item.current::before {
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(60, 179, 113, 0.7);
    background: #3cb371; /* highlight 색상 유지 */
    width: 14px; /* highlight 크기 유지 */
    height: 14px;
    left: -38px;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(60, 179, 113, 0.7);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 8px rgba(60, 179, 113, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(60, 179, 113, 0);
    }
}

.timeline-date { font-size: 0.9em; color: #888; margin-bottom: 5px; }

/* 그리드 및 박스 스타일 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-box { background: #f9f9f9; padding: 20px; border-radius: 10px; margin-bottom: 15px; }
.info-box.highlight { background: #e8f5e9; border: 1px solid #c8e6c9; }
.info-box ul { list-style: none; padding: 0; }
.info-box li { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; line-height: 1.7; }
.info-box h4 { font-size: 1.2em; margin-bottom: 15px; color: #2d5016; font-weight: 700; line-height: 1.5; }
.info-box p { margin: 10px 0; line-height: 1.8; font-size: 0.95em; }

/* 문서 카드 스타일 */
.doc-card { border: 1px solid #eee; padding: 20px; border-radius: 10px; text-align: center; }
.doc-card h4 { margin-top: 0; }

/* 폼 스타일 */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
.form-group input, .form-group select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* 버튼 스타일 */
.button.outline { background: white; border: 1px solid #3cb371; color: #3cb371; }
.button.outline:hover { background: #3cb371; color: white; }

/* 반응형 스타일 */
@media (max-width: 768px) { 
    .container { padding: 15px; margin: 10px auto; }
    
    .page-header-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 0;
    }
    
    .new-item-btn {
        width: 100%;
        padding: 12px;
    }
    
    .card h3 { font-size: 16px; }
    
    .tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 5px; margin-bottom: 15px; }
    .tab-btn { padding: 8px 12px; flex: 0 0 auto; font-size: 0.9em; }
    
    .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; } 
    .info-box h4 { font-size: 1.1em; } 
    
    .modal-content { width: 95%; margin: 20px auto; padding: 20px; }
}
