/* Raven Scout Widget */
.raven-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--color-glacial-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.raven-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
}

.raven-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.raven-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.raven-window.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.raven-header {
    padding: 15px;
    background: rgba(34, 211, 238, 0.1);
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.raven-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    color: var(--color-glacial-cyan);
    font-weight: 700;
}

.raven-close {
    background: none;
    border: none;
    color: var(--color-mist-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.raven-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg.user {
    align-self: flex-end;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--color-pure-white);
    border-bottom-right-radius: 2px;
}

.msg.raven {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-mist-gray);
    border-bottom-left-radius: 2px;
}

.raven-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

#raven-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
}

#raven-input:focus {
    outline: none;
    border-color: var(--color-glacial-cyan);
}

.raven-send {
    background: var(--color-glacial-cyan);
    border: none;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.raven-send:hover {
    background: var(--color-glacial-dim);
}

/* Mobile Tweaks */
@media (max-width: 480px) {
    .raven-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .raven-close {
        font-size: 2rem;
    }
}
