/* AI Assistant Styles */
.ai-assistant-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 50%, #155724 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-assistant-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: aiPulse 6s ease-in-out infinite;
}

.ai-assistant-section::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: aiPulse2 8s ease-in-out infinite reverse;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

@keyframes aiPulse2 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.1) rotate(-90deg); opacity: 0.4; }
}

.ai-assistant-section .section-title {
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    font-weight: 700;
}

.ai-assistant-section .section-title i {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
}



@keyframes starGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 10px rgba(255,255,255,0.3);
    }
    50% { 
        transform: scale(1.15) rotate(180deg);
        box-shadow: 0 0 20px rgba(255,255,255,0.6);
    }
}

@keyframes starPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes starRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(0.9) rotate(0deg);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1) rotate(180deg);
    }
}

.ai-assistant-container {
    position: relative;
    z-index: 1;
}

/* AI Suggestions Grid */
.ai-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-suggestion-card {
    background: rgba(58, 58, 58, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(58, 58, 58, 1);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(58, 58, 58, 0.4);
    margin: 0.5rem;
}

.ai-suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.ai-suggestion-card:hover::before {
    left: 100%;
}

.ai-suggestion-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-suggestion-card:hover::after {
    opacity: 1;
}

.ai-suggestion-card:hover {
    background: rgba(58, 58, 58, 0.9);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(58, 58, 58, 0.5), 0 0 30px rgba(58, 58, 58, 0.6);
    border-color: rgba(58, 58, 58, 1);
}

.suggestion-icon {
    width: 70px;
    height: 70px;
    background: rgba(58, 58, 58, 0.7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-suggestion-card:hover .suggestion-icon {
    background: rgba(58, 58, 58, 0.9);
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 25px rgba(58, 58, 58, 0.4);
}

.ai-suggestion-card:hover .suggestion-icon::before {
    opacity: 1;
}

.suggestion-content h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    transition: all 0.3s ease;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

.suggestion-content p {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.ai-suggestion-card:hover .suggestion-content h4 {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.ai-suggestion-card:hover .suggestion-content p {
    color: white;
    transform: translateY(-1px);
}

/* AI Chat Container */
.ai-chat-container {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 50%, #155724 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    animation: avatarPulse 3s ease-in-out infinite;
}

.ai-avatar-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255,255,255,0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255,255,255,0.6);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2);
    }
}



.ai-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ai-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.ai-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* AI Chat Messages */
.ai-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.ai-message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.ai-message-content {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
    align-self: flex-start;
}

.ai-message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.user-message .ai-message-content {
    background: #155724;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
}

.user-message .ai-message-time {
    align-self: flex-end;
}

/* AI Chat Input */
.ai-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input input:focus {
    border-color: var(--accent-color);
}

.ai-chat-input button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-input button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* AI Typing Indicator */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-suggestions {
        grid-template-columns: 1fr;
    }
    
    .ai-suggestion-card {
        padding: 1rem;
    }
    
    .ai-chat-messages {
        max-height: 250px;
    }
    
    .ai-message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .ai-chat-header {
        padding: 0.75rem 1rem;
    }
    
    .ai-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .ai-info h4 {
        font-size: 0.9rem;
    }
    
    .ai-chat-input {
        padding: 0.75rem;
    }
    
    .ai-chat-input input {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Dark Theme Support */
body.dark .ai-chat-container {
    background: rgba(30, 30, 30, 0.95);
}

body.dark .ai-chat-messages {
    background: #2a2a2a;
}

body.dark .ai-chat-input {
    background: #2a2a2a;
    border-top-color: #404040;
}

body.dark .ai-chat-input input {
    background: #404040;
    border-color: #505050;
    color: white;
}

body.dark .ai-chat-input input:focus {
    border-color: var(--accent-color);
}

body.dark .ai-message-time {
    color: #a0a0a0;
}

/* AI Animation Effects */
.ai-suggestion-card {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-suggestion-card:nth-child(1) { animation-delay: 0.1s; }
.ai-suggestion-card:nth-child(2) { animation-delay: 0.2s; }
.ai-suggestion-card:nth-child(3) { animation-delay: 0.3s; }
.ai-suggestion-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating animation for cards */
.ai-suggestion-card {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.ai-suggestion-card:nth-child(1) { animation-delay: 0.1s, 0s; }
.ai-suggestion-card:nth-child(2) { animation-delay: 0.2s, 0.5s; }
.ai-suggestion-card:nth-child(3) { animation-delay: 0.3s, 1s; }
.ai-suggestion-card:nth-child(4) { animation-delay: 0.4s, 1.5s; }

/* Quick Actions Buttons */
.ai-quick-actions {
    margin-top: 1rem;
}

.quick-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-action-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.3);
}

.quick-action-btn:active {
    transform: translateY(0);
}

/* Dark theme for quick actions */
body.dark .quick-action-btn {
    background: var(--accent-color);
    color: white;
}

body.dark .quick-action-btn:hover {
    background: var(--accent-hover);
} 