/* ============================================================
   customer-orders.css — Toon Pop Siparişlerim Sayfası
   ────────────────────────────────────────────────────────────
   View:    views/customer_orders.php
   Class:   br-page-customer-orders + br-page-customer-orders__*
============================================================ */


/* ============================================================
   PAGE WRAPPER
============================================================ */
.br-page-customer-orders {
    background: var(--br-bg-1);
    background-image: var(--br-halftone-light);
    background-size: var(--br-halftone-size);
    min-height: 70vh;
    padding: 24px 16px 48px;
}

.br-page-customer-orders__wrap {
    max-width: 800px;
    margin: 0 auto;
}


/* ============================================================
   v027 — BACK LINK (Hesabıma Dön)
   addr-back ile aynı pattern: beyaz pill + wine border + offset shadow
============================================================ */
.co-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--br-white);
    color: var(--br-wine);
    border: 2px solid var(--br-wine);
    border-radius: var(--br-radius-pill);
    box-shadow: 2px 2px 0 var(--br-wine);
    padding: 6px 14px;
    font-family: var(--br-font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
}
.co-back:hover {
    background: var(--br-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--br-wine);
    color: var(--br-wine);
    text-decoration: none;
}
/* theme-dark <a> override */
.co-back,
body .co-back,
body.theme-dark .co-back,
body.theme-dark a.co-back {
    color: var(--br-wine) !important;
    text-decoration: none !important;
}
.co-back:hover,
body.theme-dark a.co-back:hover {
    color: var(--br-wine) !important;
    text-decoration: none !important;
}


/* ============================================================
   HEADER
============================================================ */
.br-page-customer-orders__header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.br-page-customer-orders__title {
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: clamp(1.625rem, 4vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--br-white);
    -webkit-text-stroke: 2px var(--br-wine);
    text-shadow: 4px 4px 0 var(--br-gold);
    margin: 0 0 8px;
}


/* ============================================================
   ORDER CARD
============================================================ */
.br-page-customer-orders__card {
    background: var(--br-white);
    color: var(--br-wine);
    border: var(--br-border);
    border-radius: var(--br-radius-lg);
    box-shadow: var(--br-shadow-sm);
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: block;
}
.br-page-customer-orders__card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--br-shadow-md);
    background: var(--br-cream);
    color: var(--br-wine);
    text-decoration: none;
}


/* ============================================================
   CARD HEAD (sipariş no + tarih + status)
============================================================ */
.br-page-customer-orders__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.br-page-customer-orders__card-no {
    display: inline-block;
    font-family: var(--br-font-mono);
    font-size: 12px;
    font-weight: 700;
    background: var(--br-wine);
    color: var(--br-yellow);
    border: 2px solid var(--br-wine);
    border-radius: var(--br-radius-sm);
    box-shadow: 2px 2px 0 var(--br-gold);
    padding: 4px 10px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.br-page-customer-orders__card-date {
    font-family: var(--br-font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--br-wine-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.br-page-customer-orders__card-status {
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 2px solid var(--br-wine);
    border-radius: var(--br-radius-sm);
    box-shadow: 2px 2px 0 var(--br-wine);
    padding: 3px 10px;
    line-height: 1.4;
    background: var(--br-cream);
    color: var(--br-wine);
}

/* Status renk kombinasyonları (data attribute ile) */
.br-page-customer-orders__card-status[data-status="pending"],
.br-page-customer-orders__card-status.is-pending {
    background: var(--br-status-pending-bg);
    color: var(--br-status-pending-fg);
}
.br-page-customer-orders__card-status[data-status="confirmed"],
.br-page-customer-orders__card-status.is-confirmed,
.br-page-customer-orders__card-status[data-status="preparing"],
.br-page-customer-orders__card-status.is-preparing,
.br-page-customer-orders__card-status[data-status="on_the_way"],
.br-page-customer-orders__card-status.is-on-the-way {
    background: var(--br-yellow);
    color: var(--br-wine);
}
.br-page-customer-orders__card-status[data-status="delivered"],
.br-page-customer-orders__card-status.is-delivered,
.br-page-customer-orders__card-status[data-status="completed"],
.br-page-customer-orders__card-status.is-completed {
    background: var(--br-olive);
    color: var(--br-white);
    border-color: var(--br-wine);
}
.br-page-customer-orders__card-status[data-status="cancelled"],
.br-page-customer-orders__card-status.is-cancelled {
    background: var(--br-gold);
    color: var(--br-white);
    border-color: var(--br-wine);
}


/* ============================================================
   CARD BODY (özet items + toplam)
============================================================ */
.br-page-customer-orders__card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 2px dashed var(--br-wine-line);
}

.br-page-customer-orders__card-summary {
    flex: 1;
    font-size: 13px;
    color: var(--br-wine);
    line-height: 1.5;
}
.br-page-customer-orders__card-summary strong {
    font-family: var(--br-font-display);
    font-weight: 700;
    color: var(--br-wine);
}

.br-page-customer-orders__card-total {
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--br-gold);
    line-height: 1;
    white-space: nowrap;
}


/* ============================================================
   CTA INSIDE CARD (sipariş takip)
============================================================ */
.br-page-customer-orders-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--br-gold);
    color: var(--br-white);
    border: 2px solid var(--br-wine);
    border-radius: var(--br-radius-sm);
    box-shadow: 2px 2px 0 var(--br-wine);
    padding: 6px 14px;
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 8px;
}
.br-page-customer-orders-btn:hover {
    background: var(--br-gold-dark);
    color: var(--br-white);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--br-wine);
    text-decoration: none;
}

