/* Gönderi Sorgulama - POSTEkspres tema (#ff2c2c, beyaz, gri) */

.tracking-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #ff2c2c 0%, #e02020 50%, #cc1a1a 100%);
    padding: 4rem 2rem 4rem;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tracking-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.tracking-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.tracking-hero-sub {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.tracking-search-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 520px;
    margin: 0 auto;
}

.tracking-search-card .form-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.tracking-search-card input[name="tracking"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.0625rem;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tracking-search-card input:focus {
    outline: none;
    border-color: #ff2c2c;
    box-shadow: 0 0 0 4px rgba(255, 44, 44, 0.15);
}

.tracking-search-card input::placeholder {
    color: #9ca3af;
}

.tracking-search-card .btn-search {
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #ff2c2c, #e02020);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.tracking-search-card .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 44, 44, 0.4);
}

.tracking-content {
    padding: 3rem 2rem 5rem;
    background: #f9fafb;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.tracking-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Sonuç yok / bilgi kutusu */
.tracking-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color: #6b7280;
    font-size: 1.0625rem;
}

.tracking-empty-state .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.tracking-empty-state .icon-wrap svg {
    width: 32px;
    height: 32px;
}

/* Hata / bulunamadı */
.tracking-not-found {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-left: 4px solid #f59e0b;
}

.tracking-not-found .not-found-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
}

.tracking-not-found h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tracking-not-found p {
    color: #6b7280;
    margin: 0;
}

/* Özet kartı */
.tracking-summary-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border-top: 4px solid #ff2c2c;
}

.tracking-summary-card .summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.tracking-summary-card .summary-row:last-child {
    margin-bottom: 0;
}

.tracking-summary-card .summary-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.tracking-summary-card .summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.tracking-summary-card .summary-value.tracking-num {
    font-family: ui-monospace, monospace;
    letter-spacing: 1px;
}

.tracking-summary-card .status-badge-wrap {
    margin-top: 0.5rem;
}

.tracking-summary-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #ff2c2c, #e02020);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255, 44, 44, 0.3);
}

.tracking-summary-card .status-badge .status-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Bölüm başlığı */
.tracking-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tracking-section-title .title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff2c2c, #e02020);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tracking-section-title .title-icon svg {
    width: 20px;
    height: 20px;
}

/* Zaman çizelgesi */
.tracking-timeline-wrap {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 2rem 2rem 2.75rem;
    position: relative;
}

.tracking-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ff2c2c 0%, #e5e7eb 100%);
    border-radius: 2px;
}

.tracking-timeline li {
    position: relative;
    padding-bottom: 2rem;
}

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

.tracking-timeline li::before {
    content: '';
    position: absolute;
    left: -2.125rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    background: #ff2c2c;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ff2c2c;
    z-index: 1;
}

.tracking-timeline li:first-child::before {
    background: #ff2c2c;
    box-shadow: 0 0 0 2px #ff2c2c, 0 0 12px rgba(255, 44, 44, 0.5);
}

.timeline-item-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-item-card:hover {
    border-color: #ff2c2c;
    box-shadow: 0 2px 12px rgba(255, 44, 44, 0.08);
}

.timeline-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-item-status {
    font-weight: 700;
    font-size: 1.0625rem;
    color: #1f2937;
}

.timeline-item-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.timeline-item-notes {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.timeline-item-notes:empty {
    display: none;
}

/* Geçmiş yok bilgisi */
.tracking-no-history {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    color: #0369a1;
    font-size: 0.9375rem;
    text-align: center;
}

@media (max-width: 640px) {
    .tracking-hero h1 {
        font-size: 2rem;
    }
    .tracking-search-card .form-row {
        flex-direction: column;
    }
    .tracking-search-card .btn-search {
        width: 100%;
    }
    .tracking-summary-card .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tracking-timeline-wrap {
        padding-left: 2rem;
    }
    .tracking-timeline::before {
        left: 5px;
    }
    .tracking-timeline li::before {
        left: -1.75rem;
        width: 12px;
        height: 12px;
    }
}
