/* ================================
   WARMPOINT BRAND COLORS
================================ */
:root {
    --warm-beige: #F7EEDC;
    --warm-orange: #E37A34;
    --deep-navy: #0E2A47;
}

/* ================================
   GLOBAL
================================ */
body {
    margin: 0;
    padding: 0;
    background: var(--warm-beige);
    font-family: "Inter", "Noto Sans", sans-serif;
    color: var(--deep-navy);
}

.container {
    max-width: 520px;
    margin: auto;
    padding: 24px;
    text-align: center;
}

/* ================================
   HEADER
================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.logo {
    width: 56px;
}

.header-text {
    text-align: left;
}

.title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 16px;
}

/* ================================
   MICROPHONE CARD
================================ */
.mic-card {
    background: white;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================================
   MIC BUTTON
================================ */
.mic-button {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--warm-orange);
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 8px 24px rgba(227,122,52,0.35);
}

/* IDLE: mic icon visible */
.mic-button.idle .mic-icon {
    display: block;
}

.mic-button.idle .mic-wave {
    display: none;
}

.mic-button.idle .mic-pulse {
    display: none;
}

/* ================================
   MIC ICON
================================ */
.mic-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    z-index: 5;
}

/* ================================
   INSIDE WAVE (HIDDEN BY DEFAULT)
================================ */
.mic-wave {
    position: absolute;
    width: 55%;
    height: 40%;
    bottom: 23%;
    left: 22%;
    display: none;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 5;
}

.mic-wave span {
    width: 5px;
    height: 20%;
    background: white;
    border-radius: 2px;
}

/* ================================
   LISTENING STATE
================================ */
.mic-button.listening .mic-icon {
    display: none;
}

.mic-button.listening .mic-wave {
    display: flex !important;
}

.mic-button.listening .mic-wave span:nth-child(1) {
    animation: wave1 .6s infinite ease-in-out;
}
.mic-button.listening .mic-wave span:nth-child(2) {
    animation: wave2 .6s infinite ease-in-out;
}
.mic-button.listening .mic-wave span:nth-child(3) {
    animation: wave3 .6s infinite ease-in-out;
}
.mic-button.listening .mic-wave span:nth-child(4) {
    animation: wave2 .6s infinite ease-in-out;
}
.mic-button.listening .mic-wave span:nth-child(5) {
    animation: wave1 .6s infinite ease-in-out;
}

@keyframes wave1 { 0%,100%{height:20%}50%{height:90%} }
@keyframes wave2 { 0%,100%{height:30%}50%{height:70%} }
@keyframes wave3 { 0%,100%{height:35%}50%{height:95%} }

/* ================================
   PROCESSING STATE
================================ */
.mic-button.processing .mic-icon {
    display: none;
}

.mic-button.processing .mic-wave {
    display: flex !important;
}

.mic-button.processing .mic-wave span {
    animation: processWave 1.4s infinite ease-in-out;
}

@keyframes processWave {
    0%,100% { height:20%; }
    50%     { height:45%; }
}

/* ================================
   PULSE HALO
================================ */
.mic-pulse {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -20px;
    left: -20px;
    border-radius: 50%;
    background: rgba(227,122,52,0.25);
    display: none;
    z-index: 1;
}

.mic-button.listening .mic-pulse {
    display: block !important;
    animation: pulseBig 2s infinite ease-out;
}

@keyframes pulseBig {
    0% { transform: scale(.7); opacity:.7; }
    100% { transform: scale(2); opacity:0; }
}

/* ================================
   STATUS, QUICK ACTIONS, RESULT
================================ */
.status {
    font-size: 20px;
    margin-top: 12px;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.qa-btn {
    width: 120px;
    height: 140px;
    background: white;
    border: 2px solid var(--deep-navy);
    border-radius: 16px;
    cursor: pointer;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-navy);
    transition: transform .15s ease, box-shadow .15s ease;
}

.qa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.1);
}

.qa-icon {
    width: 60px;       /* increase this to 70 or even 80 for maximum visibility */
    height: 60px;
}


/* RESULT BOX — visible bubble above quick actions */
#result {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 22px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    border-radius: 14px;
    text-align: center;
    min-width: 260px;
    max-width: 80%;
    z-index: 9999;        /* <— SUPER IMPORTANT */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}

/* RESULT BOX – visible state */
.result {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #333;
}

/* When we want it visible */
.result.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0);
}



/* ================================
   MAP
================================ */
.map {
    width: 100%;
    height: 260px;
    margin-top: 20px;
    border-radius: 18px;
    display: none;
    overflow: hidden;
}
