/*
 * Magaza "Hesabim" ekranlari.
 * store.css'in tamamlayicisidir; ayni :root degiskenlerini kullanir,
 * hicbir rengi sabit kodlamaz (kirmizi/yesil durum renkleri haric).
 * Sayfa basina @push('head') ile yuklenir.
 */

.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 24px 0 48px; }

/* --------------------------------------------------------------- yan menu */

.account-nav {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--store-radius);
    background: #fff;
    overflow: hidden;
    align-self: start;
    position: sticky;
    top: 88px;
}
.account-nav__head { padding: 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.account-nav__name { font-weight: 600; display: block; }
.account-nav__mail { font-size: 12px; color: #888; word-break: break-all; }
.account-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.account-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; font-size: 13px; border-left: 3px solid transparent;
}
.account-nav a:hover { background: rgba(0, 0, 0, .04); }
.account-nav a.is-active {
    border-left-color: var(--store-primary);
    color: var(--store-primary);
    background: rgba(0, 0, 0, .03);
    font-weight: 600;
}
.account-nav__logout { padding: 8px 16px 16px; }

/* ------------------------------------------------------------------ kutu */

.account-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--store-radius);
    background: #fff;
    margin-bottom: 20px;
}
.account-card__head {
    padding: 14px 18px; border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.account-card__title { margin: 0; font-size: 15px; font-weight: 600; }
.account-card__body { padding: 18px; }

.account-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

/* ---------------------------------------------------------------- ozetler */

.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.account-stat {
    border: 1px solid rgba(0, 0, 0, .08); border-radius: var(--store-radius);
    background: #fff; padding: 16px; display: flex; align-items: center; gap: 12px;
}
.account-stat i { font-size: 22px; color: var(--store-primary); }
.account-stat__value { font-size: 18px; font-weight: 700; display: block; line-height: 1.2; }
.account-stat__label { font-size: 12px; color: #888; }

/* ---------------------------------------------------------------- tablolar */

.account-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.account-table th {
    text-align: left; font-weight: 600; font-size: 12px; color: #666;
    padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, .08); white-space: nowrap;
}
.account-table td { padding: 12px; border-bottom: 1px solid rgba(0, 0, 0, .05); vertical-align: middle; }
.account-table tr:last-child td { border-bottom: none; }
.account-table__scroll { overflow-x: auto; }

.account-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .06);
}
.account-badge--success { background: rgba(26, 147, 111, .12); color: #1a936f; }
.account-badge--warning { background: rgba(214, 145, 22, .14); color: #a86a06; }
.account-badge--danger  { background: rgba(200, 47, 47, .12);  color: #c82f2f; }
.account-badge--info    { background: rgba(35, 183, 229, .14); color: #147c9c; }
.account-badge--muted   { background: rgba(0, 0, 0, .06);      color: #666; }

.account-amount--plus  { color: #1a936f; font-weight: 600; }
.account-amount--minus { color: #c82f2f; font-weight: 600; }

/* ------------------------------------------------------------------ formlar */

.account-form label { font-size: 13px; font-weight: 500; margin-bottom: 4px; display: block; }
.account-form .form-control,
.account-form .form-select {
    border-radius: var(--store-radius); font-size: 14px; padding: 9px 12px;
    border: 1px solid rgba(0, 0, 0, .15); width: 100%; background: #fff; color: var(--store-text);
}
.account-form .form-control:focus,
.account-form .form-select:focus { outline: none; border-color: var(--store-primary); }
.account-form .field-error { color: #c82f2f; font-size: 12px; margin-top: 4px; display: block; }
.account-form .form-hint { color: #888; font-size: 12px; }

.account-consent {
    border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--store-radius);
    padding: 12px 14px; margin-bottom: 10px; font-size: 13px; background: #fafafb;
}
.account-consent--required { border-color: var(--store-primary); background: #fff; }

/* ------------------------------------------------------------------ adres */

.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.address-card {
    border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--store-radius);
    padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 8px;
}
.address-card.is-default { border-color: var(--store-primary); }
.address-card__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.address-card__body { font-size: 13px; color: #555; flex: 1; }
.address-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- zaman cizelgesi */

.account-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(0, 0, 0, .08); }
.account-timeline li { position: relative; padding: 0 0 16px 12px; font-size: 13px; }
.account-timeline li::before {
    content: ''; position: absolute; left: -25px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--store-primary);
}
.account-timeline time { display: block; color: #888; font-size: 12px; }

/* ---------------------------------------------------------------- giris kutusu */

.auth-wrap { max-width: 460px; margin: 0 auto; padding: 40px 0 60px; }
.auth-wrap--wide { max-width: 640px; }
.auth-card {
    border: 1px solid rgba(0, 0, 0, .08); border-radius: var(--store-radius);
    background: #fff; padding: 28px;
}
.auth-card h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.auth-card p.auth-lead { color: #777; font-size: 13px; margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 13px; }

@media (max-width: 991px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .address-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .account-stats { grid-template-columns: 1fr; }
    .account-card__body { padding: 14px; }
}

@media print {
    .store-header, .store-footer, .store-topbar, .no-print { display: none !important; }
}
