/* Main Styles for AI Learning Plan Website */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #1abc9c;
    --background-color: #f5f5f5;
    --text-color: #333333;
    --highlight-color: #f1c40f;
    --light-color: #ffffff;
    --border-color: #e0e0e0;
    --dark-accent: #34495e;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

code {
    font-family: 'Roboto Mono', monospace;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--highlight-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
    color: var(--light-color);
    padding: 6rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

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

.btn-primary:hover {
    background-color: #16a085;
    border-color: #16a085;
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

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

.card-body {
    padding: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 0;
    position: relative;
    width: 50%;
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    padding-right: 0;
}

.timeline-content {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-color);
}

.timeline-item:nth-child(even) .timeline-content:before {
    left: -15px;
    right: auto;
}

.timeline-period {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Getting Started Section */
.getting-started {
    background-color: var(--light-color);
}

.getting-started-list {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.getting-started-list li {
    margin-bottom: 1.5rem;
}

.getting-started-list h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 4rem 0 1rem;
}

footer h4, footer h5 {
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: var(--light-color);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--highlight-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Learning Goals Page */
.goals-tabs .nav-link {
    color: var(--text-color);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 3px solid transparent;
}

.goals-tabs .nav-link.active {
    color: var(--secondary-color);
    background: none;
    border-bottom: 3px solid var(--secondary-color);
}

.goal-card {
    margin-bottom: 1.5rem;
}

.goal-card h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Learning Path Page */
.phase-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.week-card {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.week-header {
    cursor: pointer;
    padding: 1rem;
    background-color: rgba(26, 188, 156, 0.1);
    font-weight: 600;
}

.week-content {
    padding: 1rem;
    display: none;
}

.week-content.active {
    display: block;
}

/* Resources Page */
.resource-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-color: var(--secondary-color);
}

.resource-card {
    margin-bottom: 1.5rem;
}

.resource-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-course {
    background-color: rgba(241, 196, 15, 0.2);
    color: #d35400;
}

.type-book {
    background-color: rgba(26, 188, 156, 0.2);
    color: #16a085;
}

.type-article {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

/* Progress Tracking Page */
.tracker-card {
    margin-bottom: 2rem;
}

.progress-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.progress-table th, .progress-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-container {
    display: inline-block;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* About Page */
.about-section {
    background-color: var(--light-color);
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .timeline:before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
    
    .timeline-content:before {
        left: -15px;
        right: auto;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero .btn + .btn {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero, footer {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
}
