/* ============================================================
   LinaKargo Frontend CSS – Modern Tasarım v2
   ============================================================ */

/* ---- Kargo Takip Sayfası ---- */
.lk-tracking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lk-tracking-search {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 28px;
    color: #fff;
}
.lk-tracking-search h2 {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}
.lk-tracking-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.lk-tracking-search form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.lk-input {
    flex: 1;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lk-btn {
    padding: 13px 24px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.lk-btn:hover { background: #16a34a; }
.lk-btn:active { transform: scale(0.98); }

/* ---- Takip Sonucu Kutusu ---- */
.lk-tracking-result-box {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
}
.lk-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 12px;
}
.lk-carrier-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #111827;
    font-weight: 800;
}
.lk-tracking-code {
    font-family: monospace;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 6px;
}
.lk-status-badge-large {
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ---- İlerleme Çubuğu ---- */
.lk-progress-track { margin: 28px 0; }
.lk-progress-line {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
}
.lk-progress-active {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.lk-progress-steps {
    display: flex;
    justify-content: space-between;
}
.lk-step {
    text-align: center;
    flex: 1;
}
.lk-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}
.lk-step.active .lk-step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.lk-step.current .lk-step-circle {
    background: #fff;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
    color: #22c55e;
}
.lk-step span {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.lk-step.active span, .lk-step.current span { color: #374151; font-weight: 600; }

/* ---- Gönderi Detayları ---- */
.lk-shipment-details {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}
.lk-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
}
.lk-detail-label { color: #6b7280; font-size: 13px; }
.lk-detail-value { color: #111827; font-weight: 600; font-size: 13px; }

/* ---- Takip Bulunamadı ---- */
.lk-tracking-notfound,
.lk-tracking-error {
    text-align: center;
    padding: 56px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}
.lk-tracking-notfound p,
.lk-tracking-error p { color: #6b7280; font-size: 15px; margin: 0; }
.lk-tracking-error h2 { color: #1f2937; margin: 12px 0 8px; font-size: 18px; }

/* ---- Sipariş Takip Çubuğu (Hesabım / Sipariş Detay) ---- */
.lk-order-tracking-bar {
    margin: 0 0 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Müşteri Takip Kutusu ---- */
.lk-customer-tracking-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.lk-tracking-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}
.lk-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.lk-progress-track-customer {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.lk-progress-active-customer {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.lk-progress-percent {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    min-width: 36px;
    text-align: right;
}
.lk-tracking-steps-customer {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}
.lk-tracking-steps-customer::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.lk-step-customer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}
.lk-step-icon-customer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}
.lk-step-customer.active .lk-step-icon-customer {
    box-shadow: 0 0 0 2px currentColor;
}
.lk-step-customer.current .lk-step-icon-customer {
    box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}
.lk-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
}
.lk-step-customer.active .lk-step-label,
.lk-step-customer.current .lk-step-label { color: #111827; }
.lk-step-now {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
}
.lk-step-number { font-size: 12px; font-weight: 700; color: #9ca3af; }

/* ---- Takip Bilgi Satırları ---- */
.lk-tracking-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.lk-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.lk-info-row:last-child { border-bottom: none; }
.lk-info-label { font-size: 13px; color: #6b7280; font-weight: 500; }
.lk-info-value { font-size: 13px; color: #111827; font-weight: 600; }
.lk-info-value code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
}
.lk-status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* ---- Dış Takip Butonları ---- */
.lk-external-track-btn,
.lk-white-label-track { margin-top: 10px; }
.lk-btn-track-external,
.lk-btn-track-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
.lk-btn-track-external {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.lk-btn-track-external:hover { background: #dbeafe; color: #1d4ed8; }
.lk-btn-track-white {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    margin-top: 8px;
}
.lk-btn-track-white:hover { background: #dcfce7; color: #166534; }

/* ---- İade Formu ---- */
.lk-return-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lk-return-form-container h2 {
    color: #111827;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 800;
}
.lk-order-summary {
    background: #f9fafb;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #f3f4f6;
}
.lk-order-summary h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}
.lk-order-summary ul { margin: 0; padding-left: 18px; }
.lk-order-summary li { padding: 3px 0; font-size: 13px; color: #4b5563; }
.lk-return-form-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
}
.lk-return-form-container input,
.lk-return-form-container select,
.lk-return-form-container textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.lk-return-form-container input:focus,
.lk-return-form-container select:focus,
.lk-return-form-container textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.lk-btn-primary {
    padding: 14px 28px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.lk-btn-primary:hover { background: #1d4ed8; }
.lk-btn-primary:active { transform: scale(0.99); }

/* ---- Hesabım İade Sayfası ---- */
.lk-myaccount-returns {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lk-return-form-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lk-return-action-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Çerez Banner ---- */
#lk-cookie-banner {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- WooCommerce Ödeme Sayfası Kargo Seçenekleri ---- */
ul#shipping_method li {
    padding: 12px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
}
ul#shipping_method li:hover {
    border-color: #2563eb !important;
    background-color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08) !important;
}
ul#shipping_method li input[type=radio]:checked + label,
ul#shipping_method li:has(input:checked) {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}
ul#shipping_method li input { margin-right: 10px !important; }
ul#shipping_method li label {
    display: inline-flex !important;
    align-items: center !important;
    width: calc(100% - 28px) !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}
.lk-shipping-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.lk-carrier-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .lk-tracking-steps-customer {
        flex-wrap: wrap;
        gap: 12px;
    }
    .lk-tracking-steps-customer::before { display: none; }
    .lk-step-customer { flex: 1 1 30%; }
    .lk-tracking-search { padding: 28px 20px; }
    .lk-tracking-search form { flex-direction: column; }
    .lk-result-header { flex-direction: column; align-items: flex-start; }
    .lk-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
