/* CS 10C Course Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #003DA5 0%, #002856 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header .course-code {
    font-weight: 600;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-link {
    display: inline-block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Styles */
.section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section h2 {
    color: #003DA5;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Syllabus Link */
.syllabus-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #003DA5;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,61,165,0.2);
}

.syllabus-link:hover {
    background-color: #002856;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,61,165,0.3);
}

.syllabus-link svg {
    width: 20px;
    height: 20px;
}

/* Lecture List */
.lecture-list {
    list-style: none;
    padding: 0;
}

.lecture-list li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #FFB800;
    transition: all 0.3s ease;
}

.lecture-list li:hover {
    background-color: #f0f1f3;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lecture-list a {
    color: #003DA5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lecture-list a:hover {
    color: #002856;
}

.lecture-number {
    display: inline-block;
    background-color: #003DA5;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #003DA5;
}

.info-card h3 {
    color: #003DA5;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #003DA5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #003DA5;
    transition: all 0.3s ease;
}

.info-link:hover {
    background-color: #003DA5;
    color: white;
    transform: translateX(3px);
}

.info-link svg {
    width: 18px;
    height: 18px;
}

/* Syllabus Container */
.syllabus-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.syllabus-container h3 {
    color: #003DA5;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Footer Note */
.footer-note {
    background-color: #fff8dc;
    border: 1px solid #ffe4b5;
    border-radius: 5px;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.footer-note::before {
    content: "📝 ";
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Code Styles */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d73a49;
}

pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #e1e4e8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

    .section {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 15px;
    }

    .lecture-list li {
        padding: 12px 15px;
    }

    .lecture-list a {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .syllabus-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}