/*
 * Version: 1.2.0
 * File: assets/css/wcoj-frontend.css
 */

.wcoj-frontend-wrapper {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.wcoj-status-bar {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
}

/* --- 進度條 --- */
.wcoj-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wcoj-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #eee;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    transition: all 0.3s;
}

.step-label {
    font-size: 12px;
    color: #999;
}

/* 已完成階段 */
.progress-step.passed .step-icon {
    background: #ffcc30;
}

.progress-step.passed .step-label {
    color: #333;
}

/* 當前階段 */
.progress-step.active .step-icon {
    background: #D55F5F;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(213, 95, 95, 0.2);
}

.progress-step.active .step-label {
    color: #D55F5F;
    font-weight: bold;
}

/* --- 垂直時間軸 --- */
.wcoj-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #eee;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.timeline-item:first-child .timeline-marker {
    background: #D55F5F;
    box-shadow: 0 0 0 2px rgba(213, 95, 95, 0.3);
}

.timeline-content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.timeline-date {
    font-size: 12px;
    color: #888;
}

.timeline-stage-tag {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
}

.timeline-desc {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* --- 媒體內容 --- */
.timeline-media img {
    max-width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.timeline-media img:hover {
    opacity: 0.9;
}

.timeline-media iframe {
    width: 100%;
    height: 200px;
    border-radius: 4px;
}

.wcoj-btn-link {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.logistics-msg {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
}

/* --- 訪客模糊與鎖定 --- */
.timeline-media.restricted-content {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.timeline-media.restricted-content img,
.timeline-media.restricted-content iframe {
    filter: blur(15px);
    pointer-events: none;
    transform: scale(1.1);
}

.wcoj-lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-msg {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.lock-msg .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.lock-msg p {
    margin: 5px 0 15px;
    font-size: 14px;
}

/* --- Lightbox --- */
#wcoj-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#wcoj-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: default;
}

#wcoj-lightbox .close-lb {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.wcoj-contact-designer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* --- 註冊 Modal --- */
.wcoj-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wcoj-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.wcoj-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#wcoj-reg-message {
    margin-top: 15px;
    font-size: 0.9em;
    color: #d63638;
}