/* ==========================================================
   Armory Forge Systems — The Armorer Page
   AI Receptionist chat interface · Forge-styled
   ========================================================== */

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.armorer-hero {
    text-align: center;
    padding: 100px 20px 40px;
}

.hero-intro {
    max-width: 640px;
    margin: 0 auto;
}

.armorer-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--forge-orange, #ff6b00);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.05rem;
    color: #b0b0b0;
    line-height: 1.7;
}

.hero-rule {
    width: 80px;
    height: 2px;
    background: var(--forge-orange, #ff6b00);
    margin: 30px auto 0;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════
   CHAT INTERFACE
   ═══════════════════════════════════════════ */

.chat-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.chat-container {
    background: linear-gradient(180deg, #1a1a1a, #101010);
    border: 1px solid rgba(255,107,0,.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(255,107,0,.06),
        0 12px 40px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    height: 560px;
    max-height: 70vh;
}

/* ── Messages area ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,107,0,.15);
    border-radius: 10px;
}

/* ── Message bubbles ── */
.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageSlideIn .3s ease-out;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.message--armorer {
    align-self: flex-start;
}

.message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,107,0,.10);
    border: 1px solid rgba(255,107,0,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: .93rem;
    line-height: 1.6;
}

.message--armorer .message-bubble {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,107,0,.08);
    color: #d0d0d0;
    border-bottom-left-radius: 4px;
}

.message--user .message-bubble {
    background: linear-gradient(135deg, rgba(255,107,0,.20), rgba(255,80,0,.10));
    border: 1px solid rgba(255,107,0,.25);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    margin: 0;
}

.message-bubble p + p {
    margin-top: 8px;
}

.message-hint {
    font-size: .82rem !important;
    color: #999 !important;
    font-style: italic;
}

/* ── Typing indicator ── */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 8px;
    animation: messageSlideIn .3s ease-out;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,107,0,.08);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,107,0,.40);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Input area ── */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,107,0,.08);
    background: rgba(0,0,0,.20);
}

.chat-input {
    flex: 1;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,107,0,.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .93rem;
    resize: none;
    outline: none;
    transition: border-color .25s ease;
    max-height: 120px;
    line-height: 1.5;
}

.chat-input:focus {
    border-color: rgba(255,107,0,.35);
    box-shadow: 0 0 12px rgba(255,107,0,.08);
}

.chat-input::placeholder {
    color: #666;
}

.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--forge-orange, #ff6b00);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .25s ease, transform .15s ease;
}

.chat-send:hover {
    background: #ff7f2a;
    transform: scale(1.05);
}

.chat-send:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer ── */
.chat-footer {
    text-align: center;
    padding: 8px;
    font-size: .7rem;
    color: #555;
    border-top: 1px solid rgba(255,255,255,.03);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */

.armorer-how {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    text-align: center;
}

.armorer-how h3 {
    font-size: 1.6rem;
    margin-bottom: 36px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    background: linear-gradient(180deg, #1a1a1a, #101010);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color .3s ease;
}

.step:hover {
    border-color: rgba(255,107,0,.15);
}

.step-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--forge-orange, #ff6b00);
    opacity: .3;
    margin-bottom: 10px;
}

.step h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.step p {
    color: #999;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
}

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

@media (max-width: 700px) {
    .armorer-hero h2 {
        font-size: 2rem;
    }

    .chat-container {
        height: 480px;
        max-height: 60vh;
    }

    .message {
        max-width: 92%;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}
