/* ===== RENTENOVA CHATBOT NAVIGATION STYLES ===== */
/* Version: 2.0 */

/* ===== NAVIGATION MODAL ===== */

.navigation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.navigation-modal.show {
    opacity: 1;
    pointer-events: all;
}

.navigation-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
    transform-origin: center bottom;
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.navigation-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.navigation-content strong {
    color: #00CED1;
    font-weight: 600;
}

.navigation-reason {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
    font-size: 14px;
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid #00CED1;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.navigation-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-navigate-yes {
    background: linear-gradient(135deg, #00CED1, #0080A0);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.btn-navigate-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 206, 209, 0.4);
}

.btn-navigate-yes:active {
    transform: translateY(0);
}

.btn-navigate-no {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-navigate-no:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== PAGE TRANSITION ===== */

body.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== TYPING INDICATOR ===== */

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: fit-content;
    margin: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== CHAT MESSAGES STYLING ===== */

.message {
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    animation: messageSlideIn 0.3s ease;
}

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

.message-user {
    background: linear-gradient(135deg, #00CED1, #0080A0);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-assistant {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-error {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ffb3b3;
    margin: 10px auto;
    text-align: center;
}

.message strong {
    font-weight: 600;
    color: #00CED1;
}

/* ===== PAGE BADGE ===== */

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 206, 209, 0.15);
    border: 1px solid rgba(0, 206, 209, 0.4);
    color: #00CED1;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.message a {
    color: #667eea;
    text-decoration: underline;
}

.message a:hover {
    color: #764ba2;
}

/* ===== PAGE INDICATOR BADGE ===== */

.page-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    margin-left: 10px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== CHAT INPUT AREA ===== */

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#user-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

#user-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#user-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#send-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#send-button:active {
    transform: translateY(0);
}

#send-button svg {
    width: 20px;
    height: 20px;
}

/* ===== SCROLLBAR STYLING ===== */

#chat-messages {
    overflow-y: auto;
    max-height: 500px;
    padding: 20px;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    .navigation-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .navigation-content h3 {
        font-size: 20px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-badge {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .navigation-content {
        padding: 15px;
    }
    
    .navigation-content h3 {
        font-size: 18px;
    }
    
    .navigation-content p {
        font-size: 14px;
    }
    
    .navigation-buttons button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ===== DARK MODE COMPATIBILITY ===== */

@media (prefers-color-scheme: dark) {
    /* Styles sind bereits für Dark Mode optimiert */
}

/* ===== ACCESSIBILITY ===== */

.navigation-buttons button:focus,
#send-button:focus,
#user-input:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .navigation-modal,
    .navigation-content,
    .message,
    .typing-indicator span,
    body.page-transition {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .navigation-modal,
    .chat-input-container,
    #send-button {
        display: none !important;
    }
}
