/* LMS Custom Styles - PSN Color Scheme */

/* Root Variables - Matching PSN Website */
:root {
    --psn-primary: #00BFB3;      /* PSN Teal/turquoise main color */
    --psn-primary-dark: #009B94; /* Darker shade of teal for hover states */
    --psn-secondary: #17A2B8;    /* PSN Complementary blue-teal */
    --psn-secondary-dark: #138496; /* Darker shade of secondary */
    --psn-accent: #FFC107;       /* PSN Gold accent for contrast */
    --psn-accent-dark: #D39E00;  /* Darker gold */
    --psn-text: #333333;         /* Dark gray for text */
    --psn-dark-gray: #343a40;    /* Darker gray for contrast elements */
    --psn-light-gray: #f8f9fa;   /* Light gray for backgrounds */
    --psn-primary-light: rgba(0, 191, 179, 0.1); /* Light teal for hover effects */
    --psn-gradient-primary: linear-gradient(135deg, var(--psn-primary) 0%, #00D4C7 100%);
    --psn-gradient-secondary: linear-gradient(135deg, var(--psn-secondary) 0%, #20C9E3 100%);
}

/* Hero Section */
.lms-hero {
    background: var(--psn-gradient-primary);
    position: relative;
    overflow: hidden;
}

.lms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.lms-hero .container {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-level.beginner {
    background: rgba(0, 191, 179, 0.1);
    color: var(--psn-primary-dark);
}

.course-level.intermediate {
    background: rgba(255, 193, 7, 0.1);
    color: var(--psn-accent-dark);
}

.course-level.advanced {
    background: rgba(23, 162, 184, 0.1);
    color: var(--psn-secondary-dark);
}

.course-duration {
    color: #6c757d;
    font-size: 0.9rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--psn-text);
}

.course-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.course-instructor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.course-instructor-info h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--psn-text);
}

.course-instructor-info small {
    color: #6c757d;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--psn-secondary);
}

.course-price.free {
    color: var(--psn-primary);
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.course-rating .stars {
    color: var(--psn-accent);
    margin-right: 0.5rem;
}

.course-rating .rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-icon {
    margin-bottom: 1rem;
}

/* Course Filters */
.course-filters {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}

.course-filters h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.course-filters .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.course-filters .form-control,
.course-filters .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.course-filters .form-control:focus,
.course-filters .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Featured Courses */
.featured-courses .course-card {
    border: 2px solid var(--psn-primary);
    position: relative;
}

.featured-courses .course-card::before {
    content: 'Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--psn-accent);
    color: var(--psn-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Enrollment CTA */
.enrollment-cta {
    background: var(--psn-gradient-primary);
    position: relative;
    overflow: hidden;
}

.enrollment-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    opacity: 0.3;
}

.enrollment-cta .container {
    position: relative;
    z-index: 2;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Section Titles */
.section-title {
    color: var(--psn-text);
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--psn-gradient-primary);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-filters {
        position: static;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Course Progress */
.course-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.course-progress-bar {
    background: var(--psn-gradient-primary);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Course Tags */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.course-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-tag.primary {
    background: rgba(0, 191, 179, 0.1);
    color: var(--psn-primary-dark);
}

.course-tag.success {
    background: rgba(0, 191, 179, 0.1);
    color: var(--psn-primary-dark);
}

.course-tag.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--psn-accent-dark);
}

.course-tag.info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--psn-secondary-dark);
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-actions .btn {
    flex: 1;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
}

/* Course Modal */
.course-modal .modal-dialog {
    max-width: 800px;
}

.course-modal .modal-header {
    background: var(--psn-gradient-primary);
    color: white;
    border: none;
}

.course-modal .modal-body {
    padding: 2rem;
}

.course-modal .course-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-modal .course-info h4 {
    color: var(--psn-text);
    margin-bottom: 1rem;
}

.course-modal .course-info ul {
    list-style: none;
    padding: 0;
}

.course-modal .course-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.course-modal .course-info li:last-child {
    border-bottom: none;
}

.course-modal .course-info .label {
    font-weight: 600;
    color: var(--psn-text);
}

.course-modal .course-info .value {
    color: #6c757d;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .course-modal .course-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* LMS Features Section */
.lms-features .feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.lms-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.lms-features .feature-icon i {
    color: var(--psn-primary);
}

/* Statistics Section */
.statistics .stat-item {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.statistics .stat-item:hover {
    transform: translateY(-5px);
}

.statistics .stat-icon i {
    color: var(--psn-primary);
}

.statistics .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--psn-primary);
    margin: 15px 0 5px;
}

.statistics .stat-label {
    color: var(--psn-text);
    font-size: 1.1rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials .testimonial-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonials .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonials .testimonial-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--psn-primary);
}

.testimonials .testimonial-name {
    color: var(--psn-text);
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonials .testimonial-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.testimonials .testimonial-rating {
    margin-bottom: 15px;
}

.testimonials .testimonial-text {
    font-style: italic;
    color: var(--psn-text);
    line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Course Cards */
.course-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Enhanced Category Cards */
.category-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-icon i {
    color: var(--psn-primary);
}

/* Enhanced Badges */
.badge {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 20px;
}

.badge.bg-primary {
    background-color: var(--psn-primary) !important;
}

.badge.bg-success {
    background-color: var(--psn-primary) !important;
}

.badge.bg-warning {
    background-color: var(--psn-accent) !important;
    color: var(--psn-text) !important;
}

.badge.bg-info {
    background-color: var(--psn-secondary) !important;
}

/* Dashboard Specific Styles */
.dashboard-hero {
    background: var(--psn-gradient-primary);
    color: white;
}

.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--psn-primary);
    margin: 0;
}

.stat-label {
    color: var(--psn-text);
    font-size: 1rem;
    margin: 0;
}

/* Current Course Cards */
.current-course-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.current-course-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--psn-primary);
}

.course-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.course-progress-bar {
    background: var(--psn-gradient-primary);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Media Information Display */
.media-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.media-info i {
    color: var(--psn-primary);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-meta i {
    color: var(--psn-primary);
}

/* Activity Items */
.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon i {
    color: var(--psn-primary);
    font-size: 0.8rem;
}

/* Course Player Styles */
.course-player-container {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.video-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.module-list {
    max-height: 600px;
    overflow-y: auto;
}

.module-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.module-item.active {
    border-color: var(--psn-primary);
    background-color: rgba(0, 191, 179, 0.05);
}

.module-item.completed {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.resource-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin: 5px 0;
    border-left: 3px solid var(--psn-primary);
}

.progress-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--psn-gradient-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 179, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--psn-primary);
    color: var(--psn-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--psn-primary);
    border-color: var(--psn-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 179, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .media-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-placeholder {
        height: 250px;
    }
}
