/* Modal Styles for Learning Paths */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Assessment Modal Styles */
.assessment-modal .modal-body {
    padding-bottom: 2rem;
}

.assessment-intro,
.assessment-question,
.assessment-result {
    display: none;
}

.assessment-intro.active,
.assessment-question.active,
.assessment-result.active {
    display: block;
}

.assessment-intro ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.assessment-intro li {
    margin-bottom: 0.5rem;
}

.question-options {
    margin: 1.5rem 0;
}

.option {
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.option:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.option input {
    margin-right: 0.75rem;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.recommendation-card {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0d47a1;
}

.recommendation-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.recommendation-content li {
    margin-bottom: 0.5rem;
}

.recommendation-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.supplementary-resource {
    background-color: #fff8e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
}

/* Path Details Modal Styles */
.path-details-modal .modal-body {
    padding: 0;
}

.path-details-content {
    padding: 1.5rem;
}

.path-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.path-details-section {
    margin-bottom: 2.5rem;
}

.path-details-section h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.module-count {
    background-color: #e3f2fd;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #0d47a1;
}

.module-count span {
    font-weight: 700;
}

.modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.module-number {
    width: 32px;
    height: 32px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    color: #0d47a1;
}

.module-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.module-duration {
    color: #666;
    font-size: 0.9rem;
}

.prerequisites-list,
.outcomes-list {
    padding-left: 1.5rem;
    margin: 0;
}

.prerequisites-list li,
.outcomes-list li {
    margin-bottom: 0.75rem;
}

.sponsored-section {
    background-color: #fff8e1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    position: relative;
}

.resources-for-path {
    margin-top: 1rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background-color: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8f00;
    font-size: 1.25rem;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    margin: 0 0 0.5rem 0;
}

.resource-info p {
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Account Modal Styles */
.account-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    margin-top: 2rem;
}

.account-alternate {
    margin-top: 1rem;
    text-align: center;
}

.account-switch-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.account-switch-link:hover {
    text-decoration: underline;
}

.social-sign-in {
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.social-sign-in p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #666;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.google-btn {
    color: #ea4335;
}

.github-btn {
    color: #24292e;
}

.account-benefits {
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.account-benefits h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.benefits-list li i {
    color: #4caf50;
    margin-right: 0.75rem;
}

.learn-more-link {
    color: #ff8f00;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.learn-more-link i {
    margin-left: 0.35rem;
    font-size: 0.85rem;
}

.learn-more-link:hover {
    text-decoration: underline;
}

/* Common sponsored content styling */
.sponsored {
    position: relative;
}

.sponsored-tag {
    background-color: #fff8e1;
    color: #ff8f00;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1100;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .recommendation-card {
        flex-direction: column;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .module-item {
        flex-direction: column;
    }
    
    .module-number {
        margin-bottom: 0.75rem;
    }
}
