/**
 * Order Tracking Styles
 * Made With Love By HOSSAM ALZYOD - Mr.Server
 */

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: calc(70px + 50px) 0 80px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(201, 166, 52, 0.05) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-logo {
    height: 120px;
    width: auto;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.order-number-hero {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4af37;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto;
}

/* Tracking Container */
.tracking-container {
    max-width: 600px;
    margin: -50px auto 50px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.tracking-header {
    text-align: center;
    margin-bottom: 30px;
}

.tracking-header h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.tracking-header p {
    color: #666;
    font-size: 16px;
}

.tracking-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4af37;
}

.radio-option label {
    cursor: pointer;
    color: #555;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    direction: rtl;
    text-align: right;
}

.form-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-track {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a634 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-track:hover {
    background: linear-gradient(135deg, #c9a634 0%, #b89730 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-track i {
    font-size: 18px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert i {
    font-size: 20px;
}

.tracking-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.tracking-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.tracking-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tracking-info li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracking-info li i {
    color: #d4af37;
    font-size: 16px;
}

/* Tracking Result Container */
.tracking-result-container {
    max-width: 900px;
    margin: -50px auto 50px;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.status-timeline {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.timeline-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-icon.active {
    background: #d4af37;
    color: #fff;
}

.timeline-icon.completed {
    background: #28a745;
    color: #fff;
}

.timeline-icon.inactive {
    background: #e0e0e0;
    color: #999;
}

.timeline-content {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.timeline-content.active {
    background: #fff3cd;
    border: 2px solid #d4af37;
}

.timeline-content.completed {
    background: #d4edda;
    border: 2px solid #28a745;
}

.timeline-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.order-details {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.order-items {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.items-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.items-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.total-row {
    font-size: 18px;
    font-weight: bold;
    color: #d4af37;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: calc(70px + 30px) 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-emoji {
        font-size: 60px;
    }

    .tracking-container,
    .tracking-result-container {
        margin: 20px;
        padding: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .items-table {
        font-size: 14px;
    }

    .items-table img {
        width: 40px;
        height: 40px;
    }
}
