/* AI Tools Notification System Styles */

/* Welcome Modal Styles */
.ai-welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-welcome-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-welcome-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ai-welcome-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.ai-welcome-modal-overlay.active .ai-welcome-modal {
    transform: scale(1) translateY(0);
}

.ai-welcome-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.ai-welcome-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-welcome-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ai-welcome-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-welcome-header h2 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: 700;
}

.ai-welcome-header h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

.ai-welcome-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.ai-welcome-features {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ai-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.ai-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.ai-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.ai-feature-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.ai-feature-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-welcome-actions {
    padding: 20px 40px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.ai-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.ai-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.ai-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.ai-btn-secondary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.ai-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.ai-btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.ai-btn-outline:hover {
    background: #3498db;
    color: white;
}

.ai-btn-text {
    background: transparent;
    color: #7f8c8d;
    padding: 8px 16px;
}

.ai-btn-text:hover {
    color: #2c3e50;
}

/* Floating Notification Styles */
.ai-floating-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.ai-floating-notification.active {
    transform: translateX(0);
}

.ai-floating-notification.hidden {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.ai-notification-content {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.ai-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-notification-close:hover {
    background: #ecf0f1;
    color: #7f8c8d;
}

.ai-notification-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    animation: ai-bounce 2s infinite;
}

@keyframes ai-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.ai-notification-text {
    flex: 1;
    padding-right: 20px;
}

.ai-notification-text h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.ai-notification-text p {
    margin: 0 0 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-notification-action {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ai-notification-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Guided Tour Styles */
.ai-guided-tour {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: none;
}

.ai-guided-tour.hidden {
    display: none;
}

.ai-guided-tour.active {
    display: block;
}

.ai-tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.ai-tour-popup {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: auto;
    z-index: 10002;
    /* Default center positioning */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-tour-header {
    padding: 15px 20px 0;
    text-align: right;
}

.ai-tour-skip {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ai-tour-skip:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.ai-tour-content {
    padding: 20px;
}

.ai-tour-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.ai-tour-text {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-tour-navigation {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-tour-prev,
.ai-tour-next,
.ai-tour-finish {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ai-tour-prev {
    background: #95a5a6;
}

.ai-tour-prev:hover,
.ai-tour-next:hover,
.ai-tour-finish:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.ai-tour-progress {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* NEW Badge Styles */
.ai-new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 12px;
    z-index: 10;
    animation: ai-badge-pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes ai-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-welcome-modal {
        width: 95%;
        margin: 20px;
    }
    
    .ai-welcome-header,
    .ai-welcome-features,
    .ai-welcome-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .ai-welcome-features {
        grid-template-columns: 1fr;
    }
    
    .ai-welcome-actions {
        flex-direction: column;
    }
    
    .ai-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ai-floating-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ai-tour-popup {
        max-width: 300px;
        margin: 10px;
    }
    
    .ai-welcome-header h2 {
        font-size: 1.8rem;
    }
    
    .ai-welcome-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ai-welcome-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .ai-welcome-header {
        border-radius: 0;
        padding: 30px 20px 20px;
    }
    
    .ai-welcome-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .ai-feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-feature-icon {
        align-self: center;
    }
    
    .ai-floating-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .ai-notification-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-notification-icon {
        align-self: center;
    }
    
    .ai-tour-popup {
        max-width: 280px;
    }
}

/* Animation for smooth transitions */
.ai-tour-highlighted {
    transition: all 0.3s ease !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ai-welcome-modal {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .ai-feature-card {
        background: #34495e;
        border-left-color: #3498db;
    }
    
    .ai-feature-content h4 {
        color: #ecf0f1;
    }
    
    .ai-feature-content p {
        color: #bdc3c7;
    }
    
    .ai-floating-notification {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .ai-notification-text h4 {
        color: #ecf0f1;
    }
    
    .ai-notification-text p {
        color: #bdc3c7;
    }
    
    .ai-tour-popup {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .ai-tour-title {
        color: #ecf0f1;
    }
    
    .ai-tour-text {
        color: #bdc3c7;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ai-welcome-modal,
    .ai-floating-notification,
    .ai-tour-popup {
        border: 2px solid #000;
    }
    
    .ai-btn-primary,
    .ai-btn-secondary {
        border: 2px solid #000;
    }
    
    .ai-new-badge {
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ai-welcome-modal,
    .ai-floating-notification,
    .ai-tour-popup,
    .ai-btn,
    .ai-notification-action,
    .ai-tour-prev,
    .ai-tour-next,
    .ai-tour-finish {
        transition: none;
    }
    
    .ai-welcome-logo,
    .ai-notification-icon,
    .ai-new-badge {
        animation: none;
    }
}