/* =====================================================
   eLearning Iframe Styles
   Beautiful presentation for embedded learning content
   ===================================================== */

/* eLearning Container */
.elearning-container {
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Iframe Wrapper with Frame */
.elearning-frame {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin: 2rem 0;
    transition: box-shadow 0.3s ease;
}

.elearning-frame:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Optional: Add a subtle top border accent */
.elearning-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 12px 12px 0 0;
}

/* Iframe itself */
.elearning-frame iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    display: block;
    background: #f9fafb;
}

/* Optional: Loading state */
.elearning-frame.loading {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Title/Header for iframe */
.elearning-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.elearning-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.elearning-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elearning-container {
        margin: 2rem auto;
        padding: 0 0.75rem;
    }
    
    .elearning-frame {
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .elearning-header h2 {
        font-size: 1.25rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .elearning-frame {
        background: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 
                    0 2px 4px -1px rgba(0, 0, 0, 0.2);
    }
    
    .elearning-frame iframe {
        background: #111827;
    }
    
    .elearning-header {
        border-bottom-color: #374151;
    }
    
    .elearning-header h2 {
        color: #f9fafb;
    }
    
    .elearning-header p {
        color: #9ca3af;
    }
}

/* Alternative style: Minimal */
.elearning-frame.minimal {
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
    border: 1px solid #e5e7eb;
}

.elearning-frame.minimal::before {
    display: none;
}

/* Alternative style: Elevated */
.elearning-frame.elevated {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
}

/* Full-screen button (optional enhancement) */
.elearning-fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
    z-index: 10;
}

.elearning-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
