/* 
 * Wisdom Tutoring Academy E-Learning Platform
 * Main Stylesheet
 */

:root {
    /* Main colors based on logo */
    --primary-color: #0097db; /* Light blue from logo */
    --secondary-color: #1a365d; /* Dark blue from logo */
    --accent-color: #333333; /* Mountain color from logo */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --gray-light-color: #f8f9fa;
    --gray-dark-color: #343a40;
    --font-family: 'Poppins', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Navbar Styles */
.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

.login-btn {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-section h1 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark-color);
}

.hero-section img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Subjects Section */
.subjects-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.subject-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.subject-icon {
    background-color: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    font-weight: 700;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul li a:hover {
    color: white;
    text-decoration: none;
}

.footer .social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.footer .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer .contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer .contact-info li i {
    margin-right: 0.75rem;
}

/* Login/Register Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-card .card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    border-bottom: none;
}

.auth-card .card-body {
    padding: 3rem;
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 151, 219, 0.25);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.dashboard-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-stats {
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.stat-card .stat-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stat-card .stat-info p {
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Video Player Styles (YouTube-like) */
.video-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: black;
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.video-info h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.video-info .video-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #6c757d;
}

.video-info .video-meta span {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.video-info .video-meta span i {
    margin-right: 0.5rem;
}

.video-description {
    padding: 1.5rem;
}

.video-actions {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.video-actions button {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.video-actions button i {
    margin-right: 0.5rem;
}

/* Related Videos Sidebar */
.related-videos {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.related-videos .related-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.related-videos .related-header h4 {
    margin-bottom: 0;
    font-weight: 600;
}

.related-videos .related-list {
    padding: 1rem;
}

.related-video-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.related-video-item:hover {
    background-color: #f8f9fa;
}

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

.related-video-item .related-thumbnail {
    width: 120px;
    min-width: 120px;
    height: 67.5px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 1rem;
    position: relative;
}

.related-video-item .related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-item .related-thumbnail .video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

.related-video-item .related-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-item .related-info p {
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Quiz and Assessment Styles */
.quiz-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.quiz-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options .form-check {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.quiz-options .form-check:hover {
    background-color: #f8f9fa;
}

.quiz-options .form-check-input:checked ~ .form-check-label {
    font-weight: 600;
}

.quiz-options .form-check-input:checked ~ .form-check {
    border-color: var(--primary-color);
    background-color: rgba(0, 151, 219, 0.05);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar .login-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-card .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .related-video-item .related-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 56.25px;
    }
}

@media (max-width: 576px) {
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .video-info .video-meta {
        flex-wrap: wrap;
    }
    
    .video-info .video-meta span {
        margin-bottom: 0.5rem;
    }
    
    .related-video-item {
        flex-direction: column;
    }
    
    .related-video-item .related-thumbnail {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
