/* GAMEVO Order Tracking Dashboard Styles */

:root {
    --primary: #00ffd5;
    --primary-dark: #1dd1a1;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --bg-dark: #0a0a0a;
    --bg-secondary: #141414;
    --success: #00ff9f;
    --warning: #ffa500;
    --danger: #ff4d6d;
    --info: #00d4ff;
}

/* Page Container */
.order-tracking-page {
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 300px);
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.tracking-container {
    max-width: 900px;
    margin: 0 auto;
    min-width: 0;
}

/* Page Title */
.tracking-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tracking-title h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tracking-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Search Card - Premium Design */
.search-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 80px rgba(0, 255, 213, 0.06);
    backdrop-filter: blur(10px);
}

.search-card h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    padding: 1rem;
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(160, 160, 160, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.15);
}

.btn-search {
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00ffd5, #00e6c0);
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 255, 213, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

/* Message Alerts */
.message {
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 600;
}

.message.error {
    background: rgba(255, 77, 109, 0.12);
    border-left-color: #ff4d6d;
    color: #ffb3c0;
}

.message.success {
    background: rgba(0, 255, 159, 0.12);
    border-left-color: #00ff9f;
    color: #b8ffde;
}

/* Order Summary Card */
.order-summary {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 80px rgba(0, 255, 213, 0.06);
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 213, 0.1);
}

.order-id-display {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.order-id-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-id-value {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.status-badge {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid;
    box-shadow: 0 0 20px;
    animation: statusGlow 2s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.badge-pending {
    background: rgba(255, 165, 0, 0.15);
    border-color: #ffa500;
    color: #ffd580;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.badge-processing {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #80e7ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.badge-completed {
    background: rgba(0, 255, 159, 0.15);
    border-color: #00ff9f;
    color: #b8ffde;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.badge-cancelled {
    background: rgba(255, 77, 109, 0.15);
    border-color: #ff4d6d;
    color: #ffb3c0;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.3);
}

/* Order Info Grid */
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 213, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 213, 0.15);
    transform: translateY(-2px);
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    word-break: break-word;
}

.info-value.price {
    color: var(--success);
    font-size: 1.3rem;
}

.info-value.contact {
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.info-value.date {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Order Timeline */
.timeline-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.3rem;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 213, 0.2), transparent);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 213, 0.2);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.5);
    color: #000;
    transform: scale(1.1);
}

.timeline-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-item.active .timeline-label {
    color: var(--primary);
    font-weight: 700;
}

/* Delivery Info Section */
.delivery-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.delivery-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.delivery-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 213, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.delivery-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.delivery-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.delivery-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Support Section */
.support-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.support-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.support-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.support-btn {
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.1), rgba(0, 255, 213, 0.05));
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: left 0.3s ease;
    z-index: -1;
}

.support-btn:hover::before {
    left: 0;
}

.support-btn:hover {
    color: #000;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 213, 0.3);
}

.support-btn i {
    font-size: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.empty-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-tracking-page {
        padding: 2rem 1rem;
    }

    .tracking-title h1 {
        font-size: 1.8rem;
    }

    .search-card,
    .order-summary,
    .timeline-section,
    .delivery-section,
    .support-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .order-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-id-value {
        font-size: 1.4rem;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-dot {
        width: 40px;
        height: 40px;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .support-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tracking-title h1 {
        font-size: 1.5rem;
    }

    .search-card,
    .order-summary,
    .timeline-section,
    .delivery-section,
    .support-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .search-form {
        gap: 0.8rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .order-id-value {
        font-size: 1.2rem;
    }
}

/* Payment Proof Modal */
.proof-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.proof-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.proof-modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.proof-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 213, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.proof-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.proof-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.proof-modal-close:hover {
    color: var(--text-primary);
}

.proof-modal-body {
    padding: 1.5rem;
}

.proof-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.proof-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 213, 0.1);
}

.proof-content embed,
.proof-content iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}
