/* Center the navbar content */
.navbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* AI Search Container */
.ai-search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 500px;
    max-width: 90%;
}

/* Hover effect */
.ai-search-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* Search Input */
.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    background: transparent;
}

/* Search Input Placeholder */
.ai-search-input::placeholder {
    color: #999;
}

/* Search Button */
.ai-search-btn {
    border: none;
    outline: none;
    background: #4a90e2;
    color: white;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Search Button Hover */
.ai-search-btn:hover {
    background: #357abd;
}

/* Search Button Icon */
.ai-search-btn i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-search-container {
        width: 300px;
    }
    
    .navbar-center {
        position: static;
        transform: none;
        text-align: center;
        margin: 10px 0;
    }
}

/* AI search specific styles */
/* The general styles for comment meta and time are now in app.css for consistency */

/* Loading Modal */
.ai-loading-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-loading-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.ai-loading-spinner {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4a90e2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-loading-text {
    color: #333;
    font-size: 16px;
}

/* Back to Home Button */
.back-home-btn {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-home-btn:hover {
    background: #357abd;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.back-home-btn i {
    margin-right: 8px;
    font-size: 20px;
}