/* ================================================
   SİPARİŞ TAKİP SAYFASI - PROFESYONEL STİLLER
   Güncellenmiş ve PHP ile tam uyumlu versiyon
   ================================================ */

/* --- CSS Variables --- */
:root {
    --primary-green: #4c785e;
    --honey-gold: #d4a849;
    --beige-bg: #f5f1e8;
    --dark-text: #2d3748;
}

/* --- Tracking Hero Section --- */
.tracking-hero-section {
    background: linear-gradient(135deg, var(--beige-bg) 0%, #ffffff 100%);
    padding: 120px 0 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.tracking-hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 120, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.tracking-breadcrumb {
    margin-bottom: 30px;
}

.tracking-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.tracking-breadcrumb .breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tracking-breadcrumb .breadcrumb-item a:hover {
    color: var(--honey-gold);
}

.tracking-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

.tracking-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Tracking Title */
.tracking-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tracking-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.tracking-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Search Section --- */
.tracking-search-section {
    padding: 60px 0;
    background: #ffffff;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.tracking-search-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.search-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-form-title i {
    color: var(--primary-green);
}

.search-form-description {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 35px;
    text-align: center;
    line-height: 1.6;
}

/* Search Form */
.tracking-search-form {
    display: none;
}

.tracking-search-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.search-form-group {
    margin-bottom: 25px;
}

.search-form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.search-form-label .required {
    color: #dc3545;
    margin-left: 3px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.search-form-control {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(76, 120, 94, 0.1);
}

.btn-track-order {
    background: linear-gradient(135deg, var(--primary-green), #3a6347);
    color: #ffffff;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(76, 120, 94, 0.3);
}

.btn-track-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 120, 94, 0.4);
    background: linear-gradient(135deg, #3a6347, var(--primary-green));
}

.btn-track-order:active {
    transform: translateY(-1px);
}

/* Search Help */
.search-help {
    margin-top: 25px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.search-help i {
    color: #ffc107;
    margin-right: 10px;
}

.search-help p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.btn-back-search {
    background: var(--primary-green);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-back-search:hover {
    background: var(--honey-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Order Status Card */
.order-status-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.order-header {
    background: linear-gradient(135deg, var(--primary-green), #3a6347);
    color: #ffffff;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.order-id-section {
    flex: 1;
}

.order-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.order-date {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-status-badge {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.order-status-badge i {
    font-size: 1.1rem;
}

.order-status-badge.preparing {
    background: rgba(255, 255, 255, 0.95);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.order-status-badge.shipped {
    background: rgba(255, 255, 255, 0.95);
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.order-status-badge.delivered {
    background: rgba(255, 255, 255, 0.95);
    color: #10b981;
    border: 2px solid #10b981;
}

.order-status-badge.cancelled {
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    border: 2px solid #ef4444;
}

/* Status Timeline */
.status-timeline {
    padding: 40px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 10px;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 4px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.timeline-icon i {
    font-size: 1.4rem;
    color: #9ca3af;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 8px rgba(76, 120, 94, 0.1);
    transform: scale(1.1);
}

.timeline-item.active .timeline-icon i {
    color: #ffffff;
}

.timeline-item.current .timeline-icon {
    background: var(--honey-gold);
    border-color: var(--honey-gold);
    box-shadow: 0 0 0 8px rgba(212, 168, 73, 0.15);
    animation: pulse 2s infinite;
}

.timeline-item.current .timeline-icon i {
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(212, 168, 73, 0.15);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(212, 168, 73, 0.05);
    }
}

.timeline-content {
    width: 100%;
}

.timeline-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.timeline-item.active .timeline-title {
    color: var(--primary-green);
    font-weight: 700;
}

.timeline-item.current .timeline-title {
    color: var(--honey-gold);
    font-weight: 700;
}

.timeline-date {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 50%;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    z-index: -1;
    width: 100%;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-item.active .timeline-line {
    background: var(--primary-green);
}

/* Tracking Info Box */
.tracking-info-box {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 40px;
}

.tracking-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracking-number {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tracking-company {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Cancellation Notice */
.cancellation-notice {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #991b1b;
}

.cancellation-notice i {
    font-size: 2rem;
}

.cancellation-notice p {
    margin: 0;
    font-weight: 600;
}

/* Order Details Wrapper */
.order-details-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Details Tabs */
.details-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--beige-bg);
    background: #fafafa;
}

.details-tab {
    flex: 1;
    padding: 18px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.details-tab:hover {
    color: var(--primary-green);
    background: rgba(76, 120, 94, 0.05);
}

.details-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background: #ffffff;
    font-weight: 700;
}

.details-tab i {
    font-size: 1.1rem;
}

.details-tab-content {
    display: none;
    padding: 40px;
}

.details-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Products List */
.order-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-product-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--beige-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.order-product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image.placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image.placeholder i {
    font-size: 2.5rem;
    color: #bdbdbd;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-details {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-details i {
    color: var(--primary-green);
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-quantity {
    color: #6c757d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-total {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Order Summary */
.order-summary {
    background: var(--beige-bg);
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 3px solid var(--primary-green);
}

.summary-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.summary-row:last-child .summary-label {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.15rem;
}

.summary-row:last-child .summary-value {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.4rem;
}

/* Shipping Address */
.shipping-address-card {
    background: var(--beige-bg);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.address-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
}

.address-title i {
    color: var(--primary-green);
    font-size: 1.3rem;
}

.address-info {
    color: #4b5563;
    line-height: 1.9;
}

.address-info p {
    margin-bottom: 8px;
}

.address-info strong {
    color: var(--dark-text);
    font-weight: 600;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .tracking-hero-section {
        padding: 100px 0 40px;
    }

    .tracking-main-title {
        font-size: 2.2rem;
    }

    .tracking-search-wrapper {
        padding: 35px;
    }

    .order-header {
        padding: 25px 30px;
    }

    .status-timeline {
        padding: 30px;
    }

    .details-tab-content {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .tracking-hero-section {
        padding: 80px 0 30px;
        margin-top: 60px;
    }

    .tracking-main-title {
        font-size: 1.8rem;
    }

    .tracking-search-wrapper {
        padding: 25px;
        border-radius: 15px;
    }

    .search-form-title {
        font-size: 1.5rem;
    }

    .order-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .order-number {
        font-size: 1.4rem;
    }

    /* Timeline becomes vertical on mobile */
    .status-timeline {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .timeline-item {
        flex-direction: row;
        text-align: left;
        width: 100%;
    }

    .timeline-icon {
        margin-bottom: 0;
        margin-right: 15px;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .timeline-line {
        display: none !important;
    }

    .timeline-content {
        flex: 1;
    }

    .tracking-info-box {
        margin: 20px;
        padding: 20px;
    }

    .cancellation-notice {
        margin: 20px;
        padding: 15px;
    }

    .details-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .details-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        padding: 15px 20px;
    }

    .details-tab.active {
        border-left-color: var(--primary-green);
        background: var(--beige-bg);
    }

    .details-tab-content {
        padding: 20px;
    }

    .order-product-item {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 200px;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .tracking-main-title {
        font-size: 1.5rem;
    }

    .search-form-title {
        font-size: 1.3rem;
    }

    .btn-track-order {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .order-number {
        font-size: 1.2rem;
    }

    .timeline-title {
        font-size: 0.85rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .tracking-number {
        font-size: 1rem;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.order-status-card {
    animation: fadeIn 0.6s ease forwards;
}

.order-product-item {
    animation: slideIn 0.4s ease forwards;
}

.order-product-item:nth-child(1) { animation-delay: 0.1s; }
.order-product-item:nth-child(2) { animation-delay: 0.2s; }
.order-product-item:nth-child(3) { animation-delay: 0.3s; }
.order-product-item:nth-child(4) { animation-delay: 0.4s; }
.order-product-item:nth-child(5) { animation-delay: 0.5s; }

/* --- Print Styles --- */
@media print {
    .tracking-breadcrumb,
    .tracking-search-section,
    .btn-back-search,
    .details-tabs {
        display: none;
    }

    .order-status-card,
    .order-details-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .order-header {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
