/* Premium AI Chat Preview - Clean Luxury Concept */

.aj-chat-preview {
    background: #fdfbf7; /* Conch theme */
    border: 1px solid rgba(200, 126, 74, 0.25); /* Copper subtle */
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(15, 48, 50, 0.06), 
        0 1px 3px rgba(15, 48, 50, 0.04);
    overflow: hidden;
    font-family: var(--font-display), "Noto Serif Devanagari", serif;
    color: #0f3032; /* Peacock */
    width: min(100%, 540px);
    margin: 0 auto;
    position: relative;
}

.aj-chat-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #c87e4a, #d1563e); /* Copper to Vermilion */
}

.aj-chat-preview__header {
    display: flex;
    justify-content: center;
    padding: 16px 24px 12px;
    border-bottom: 1px solid rgba(15, 48, 50, 0.06);
    background: #f8f6f0;
}

.aj-chat-preview__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(200, 126, 74, 0.1);
    color: #b36932;
    border: 1px solid rgba(200, 126, 74, 0.2);
    border-radius: 999px;
    font-family: var(--font-mono), monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aj-chat-preview__badge svg {
    color: #c87e4a;
}

.aj-chat-preview__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aj-chat-message {
    display: flex;
    gap: 16px;
    animation: aj-fade-in-up 0.6s ease-out both;
}

.aj-chat-message--user {
    animation-delay: 0.2s;
}

.aj-chat-message--ai {
    animation-delay: 1.2s;
}

.aj-chat-message__avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aj-chat-message--user .aj-chat-message__avatar {
    background: #f0ebe1;
    color: #7a8c8b;
}

.aj-chat-message--user .aj-chat-message__avatar svg {
    width: 18px;
    height: 18px;
}

.aj-chat-message--ai .aj-chat-message__avatar {
    background: #0f3032; /* Peacock */
    color: #fdfbf7;
    box-shadow: 0 4px 12px rgba(15, 48, 50, 0.2);
}

.aj-chat-message--ai .aj-chat-message__avatar svg {
    width: 18px;
    height: 18px;
}

.aj-chat-message__bubble {
    flex: 1;
    min-width: 0;
}

.aj-chat-message--user .aj-chat-message__bubble p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #0f3032;
    font-weight: 500;
}

.aj-chat-message--ai .aj-chat-message__bubble {
    background: #ffffff;
    border: 1px solid rgba(15, 48, 50, 0.08);
    padding: 20px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.aj-chat-message--ai .aj-chat-message__bubble p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(15, 48, 50, 0.85);
    font-family: var(--font-display), "Noto Serif Devanagari", serif;
}

.aj-chat-message--ai .aj-chat-message__bubble p:last-child {
    margin-bottom: 0;
}

.aj-chat-message--ai .aj-chat-message__bubble strong {
    color: #0f3032;
    font-weight: 600;
    font-size: 16px;
}

.aj-chat-preview__highlight {
    background: rgba(200, 126, 74, 0.08);
    border-left: 3px solid #c87e4a;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aj-chat-preview__date {
    font-family: var(--font-mono), monospace;
    font-size: 13px;
    font-weight: 700;
    color: #b36932;
}

.aj-chat-preview__note {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(15, 48, 50, 0.6);
    font-family: var(--font-mono), monospace;
}

.aj-chat-preview__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    animation: aj-fade-in-up 0.6s 0.7s ease-out both;
}

.aj-chat-preview__divider span {
    font-family: var(--font-mono), monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(15, 48, 50, 0.5);
    background: rgba(15, 48, 50, 0.05);
    padding: 6px 14px;
    border-radius: 999px;
}

@keyframes aj-fade-in-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .aj-chat-preview__body { padding: 16px; }
    .aj-chat-message--ai .aj-chat-message__bubble { padding: 16px; }
    .aj-chat-message--user .aj-chat-message__bubble p { font-size: 15px; }
    .aj-chat-message--ai .aj-chat-message__bubble p { font-size: 14px; }
}

/* ========================================================================= */
/* Parent Layout Classes (From services.php / old layout) to preserve page flow */
/* ========================================================================= */

.journey-hero__grid--evidence {
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    align-items: center;
    gap: clamp(34px, 6vw, 88px);
}
.journey-evidence { 
    min-width: 0; 
    display: flex;
    justify-content: center;
}

.journey-access {
    display: grid; grid-template-columns: minmax(220px, 1.1fr) repeat(2, minmax(190px, .8fr)); gap: 18px;
    align-items: stretch; margin-top: clamp(34px, 5vw, 58px); padding-block: 20px; border-block: 1px solid rgba(15, 48, 50, 0.1);
}
.journey-access__intro { padding: 6px 18px 6px 0; }
.journey-access__intro h3 { max-width: 19ch; margin: 9px 0 0; font-family: var(--font-display); font-size: clamp(21px, 2.3vw, 29px); font-weight: 500; line-height: 1.08; color: #0f3032; }
.journey-access__item { display: grid; align-content: start; gap: 7px; padding: 17px 18px; border-top: 1px solid rgba(200, 126, 74, 0.2); border-right: 1px solid rgba(200, 126, 74, 0.12); border-bottom: 1px solid rgba(200, 126, 74, 0.2); border-left: 3px solid var(--copper); background: rgba(255, 253, 248, 0.6); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: transform 0.3s ease; }
.journey-access__item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.journey-access__item--token { border-left-color: var(--vermilion); background: rgba(209, 86, 62, 0.05); }
.journey-access__item span { color: var(--copper); font-family: var(--font-mono); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.journey-access__item--token span { color: var(--vermilion); }
.journey-access__item strong { color: #0f3032; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.15; }
.journey-access__item p { margin: 0; color: rgba(15, 48, 50, 0.7); font-size: 13px; line-height: 1.55; }
.journey-section__intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr); gap: clamp(36px, 8vw, 120px); align-items: end; }
.journey-section__intro h2 { max-width: 18ch; margin: 10px 0 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; color: #0f3032; }
.journey-section__intro > p { max-width: 52ch; margin: 0 0 5px; color: rgba(15, 48, 50, 0.7); font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }

@media (max-width: 900px) {
    .journey-hero__grid--evidence { grid-template-columns: 1fr; }
    .journey-access { grid-template-columns: 1fr 1fr; }
    .journey-access__intro { grid-column: 1 / -1; padding-right: 0; }
    .journey-section__intro { grid-template-columns: 1fr; gap: 18px; }
    .journey-section__intro > p { max-width: 62ch; }
}
@media (max-width: 600px) {
    .journey-access { grid-template-columns: 1fr; gap: 12px; }
    .journey-access__intro { grid-column: auto; }
    .journey-section__intro h2 { font-size: 40px; }
}
