/* Suivi de Commande Styles */

/* Hero Section */
.tracking-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.tracking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bubbles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="3" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23bubbles)"/></svg>');
    opacity: 0.3;
}

.tracking-hero .hero-content {
    position: relative;
    z-index: 2;
}

.tracking-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tracking-hero h1 i {
    margin-right: 15px;
    color: var(--accent-color);
}

.tracking-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Warning Section */
.warning-section {
    padding: 60px 0;
    background: #fff8e1;
    border-top: 4px solid #ff9800;
    border-bottom: 4px solid #ff9800;
}

.warning-card {
    background: linear-gradient(135deg, #ffecb3 0%, #fff3c4 100%);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
    border: 2px solid #ffb74d;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9800, #ffa726, #ffb74d, #ff9800);
    z-index: -1;
    border-radius: 15px;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.warning-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8f00, #ff6f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.warning-content {
    flex: 1;
}

.warning-content h3 {
    color: #e65100;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-content p {
    color: #d84315;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.warning-content strong {
    color: #bf360c;
    font-weight: 700;
}

.warning-tips {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.warning-tips p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #d84315;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-tips p:last-child {
    margin-bottom: 0;
}

.warning-tips i {
    color: #ff8f00;
    font-size: 16px;
    width: 20px;
}

/* Responsive Warning Section */
@media (max-width: 768px) {
    .warning-section {
        padding: 40px 0;
    }
    
    .warning-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .warning-icon {
        align-self: center;
        margin-bottom: 15px;
    }
    
    .warning-content h3 {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .warning-content p {
        font-size: 1rem;
    }
    
    .warning-tips p {
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.search-box {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.search-box h2 {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.8rem;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.search-help {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Order Details Section */
.order-details-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.order-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.order-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.order-header h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.order-id {
    font-size: 1.2rem;
    opacity: 0.9;
}

.order-body {
    padding: 40px;
}

/* Status Timeline */
.status-timeline {
    margin-bottom: 40px;
}

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

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    width: 2px;
    height: 40px;
    background: #eee;
}

.timeline-item.active::after {
    background: var(--primary-color);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
    margin-right: 20px;
    z-index: 1;
    position: relative;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-color);
    color: var(--white);
}

.timeline-item.completed .timeline-icon {
    background: #28a745;
    color: var(--white);
}

.timeline-item.cancelled .timeline-icon {
    background: #dc3545;
    color: var(--white);
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Order Info Grid */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

.info-section h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section p {
    margin-bottom: 8px;
    color: #666;
}

/* Order Items */
.order-items {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.order-items h4 {
    background: var(--light-bg);
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

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

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.item-details h5 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.item-quantity {
    color: #666;
    font-size: 0.9rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.order-total {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Estimated Time */
.estimated-time {
    background: linear-gradient(135deg, var(--accent-color), #ffd93d);
    color: var(--text-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.3);
}

.estimated-time h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.estimated-time .time {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn.phone {
    background: #28a745;
    color: var(--white);
}

.contact-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* No Results Section */
.no-results-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.no-results-card {
    background: var(--white);
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.no-results-card i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.no-results-card > p {
    color: #666;
    margin-bottom: 30px;
}

.help-info {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

.help-info h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.help-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-color);
}

.help-info i {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    font-size: 2.5rem;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    background: var(--white);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.faq-answer {
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Cancellation Alert Styles */
.cancellation-alert {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    border-left: 5px solid #ff1744;
    animation: pulseAlert 2s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 8px 35px rgba(255, 71, 87, 0.6); }
}

.cancellation-alert .alert-icon {
    font-size: 2.5rem;
    color: #ffeb3b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cancellation-alert .alert-content {
    flex: 1;
}

.cancellation-alert h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cancellation-alert p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.cancellation-alert strong {
    font-weight: 700;
    text-decoration: underline;
}

.alert-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.alert-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: white;
}

.alert-btn.phone {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.3);
}

.alert-btn.whatsapp {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.3);
}

/* Cancelled Header Style */
.cancelled-header {
    background: linear-gradient(135deg, #ff4757, #ff3838) !important;
    position: relative;
    overflow: hidden;
}

.cancelled-header::before {
    content: 'ANNULÉE';
    position: absolute;
    top: 10px;
    right: -30px;
    background: #ff1744;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Status Highlight for Cancelled */
.status-cancelled-highlight {
    background: linear-gradient(135deg, #ff4757, #ff3838) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4) !important;
    animation: flashRed 1.5s ease-in-out infinite !important;
}

@keyframes flashRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Total Cancelled Style */
.total-cancelled {
    background: linear-gradient(135deg, #ff4757, #ff3838) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.total-cancelled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%);
}

/* Timeline item cancelled enhanced */
.timeline-item.cancelled.active {
    background: rgba(255, 71, 87, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid #ff4757;
    margin-bottom: 25px;
}

.timeline-item.cancelled.active .timeline-icon {
    background: #ff4757 !important;
    color: white !important;
    animation: shake 0.8s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.timeline-item.cancelled.active .timeline-content h4 {
    color: #ff4757 !important;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-item.cancelled.active .timeline-content p {
    color: #e74c3c !important;
    font-weight: 500;
}

/* Auto-refresh Indicator Styles */
.refresh-indicator {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border-left: 4px solid #28a745;
    margin: 1rem 0;
    transition: opacity 0.3s ease;
}

.refresh-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #28a745;
    max-width: 600px;
    margin: 0 auto;
}

.refresh-icon {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.refresh-content {
    flex-grow: 1;
}

.refresh-content p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.refresh-content p:first-child {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-hero {
        padding: 100px 0 60px;
    }
    
    .tracking-hero h1 {
        font-size: 2.2rem;
    }
    
    .search-box {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 200px;
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .no-results-card {
        margin: 0 20px;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .tracking-hero h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        padding: 25px 15px;
    }
    
    .order-body {
        padding: 25px 20px;
    }
    
    .order-header {
        padding: 25px 20px;
    }
    
    .timeline-item {
        margin-bottom: 15px;
    }
    
    .timeline-icon {
        width: 35px;
        height: 35px;
        margin-right: 15px;
    }
}