/* v027 — theme-dark <a> override (yazılar görünsün) */
.br-page-customer-orders-btn,
body .br-page-customer-orders-btn,
body.theme-dark .br-page-customer-orders-btn,
body.theme-dark a.br-page-customer-orders-btn {
    color: var(--br-white) !important;
    text-decoration: none !important;
}
.br-page-customer-orders-btn:hover,
body.theme-dark a.br-page-customer-orders-btn:hover {
    color: var(--br-white) !important;
    text-decoration: none !important;
}
.br-page-customer-orders-btn.is-active {
    background: var(--br-wine);
    border-color: var(--br-gold);
    box-shadow: 2px 2px 0 var(--br-gold);
}
.br-page-customer-orders-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* v027 — Pagination konteyner: butonlar yan yana, ortalı */
.co-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 8px;
}


/* ============================================================
   v027 — FILTER PILL BUTONS (Tümü / Aktif / Tamamlanan)
============================================================ */
.co-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 0 8px;
}

.co-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--br-white);
    color: var(--br-wine);
    border: 2px solid var(--br-wine);
    border-radius: var(--br-radius-pill);
    box-shadow: 2px 2px 0 var(--br-wine);
    padding: 8px 16px;
    font-family: var(--br-font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.co-filter-pill:hover {
    background: var(--br-yellow);
    color: var(--br-wine);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--br-wine);
    text-decoration: none;
}
.co-filter-pill.is-active {
    background: var(--br-wine);
    color: var(--br-yellow);
    border-color: var(--br-wine);
    box-shadow: 2px 2px 0 var(--br-gold);
}
.co-filter-pill.is-active:hover {
    background: var(--br-wine);
    color: var(--br-yellow);
}

/* theme-dark <a> override (yazılar görünsün) */
.co-filter-pill,
body .co-filter-pill,
body.theme-dark .co-filter-pill,
body.theme-dark a.co-filter-pill {
    color: var(--br-wine) !important;
    text-decoration: none !important;
}
.co-filter-pill.is-active,
body.theme-dark .co-filter-pill.is-active,
body.theme-dark a.co-filter-pill.is-active {
    color: var(--br-yellow) !important;
}

/* Sayım rozeti */
.co-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    background: var(--br-yellow);
    color: var(--br-wine);
    border: 1.5px solid var(--br-wine);
    border-radius: var(--br-radius-pill);
    font-family: var(--br-font-mono);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.co-filter-pill.is-active .co-filter-count {
    background: var(--br-gold);
    color: var(--br-wine);
}


/* ============================================================
   EMPTY STATE
============================================================ */
.br-page-customer-orders__empty {
    text-align: center;
    padding: 56px 24px;
    background: var(--br-white);
    border: var(--br-border);
    border-radius: var(--br-radius-lg);
    box-shadow: var(--br-shadow-sm);
    margin: 24px auto;
    max-width: 480px;
}

.br-page-customer-orders__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--br-yellow);
    color: var(--br-wine);
    border: var(--br-border-thick);
    border-radius: 999px;
    box-shadow: var(--br-shadow-md);
    font-size: 38px;
    margin-bottom: 14px;
}

.br-page-customer-orders__empty-title {
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: 1.375rem;
    text-transform: uppercase;
    color: var(--br-wine);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.br-page-customer-orders__empty-desc {
    font-size: 14px;
    color: var(--br-wine-light);
    line-height: 1.55;
    margin: 0 0 18px;
}

.br-page-customer-orders__empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--br-gold);
    color: var(--br-white);
    border: var(--br-border);
    border-radius: var(--br-radius-md);
    box-shadow: var(--br-shadow-sm);
    padding: 12px 22px;
    font-family: var(--br-font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.br-page-customer-orders__empty-btn:hover {
    background: var(--br-gold-dark);
    color: var(--br-white);
    transform: translate(-1px, -1px);
    box-shadow: var(--br-shadow-hover);
    text-decoration: none;
}

/* v028 — theme-dark <a> override (yazı görünsün) */
.br-page-customer-orders__empty-btn,
body .br-page-customer-orders__empty-btn,
body.theme-dark .br-page-customer-orders__empty-btn,
body.theme-dark a.br-page-customer-orders__empty-btn {
    color: var(--br-white) !important;
    text-decoration: none !important;
}
.br-page-customer-orders__empty-btn:hover,
body.theme-dark a.br-page-customer-orders__empty-btn:hover {
    color: var(--br-white) !important;
    text-decoration: none !important;
}
