/* ═══════════════════════════════════════════════════════════
   Solestra Rental — My Account: Randevularım Sayfası
   Trousseau tema ile uyumlu kurumsal tasarım
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   DASHBOARD (Anasayfa) — Kullanıcı kartı + kısayol grid
   ═══════════════════════════════════════════════════════════ */

.solestra-dashboard {
    font-family: "Muli", sans-serif;
    color: #000;
}

/* ── Kullanıcı Bilgi Kartı ── */

.solestra-dashboard-user {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    background: #000;
    color: #fff;
    margin: 0 0 28px;
}

.solestra-dashboard-user-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Muli", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.solestra-dashboard-user-info {
    flex: 1;
    min-width: 0;
}

.solestra-dashboard-user-info h3 {
    font-family: "Muli", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.solestra-dashboard-user-info dl {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.solestra-dashboard-user-info dl > div {
    min-width: 0;
}

.solestra-dashboard-user-info dt {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 4px;
}

.solestra-dashboard-user-info dd {
    font-size: 13px;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* ── Kısayol Grid'i ── */

.solestra-dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 20px;
}

@media (min-width: 768px) {
    .solestra-dashboard-shortcuts {
        grid-template-columns: repeat(4, 1fr);
    }
}

.solestra-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none !important;
    color: #000;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
    text-align: center;
}

.solestra-shortcut:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.solestra-shortcut-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.solestra-shortcut-icon svg {
    display: block;
    stroke: currentColor;
}

.solestra-shortcut-label {
    font-family: "Muli", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: inherit;
    line-height: 1.2;
}

.solestra-shortcut--logout {
    border-color: #e8e8e8;
}

.solestra-shortcut--logout:hover {
    background: #b00020;
    border-color: #b00020;
    color: #fff;
}

/* Dashboard mobilde — kullanıcı kartı dikey */
@media (max-width: 520px) {
    .solestra-dashboard-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .solestra-dashboard-user-info dl {
        gap: 14px;
    }

    .solestra-shortcut {
        padding: 22px 12px;
    }

    .solestra-shortcut-label {
        font-size: 9px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RANDEVULARIM SAYFASI
   ═══════════════════════════════════════════════════════════ */

.solestra-my-appointments {
    font-family: "Muli", sans-serif;
    color: #000;
}

/* ── Header ── */

.solestra-my-appointments-header {
    margin: 0 0 32px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.solestra-my-appointments-header h2 {
    font-family: "Muli", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 10px;
}

.solestra-my-appointments-intro {
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ── Boş durum ── */

.solestra-my-appointments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 20px;
    text-align: center;
    color: #aaa;
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.solestra-my-appointments-empty svg {
    stroke: #c0c0c0;
}

.solestra-my-appointments-empty p {
    margin: 0;
    font-size: 13px;
    color: #6a6a6a;
}

.solestra-my-appointments-empty .solestra-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background-color 0.2s ease-out;
}

.solestra-my-appointments-empty .solestra-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   BÖLÜM BAŞLIKLARI
   ═══════════════════════════════════════════════════════════ */

.solestra-appointments-section {
    margin: 0 0 40px;
}

.solestra-appointments-section:last-child {
    margin-bottom: 0;
}

.solestra-appointments-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Muli", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f0;
}

.solestra-appointments-count {
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.solestra-appointments-section--past .solestra-appointment-card {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   RANDEVU KARTI
   ═══════════════════════════════════════════════════════════ */

.solestra-appointments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.solestra-appointment-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.solestra-appointment-card:hover {
    border-color: #000;
}

/* ── Thumbnail ── */

.solestra-appointment-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 120px;
    background: #fafafa;
    overflow: hidden;
}

.solestra-appointment-thumb img,
.solestra-appointment-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.solestra-appointment-thumb img {
    object-fit: cover;
}

/* ── Details ── */

.solestra-appointment-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solestra-appointment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.solestra-appointment-product {
    font-family: "Muli", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.solestra-appointment-product a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.solestra-appointment-product a:hover {
    color: #6a6a6a;
}

/* ── Status Badge ── */

.solestra-status-badge {
    display: inline-flex;
    align-items: center;
    font-family: "Muli", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 5px 9px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.solestra-status-badge--pending {
    color: #8a6d00;
    background: #fdf6d7;
}

.solestra-status-badge--approved {
    color: #0a6b2e;
    background: #e3f4e8;
}

.solestra-status-badge--cancelled {
    color: #666;
    background: #efefef;
}

.solestra-status-badge--completed {
    color: #1d4ed8;
    background: #e6efff;
}

/* ── Meta (tarih, saat, ID) ── */

.solestra-appointment-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0;
}

.solestra-appointment-meta > div {
    min-width: 0;
}

.solestra-appointment-meta dt {
    font-size: 9px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.solestra-appointment-meta dd {
    font-size: 13px;
    color: #000;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* ── Aksiyon Butonları ── */

.solestra-appointment-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.solestra-cancel-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    font-family: "Muli", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease-out;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.solestra-cancel-appointment:hover {
    background: #000;
    color: #fff;
}

.solestra-cancel-appointment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   MY ACCOUNT MENÜ (sol sidebar) — Trousseau uyumlu
   ═══════════════════════════════════════════════════════════ */

.woocommerce-MyAccount-navigation ul li a,
.woocommerce-MyAccount-navigation-link a {
    font-family: "Muli", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
}

/* Yeni eklenen "randevularım" endpoint'i için active state */
.woocommerce-MyAccount-navigation-link--randevularim.is-active a,
.woocommerce-MyAccount-navigation-link.is-active a {
    color: #000 !important;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 680px) {
    .solestra-appointment-card {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .solestra-appointment-thumb {
        width: 100%;
        height: 220px;
    }

    .solestra-appointment-meta {
        grid-template-columns: 1fr 1fr;
    }

    .solestra-appointment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .solestra-appointment-product {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .solestra-appointment-meta {
        grid-template-columns: 1fr;
    }
}
