/* Umoyo Prayer Guide · Ask AI. Loaded through $extraCss. */

.ai-hero{position:relative;border-radius:24px;overflow:hidden;min-height:220px;background:#8B5E3C;margin:4px 0 16px;color:#fff}
.ai-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.4}
.ai-hero-content{position:relative;z-index:2;min-height:220px;padding:24px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ai-hero-icon{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.12);border:2px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;margin-bottom:8px;padding:8px;overflow:hidden}
.ai-hero-icon img{width:100%;height:100%;object-fit:contain;opacity:1}
.ai-hero h1{font-size:28px;font-weight:800;margin:0 0 6px;line-height:1.1}
.ai-hero p{font-size:13px;opacity:.9;max-width:90%;margin:0 0 12px;line-height:1.5}
.ai-hero-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.ai-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:12px;font-size:12px;font-weight:600;color:#fff;text-decoration:none}
.ai-btn-dark{background:rgba(44,24,16,.8)}
.ai-btn-gold{background:#D4A843;box-shadow:0 4px 16px rgba(212,168,67,.3)}

.chat{background:#fff;border:1px solid #F0E8E0;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;height:520px;margin-bottom:16px}
.chat-messages{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:#D4A843 #F8F4EF}

.msg{display:flex;gap:10px;max-width:85%;animation:msgIn .3s ease-out}
.msg-user{align-self:flex-end;flex-direction:row-reverse}
.msg-bot{align-self:flex-start}
.msg-avatar{width:34px;height:34px;border-radius:50%;flex-shrink:0;border:2px solid #D4A843;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:2px}
.msg-avatar img{width:100%;height:100%;object-fit:contain}
.msg-user .msg-avatar{background:#8B5E3C;border-color:#8B5E3C;color:#fff;font-size:16px}
.msg-body{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.7;word-wrap:break-word;white-space:normal}
.msg-bot .msg-body{background:#FFF8F0;color:#2C1810;border-top-left-radius:4px}
.msg-user .msg-body{background:#8B5E3C;color:#fff;border-top-right-radius:4px}
.msg-body strong{color:#B8860B}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.chat-suggest{display:flex;flex-wrap:wrap;gap:8px;padding:8px 18px 12px;border-top:1px solid #F0E8E0;background:#FFFCF8}
.suggest-chip{padding:6px 14px;border-radius:20px;border:1px solid #E8D5C0;background:#fff;font:inherit;font-size:12px;font-weight:500;color:#6B4F3A;cursor:pointer;white-space:nowrap;transition:all .2s}
.suggest-chip:hover{border-color:#D4A843;background:#F5EDD4}

.chat-input{display:flex;gap:8px;align-items:flex-end;padding:10px 14px 4px;border-top:1px solid #F0E8E0}
.context-select{height:40px;padding:0 10px;border:1px solid #E8D5C0;border-radius:10px;background:#fff;font:inherit;font-size:12px;color:#2C1810;flex-shrink:0}
.chat-input textarea{flex:1;min-height:40px;max-height:120px;padding:9px 14px;border:1px solid #E8D5C0;border-radius:10px;font:inherit;font-size:14px;color:#2C1810;resize:none;outline:none}
.chat-input textarea:focus,.context-select:focus{border-color:#D4A843;box-shadow:0 0 0 3px rgba(212,168,67,.12)}
#sendButton{width:40px;height:40px;border-radius:50%;border:none;background:#D4A843;color:#fff;font-size:17px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
#sendButton:disabled{opacity:.5;cursor:not-allowed}

.chat-footer{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}
.hint{font-size:11px;color:#B8A090}
.typing{display:inline-flex;gap:4px}
.typing[hidden]{display:none}
.typing span{width:7px;height:7px;border-radius:50%;background:#D4A843;animation:bounce 1.4s infinite ease-in-out}
.typing span:nth-child(2){animation-delay:.2s}
.typing span:nth-child(3){animation-delay:.4s}
@keyframes bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}

@media (max-width:480px){
  .ai-hero h1{font-size:22px}
  .chat{height:440px}
  .msg{max-width:94%}
  .msg-body{font-size:13px}
  .context-select{font-size:11px;padding:0 6px}
  .chat-suggest{display:none}
}