/* Enhanced Feature Cards Styles */

/* Content Generation Card */
.content-generator-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.content-types {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.content-type {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.65rem;
    color: #6b7280;
}

.content-type:hover {
    background: white;
    transform: translateY(-2px);
}

.content-type.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    animation: contentTypeActive 2s ease infinite;
}

@keyframes contentTypeActive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.type-icon {
    font-size: 1.2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.gen-input-area {
    display: flex;
    gap: 0.5rem;
}

.gen-input-enhanced {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.75rem;
    background: white;
}

.gen-button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    animation: buttonPulse 2s ease infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
}

.generating-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInOut 3s ease infinite;
}

.feature-card:hover .generating-enhanced {
    opacity: 1;
}

.gen-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.gen-status {
    font-size: 0.65rem;
    color: #6b7280;
    text-align: center;
}

.gen-results {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    animation: resultsAppear 3s ease forwards;
    animation-delay: 2s;
}

.feature-card:hover .gen-results {
    opacity: 1;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #374151;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.result-item:nth-child(1) { animation-delay: 2.2s; }
.result-item:nth-child(2) { animation-delay: 2.4s; }
.result-item:nth-child(3) { animation-delay: 2.6s; }
.result-item:nth-child(4) { animation-delay: 2.8s; }

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-check {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}

/* Adaptive Learning Card */
.adaptive-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
}

.student-profiles {
    display: flex;
    gap: 0.5rem;
}

.profile-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 0.6rem;
    position: relative;
    transition: all 0.3s;
}

.profile-card:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-icon {
    font-size: 1.2rem;
    animation: profileBounce 3s ease-in-out infinite;
}

.profile-card:nth-child(1) .profile-icon { animation-delay: 0s; }
.profile-card:nth-child(2) .profile-icon { animation-delay: 0.5s; }
.profile-card:nth-child(3) .profile-icon { animation-delay: 1s; }

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

.adapt-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: indicatorPulse 2s ease infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.learning-path-enhanced {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
}

.path-visualization {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.path-branch {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.branch-label {
    font-size: 0.6rem;
    color: #6b7280;
    text-align: center;
}

.path-flow {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.path-flow.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    animation: flowAnimation 2s linear infinite;
}

@keyframes flowAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.adaptation-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.65rem;
    color: #6b7280;
    min-width: 45px;
}

.metric-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    animation: barGrow 2s ease-out forwards;
}

@keyframes barGrow {
    0% { width: 0%; }
}

.real-time-adjustment {
    text-align: center;
    padding: 0.5rem;
    background: #f0fdf4;
    border-radius: 4px;
}

.adjustment-text {
    font-size: 0.65rem;
    color: #065f46;
    animation: textPulse 2s ease infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 24/7 AI Assistant Card */
.support-interface {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.assistant-capabilities {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f9fafb;
    border-radius: 6px;
}

.capability-tab {
    flex: 1;
    padding: 0.4rem;
    text-align: center;
    font-size: 0.7rem;
    color: #6b7280;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.capability-tab.active {
    background: var(--primary);
    color: white;
}

.chat-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
}

.chat-bubble {
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    animation: bubbleAppear 0.5s ease;
    max-width: 80%;
}

.chat-bubble.user {
    background: #f3f4f6;
    align-self: flex-end;
    margin-right: 0.5rem;
}

.chat-bubble.ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    align-self: flex-start;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-avatar {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.ai-avatar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation: avatarPulse 2s ease infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.feature-chip {
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.6rem;
    color: #374151;
    animation: chipFloat 3s ease-in-out infinite;
}

.feature-chip:nth-child(1) { animation-delay: 0s; }
.feature-chip:nth-child(2) { animation-delay: 0.5s; }
.feature-chip:nth-child(3) { animation-delay: 1s; }
.feature-chip:nth-child(4) { animation-delay: 1.5s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-size: 0.65rem;
    color: #374151;
    transition: all 0.3s;
}

.tool-item:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 1.2rem;
}

.availability-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: #f0fdf4;
    border-radius: 4px;
    font-size: 0.65rem;
    color: #065f46;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.status-dot.pulsing {
    animation: statusPulse 1.5s ease infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-types {
        flex-wrap: wrap;
    }
    
    .profile-card span {
        display: none;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
}