/*
 * Momentum Tracker — Frontend Styles
 * Clean, minimal. All classes namespaced mt- to avoid theme conflicts.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset / Base ─────────────────────────────────────────────────────────── */

.mt-wrap *,
.mt-wrap *::before,
.mt-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mt-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: #1c1b18;
    -webkit-font-smoothing: antialiased;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.mt-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eeede9;
    overflow: hidden;
}

.mt-card--details {
    padding: 28px 40px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.mt-header {
    padding: 40px 40px 32px;
    border-bottom: 1px solid #eeede9;
}

.mt-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a09e98;
    margin-bottom: 16px;
}

.mt-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    color: #1c1b18;
    margin-bottom: 10px;
}

.mt-order-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mt-order-label {
    font-size: 12px;
    color: #a09e98;
}

.mt-order-id {
    font-size: 12px;
    font-weight: 500;
    color: #3d3c38;
    background: #f7f7f5;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #eeede9;
    letter-spacing: 0.08em;
}

/* ── Progress Bar ─────────────────────────────────────────────────────────── */

.mt-progress-section {
    padding: 32px 40px 28px;
    border-bottom: 1px solid #eeede9;
}

.mt-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.mt-progress-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a09e98;
}

.mt-phase-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 500;
    color: #b86b2a;
}

.mt-track {
    width: 100%;
    height: 4px;
    background: #eeede9;
    border-radius: 99px;
    overflow: hidden;
}

.mt-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3d7a5e 0%, #b86b2a 100%);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Checklist ────────────────────────────────────────────────────────────── */

.mt-checklist-section {
    padding: 32px 40px;
}

.mt-section-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a09e98;
    margin-bottom: 24px;
}

.mt-checklist {
    list-style: none;
    position: relative;
}

/* Vertical connector line */
.mt-checklist::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #eeede9;
}

.mt-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    position: relative;
}

.mt-item + .mt-item {
    border-top: 1px solid #f7f7f5;
}

/* ── Stage dot ────────────────────────────────────────────────────────────── */

.mt-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.mt-dot-done {
    background: #edf5f0;
    border: 1.5px solid #3d7a5e;
    color: #3d7a5e;
}

.mt-dot-current {
    background: #fdf3ea;
    border: 1.5px solid #b86b2a;
    color: #b86b2a;
    animation: mt-pulse 2.5s ease-in-out infinite;
}

.mt-dot-upcoming {
    background: #ffffff;
    border: 1.5px solid #d4d2cc;
    color: #d4d2cc;
}

@keyframes mt-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(184, 107, 42, 0.08); }
    50%       { box-shadow: 0 0 0 8px rgba(184, 107, 42, 0.04); }
}

/* ── Item text ────────────────────────────────────────────────────────────── */

.mt-item-body {
    padding-top: 4px;
    flex: 1;
}

.mt-item-name {
    font-size: 14px;
    font-weight: 400;
    color: #1c1b18;
    margin-bottom: 4px;
    line-height: 1;
}

.mt-upcoming .mt-item-name {
    color: #a09e98;
}

.mt-item-desc {
    font-size: 12px;
    color: #a09e98;
    line-height: 1.5;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */

.mt-badge {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.mt-badge-done     { background: #edf5f0; color: #3d7a5e; }
.mt-badge-current  { background: #fdf3ea; color: #b86b2a; }
.mt-badge-upcoming { background: #f7f7f5; color: #a09e98; }

/* ── Calm Line ────────────────────────────────────────────────────────────── */

.mt-calm {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: #f7f7f5;
    border-top: 1px solid #eeede9;
}

.mt-calm p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-style: italic;
    color: #a09e98;
    line-height: 1.5;
}

.mt-calm svg {
    flex-shrink: 0;
    color: #a09e98;
}

.mt-error p {
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-size: 14px;
}

.mt-error a {
    color: #b86b2a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Order Details ────────────────────────────────────────────────────────── */

.mt-card--details .mt-section-label {
    margin-bottom: 20px;
}

.mt-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

.mt-detail-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a09e98;
    margin-bottom: 4px;
}

.mt-detail-value {
    font-size: 13px;
    font-weight: 400;
    color: #3d3c38;
    line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.mt-footer {
    text-align: center;
    font-size: 11px;
    color: #a09e98;
    letter-spacing: 0.06em;
}

.mt-footer a {
    color: #a09e98;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Lookup Form ──────────────────────────────────────────────────────────── */

.mt-header-sub {
    font-size: 13px;
    color: #a09e98;
    margin-top: 8px;
    line-height: 1.6;
}

.mt-form-section {
    padding: 32px 40px;
}

.mt-form-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef5f5;
    border: 1px solid #f5c5c5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.5;
}

.mt-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mt-field {}

.mt-field-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a09e98;
    margin-bottom: 8px;
}

.mt-field-input {
    width: 100%;
    padding: 12px 14px;
    background: #f7f7f5;
    border: 1px solid #eeede9;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #1c1b18;
    outline: none;
    transition: border-color 0.2s;
}

.mt-field-input:focus {
    border-color: #a09e98;
    background: #ffffff;
}

.mt-field-input::placeholder {
    color: #d4d2cc;
}

.mt-field-hint {
    font-size: 11px;
    color: #d4d2cc;
    margin-top: 6px;
    line-height: 1.5;
}

.mt-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1c1b18;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.mt-submit-btn:hover {
    opacity: 0.85;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
    .mt-header,
    .mt-progress-section,
    .mt-checklist-section,
    .mt-calm {
        padding-left: 24px;
        padding-right: 24px;
    }

    .mt-card--details {
        padding: 24px;
    }

    .mt-title {
        font-size: 24px;
    }

    .mt-details-grid {
        grid-template-columns: 1fr;
    }

    .mt-progress-meta {
        flex-direction: column;
        gap: 4px;
    }
}
