/* 
 * Styles for local_cpt_userguide plugin
 *
 * @package    local_cpt_userguide
 * @copyright  2025 DELS CPT
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* Main container styles */
.userguide-container {
    padding: 20px 0;
    position: relative;
    background: transparent;
}

.userguide-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
.userguide-header {
    margin-bottom: 40px;
}

.userguide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Video section styles */
.userguide-video-section {
    background: transparent;
    border-radius: 15px;
    padding: 40px;
    margin: 0 auto;
    max-width: 1000px;
}

.video-container {
    text-align: center;
    background: transparent !important;
}

.video-header {
    margin-bottom: 30px;
    background: transparent !important;
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
}

.video-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Video wrapper and responsive video */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.userguide-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Alert styles for no video message - scoped to userguide container */
.userguide-container .alert {
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

.userguide-container .alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.3);
    color: #2980b9;
}

.userguide-container .alert h3 {
    color: #2980b9;
    margin-bottom: 15px;
}

.userguide-container .alert p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Button styles - scoped to userguide container */
.userguide-container .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.userguide-container .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
}

.userguide-container .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.userguide-container .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border: none;
}

.userguide-container .btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .userguide-content {
        padding: 20px 15px;
    }
    
    .userguide-title {
        font-size: 2rem;
    }
    
    .userguide-video-section {
        padding: 20px;
        margin: 0 10px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .userguide-title {
        font-size: 1.8rem;
    }
    
    .userguide-video-section {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.3rem;
    }
    
    .userguide-container .alert {
        padding-top: 20px;
        margin: 20px 10px;
    }
}

/* Animation for smooth loading */
.userguide-video-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for webkit browsers - scoped to userguide container */
.userguide-container ::-webkit-scrollbar {
    width: 8px;
}

.userguide-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.userguide-container ::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.userguide-container ::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Force transparent backgrounds for all video-related elements */
.userguide-video-section,
.video-header,
.video-container,
.userguide-video,
.mb-3,
.text-center {
    background: transparent !important;
    background-color: transparent !important;
}

/* Override any Bootstrap or Moodle default backgrounds */
.userguide-container .container,
.userguide-container .container-fluid,
.userguide-container .row,
.userguide-container .col,
.userguide-container div {
    background: transparent !important;
    background-color: transparent !important;
}

/* High specificity overrides for theme conflicts */
body.theme-cpt-academi .userguide-container,
body.theme-cpt-academi .userguide-content,
body.theme-cpt-academi .userguide-video-section,
body.theme-cpt-academi .video-header,
body.theme-cpt-academi #page,
body.theme-cpt-academi #page-content,
body.theme-cpt-academi .main-content,
body.theme-cpt-academi .content-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Override any possible theme wrapper backgrounds */
.theme-cpt-academi .userguide-container *,
.userguide-container * {
    background-color: transparent !important;
}

/* Ensure video area has no background */
.userguide-video-section * {
    background: transparent !important;
    background-color: transparent !important;
}
