/* BioBubbler Site Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Intro Notice */
.intro {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.intro .notice p {
    margin: 0;
    color: #856404;
}

/* Section Styling */
section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    font-size: 1.8rem;
}

section h3 {
    color: #764ba2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

section h4 {
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.note {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Chapter Sections */
.chapter-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.chapter-section:last-child {
    border-bottom: none;
}

/* Resource Lists */
.resource-list {
    list-style: none;
    margin-left: 0;
}

.resource-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-list li:before {
    content: "📄";
    position: absolute;
    left: 0;
}

.resource-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.resource-list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Video Links */
.video-links {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.video-links ul {
    list-style: none;
    margin-top: 0.5rem;
}

.video-links li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.video-links li:before {
    content: "🎥";
    position: absolute;
    left: 0;
}

.video-links a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-links a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

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

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    main {
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    header, footer, nav {
        display: none;
    }

    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
