/* AI Video Player Styles for Aura Dental Square */

.ai-video-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
}

.ai-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-video-player {
    position: relative;
    width: 100%;
    background: #000;
}

.ai-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.ai-video-info {
    padding: 20px;
}

.ai-video-info h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.ai-video-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ai-video-badge {
    background: linear-gradient(45deg, #00a6c2, #0082a8);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
}

.ai-video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

.ai-video-doctor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ai-doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ai-video-doctor span {
    color: var(--primary-color);
    font-weight: 600;
}

.ai-video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.ai-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.ai-control-btn:hover {
    background: var(--primary-color);
}

.ai-video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.ai-video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-video-thumbnail:hover img {
    transform: scale(1.05);
}

.ai-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.ai-play-button {
    width: 80px;
    height: 80px;
    background: rgba(0, 166, 194, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-play-button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.ai-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-video-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* AI Video Grid Layout */
.ai-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.ai-video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ai-video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-video-item.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.ai-video-item.featured .ai-video-thumbnail {
    height: 100%;
}

.ai-video-item.featured .ai-video-thumbnail img {
    height: 100%;
}

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

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

.ai-video-modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.ai-video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* AI Video Statistics */
.ai-video-stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.ai-stat-item {
    text-align: center;
}

.ai-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.ai-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ai-video-item.featured {
        grid-column: span 1;
        display: block;
    }
    
    .ai-video-item.featured .ai-video-thumbnail {
        height: 200px;
    }
    
    .ai-video-item.featured .ai-video-thumbnail img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .ai-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-video-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .ai-video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .ai-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .ai-video-container {
        margin: 15px 0;
    }
    
    .ai-video-info {
        padding: 15px;
    }
    
    .ai-video-info h3 {
        font-size: 1.1rem;
    }
    
    .ai-video-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Loading Animation for AI Videos */
.ai-video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border-radius: 15px;
}

.ai-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading-text {
    margin-left: 15px;
    color: #666;
    font-weight: 600;
}

/* AI Video Quality Indicator */
.ai-quality-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* AI Video Transcript Toggle */
.ai-transcript-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.ai-transcript-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.ai-transcript-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    line-height: 1.6;
    display: none;
}

.ai-transcript-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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