/**
 * Hepsijet Public CSS
 */

/* Tracking Form */
.hepsijet-tracking-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hepsijet-tracking-form h3 {
    margin-top: 0;
    color: #333;
}

.hepsijet-tracking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.hepsijet-tracking-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.hepsijet-tracking-form button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.hepsijet-tracking-form button:hover {
    background: #005a87;
}

.hepsijet-tracking-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Tracking Widget */
.hepsijet-tracking-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hepsijet-tracking-widget h4 {
    margin-top: 0;
    color: #333;
}

.hepsijet-tracking-widget p {
    margin: 10px 0;
}

.hepsijet-tracking-widget strong {
    color: #333;
}

/* Order Tracking */
.hepsijet-order-tracking {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hepsijet-order-tracking h4 {
    margin-top: 0;
    color: #333;
}

/* Tracking Section */
.hepsijet-tracking-section {
    margin-top: 30px;
}

.hepsijet-tracking-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.tracking-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.tracking-info p {
    margin: 10px 0;
}

.tracking-info strong {
    color: #333;
}

/* Tracking Status */
.tracking-status {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.tracking-status.status-created { 
    color: #0073aa; 
    background: #e7f3ff;
}

.tracking-status.status-accepted { 
    color: #00a32a; 
    background: #e7f7e7;
}

.tracking-status.status-in_transit { 
    color: #dba617; 
    background: #fff3cd;
}

.tracking-status.status-delivered { 
    color: #00a32a; 
    background: #e7f7e7;
}

.tracking-status.status-cancelled { 
    color: #d63638; 
    background: #f8d7da;
}

.tracking-status.status-returned { 
    color: #dba617; 
    background: #fff3cd;
}

/* Tracking History */
.tracking-history {
    margin-top: 20px;
}

.tracking-history h3 {
    color: #333;
    margin-bottom: 15px;
}

.tracking-timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.tracking-event {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.tracking-event::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0073aa;
}

.event-status {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.event-details {
    color: #666;
    font-size: 14px;
}

.event-time {
    font-weight: bold;
}

.event-location {
    color: #0073aa;
}

.event-description {
    margin-top: 5px;
    font-style: italic;
    color: #555;
}

/* Dashboard Tracking */
.hepsijet-dashboard-tracking {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hepsijet-dashboard-tracking h3 {
    margin-top: 0;
    color: #333;
}

.tracking-orders {
    display: grid;
    gap: 15px;
}

.tracking-order-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.tracking-order-item h4 {
    margin-top: 0;
    color: #333;
}

.tracking-order-item p {
    margin: 8px 0;
}

.tracking-order-item .button {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.tracking-order-item .button:hover {
    background: #005a87;
    color: white;
}

/* Thank You Page */
.hepsijet-thankyou-tracking {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.hepsijet-thankyou-tracking h3 {
    margin-top: 0;
    color: #333;
}

.hepsijet-thankyou-tracking p {
    margin: 10px 0;
}

/* Tracking Page */
.hepsijet-tracking-page {
    max-width: 800px;
    margin: 0 auto;
}

.hepsijet-tracking-page h3 {
    color: #333;
    margin-bottom: 20px;
}

.tracking-orders {
    display: grid;
    gap: 20px;
}

.tracking-order {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tracking-order h4 {
    margin-top: 0;
    color: #333;
}

.tracking-order .tracking-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.tracking-order .tracking-info p {
    margin: 8px 0;
}

.tracking-order .tracking-history {
    margin-top: 15px;
}

.tracking-order .tracking-history h5 {
    margin-bottom: 10px;
    color: #333;
}

.tracking-order .tracking-history ul {
    list-style: none;
    padding: 0;
}

.tracking-order .tracking-history li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tracking-order .tracking-history li:last-child {
    border-bottom: none;
}

.tracking-order .tracking-history small {
    color: #666;
}

/* Buttons */
.hepsijet-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.hepsijet-button:hover {
    background: #005a87;
    color: white;
}

.hepsijet-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hepsijet-button.secondary {
    background: #6c757d;
}

.hepsijet-button.secondary:hover {
    background: #545b62;
}

/* Notifications */
.hepsijet-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success { background: #00a32a; }
.notification-error { background: #d63638; }
.notification-warning { background: #dba617; }
.notification-info { background: #0073aa; }

/* Tooltips */
.hepsijet-tooltip {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    z-index: 10000;
    max-width: 200px;
    word-wrap: break-word;
}

.hepsijet-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Loading States */
.hepsijet-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.hepsijet-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: hepsijet-spin 1s linear infinite;
}

@keyframes hepsijet-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Updates */
.status-updated {
    animation: hepsijet-pulse 1s ease-in-out;
}

@keyframes hepsijet-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hepsijet-tracking-form,
    .hepsijet-tracking-widget,
    .hepsijet-order-tracking,
    .tracking-order {
        padding: 15px;
    }
    
    .tracking-timeline::before {
        left: 15px;
    }
    
    .tracking-event {
        padding-left: 40px;
    }
    
    .tracking-event::before {
        left: 10px;
        width: 8px;
        height: 8px;
    }
    
    .hepsijet-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .tracking-orders {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hepsijet-tracking-form,
    .hepsijet-tracking-widget,
    .hepsijet-order-tracking,
    .tracking-order {
        padding: 10px;
    }
    
    .hepsijet-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .tracking-status {
        font-size: 12px;
        padding: 1px 6px;
    }
}

/* Print Styles */
@media print {
    .hepsijet-button,
    .hepsijet-notification,
    .hepsijet-tooltip {
        display: none;
    }
    
    .hepsijet-tracking-form,
    .hepsijet-tracking-widget,
    .hepsijet-order-tracking,
    .tracking-order {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tracking-timeline::before {
        background: #000;
    }
    
    .tracking-event::before {
        background: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hepsijet-tracking-form,
    .hepsijet-tracking-widget,
    .hepsijet-order-tracking,
    .tracking-order,
    .hepsijet-thankyou-tracking {
        background: #1e1e1e;
        color: #fff;
    }
    
    .tracking-info,
    .hepsijet-dashboard-tracking {
        background: #2d2d2d;
        color: #fff;
    }
    
    .hepsijet-tracking-form h3,
    .hepsijet-tracking-widget h4,
    .hepsijet-order-tracking h4,
    .tracking-order h4,
    .hepsijet-thankyou-tracking h3 {
        color: #fff;
    }
    
    .hepsijet-tracking-form input[type="text"] {
        background: #2d2d2d;
        color: #fff;
        border-color: #555;
    }
    
    .tracking-timeline::before {
        background: #555;
    }
    
    .tracking-event::before {
        background: #0073aa;
    }
}
