/* 배송 완료 화면 스타일 */
.shipping-complete-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* 헤더 */
.complete-header {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.complete-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.progress-step {
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.progress-step.completed {
    color: var(--white);
}

.progress-step.active {
    font-weight: 700;
}

.progress-step.completed::before {
    content: '✓';
    margin-right: 4px;
    color: #2ecc71;
}

/* 성공 애니메이션 */
.success-animation {
    position: relative;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
    position: relative;
    z-index: 10;
}

.success-circle.animate {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Confetti 애니메이션 */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd93d;
    animation: confettiFall linear;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 요청 정보 */
.request-info {
    padding: 0 20px 20px;
}

.request-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

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

.request-title {
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.copy-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-icon {
    font-size: 16px;
}

.request-id {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-gradient-end);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.request-date {
    font-size: 12px;
    color: #666;
}

/* 배송 정보 요약 */
.shipping-summary {
    padding: 0 20px 20px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.highlight {
    background: rgba(255, 255, 255, 0.1);
    margin: 8px -8px 0;
    padding: 12px 8px;
    border-radius: var(--border-radius);
    border: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 16px;
}

.summary-value {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.summary-value.address {
    line-height: 1.5;
}

.summary-value.estimated {
    color: #ffd93d;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

/* 상품 목록 */
.items-section {
    padding: 0 20px 20px;
}

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

.items-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    color: var(--white);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.items-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.item-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 12px;
    position: relative;
}

.item-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-gradient-end);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.item-card .item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.item-card .item-icon.grade-1 {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.item-card .item-icon.grade-2 {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 217, 61, 0.1));
    border: 1px solid rgba(255, 217, 61, 0.3);
}

.item-card .item-icon.grade-3 {
    background: linear-gradient(135deg, rgba(107, 207, 127, 0.2), rgba(107, 207, 127, 0.1));
    border: 1px solid rgba(107, 207, 127, 0.3);
}

.item-card .item-icon.grade-4 {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.item-card .item-icon.grade-5 {
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(149, 165, 166, 0.1));
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.item-info {
    text-align: center;
}

.item-card .item-name {
    color: var(--dark-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-card .item-grade {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
}

.item-card .item-value {
    color: #666;
    font-size: 11px;
    font-weight: 600;
}

/* 배송 진행 상태 */
.delivery-status {
    padding: 0 20px 20px;
}

.status-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.status-timeline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    position: relative;
}

.timeline-item.active .timeline-dot {
    background: #2ecc71;
    border-color: var(--white);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.timeline-item.active .timeline-dot::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.timeline-item.active .timeline-title {
    color: #2ecc71;
}

/* 안내 메시지 */
.notice-section {
    padding: 0 20px 20px;
}

.notice-card {
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.notice-icon {
    font-size: 20px;
}

.notice-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}

.notice-list {
    margin: 0;
    padding-left: 20px;
}

.notice-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* 액션 버튼 */
.complete-actions {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.action-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-btn.btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.action-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

/* 공유 버튼 */
.share-section {
    padding: 0 20px 20px;
    text-align: center;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.share-icon {
    font-size: 16px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .complete-header {
        padding: 16px;
    }
    
    .complete-title {
        font-size: 20px;
    }
    
    .success-animation {
        padding: 30px 20px;
    }
    
    .success-circle {
        width: 80px;
        height: 80px;
    }
    
    .success-icon {
        font-size: 36px;
    }
    
    .request-info,
    .shipping-summary,
    .items-section,
    .delivery-status,
    .notice-section,
    .complete-actions,
    .share-section {
        padding: 0 16px 16px;
    }
    
    .request-card,
    .summary-card,
    .items-container,
    .status-timeline,
    .notice-card {
        padding: 16px;
    }
    
    .request-id {
        font-size: 16px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .item-card {
        padding: 8px;
    }
    
    .item-card .item-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .complete-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    .progress-indicator {
        gap: 12px;
        font-size: 11px;
    }
    
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        gap: 12px;
    }
    
    .timeline-dot {
        width: 20px;
        height: 20px;
    }
    
    .timeline-title {
        font-size: 13px;
    }
    
    .timeline-date {
        font-size: 11px;
    }
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
    .success-circle.animate,
    .confetti,
    .copy-btn,
    .toggle-btn,
    .action-btn,
    .share-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
    .shipping-complete-screen {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .request-card {
        background: rgba(52, 73, 94, 0.95);
        color: var(--white);
    }
    
    .request-title {
        color: var(--white);
    }
    
    .request-date {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .item-card {
        background: rgba(52, 73, 94, 0.95);
    }
    
    .item-card .item-name {
        color: var(--white);
    }
    
    .item-card .item-value {
        color: rgba(255, 255, 255, 0.7);
    }
}