/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Header */
.main-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.main-nav {
    margin-top: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: #333;
}

/* Layout */
.container {
    display: flex;
    gap: 2rem;
    max-width: 2000px;
    margin: 0 auto;
    padding: 2rem 2rem;
    flex: 1;
}

.sidebar {
    width: 160px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    max-width: 100%;
}

.main-content.full-width {
    margin: 0 auto;
}

/* Sidebar */
.tags-section, .categories-section {
    margin-bottom: 2rem;
}

.tags-section h3, .categories-section h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: normal;
}

.tags-list, .categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar .tag, .sidebar .category {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    padding: 0;
}

.sidebar .tag:hover, .sidebar .category:hover {
    color: #333;
    text-decoration: underline;
}

.sidebar .tag.active, .sidebar .category.active {
    font-weight: bold;
    color: #333;
}

/* AI Links */
.links-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.links-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.links-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.links-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

.daily-links {
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.daily-links:last-child {
    margin-bottom: 0;
}

.daily-links p {
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Add styling for data-date attribute */
.daily-links p::before {
    content: attr(data-date);
    font-family: monospace;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.daily-links .date {
    font-family: monospace;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.daily-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
    border-bottom: none;
}

.daily-links a:hover {
    text-decoration: none;
    color: #004c99;
}

.daily-links .tags-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.daily-links .tag {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

.daily-links .tag:hover {
    background: #e0e0e0;
    color: #333;
}

/* Add styling for day separator */
.day-separator {
    height: 1.5rem;
    border-top: 1px solid #e6e6e6;
    margin: 1rem 0;
}

.source-badge {
    display: inline-block;
    background-color: #e6f3ff;
    color: #0066cc;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

/* Links Main Content */
.links-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem 1rem;
}

.links-header {
    margin-bottom: 2rem;
    text-align: center;
}

.links-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.links-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    /* Blog post specific mobile styles */
    .post-title {
        font-size: 1.5rem;
    }
    
    .blog-post {
        max-width: 100%;
    }
    
    .post-content img {
        max-width: 100%;
    }
    
    /* Daily links specific mobile styles */
    .daily-links p {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: space-between;
    }

    .daily-links a {
        flex: 1;
        min-width: 200px;
    }
    
    .daily-links .tags-wrapper {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .links-header h2 {
        font-size: 1.5rem;
    }

    .links-header p {
        font-size: 1rem;
    }
}

.links-main p {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.links-main h1 {
    font-size: 1.5rem;
    color: #333;
    margin: .5rem 0 1rem;
}

.links-main h2 {
    border-top: 1px solid #999;
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
}

.links-main ul {
    list-style: none;
    margin: 1rem 0;
}

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

.links-main li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.links-main a:not(.daily-links a) {
    color: #0066cc;
    text-decoration: underline;
    border-bottom: none;
}

.links-main a:not(.daily-links a):hover {
    color: #004c99;
}

.links-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.back-link {
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Home page */
.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.intro-section p {
    color: #666;
}

.featured-section {
    margin-bottom: 3rem;
}

.featured-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.projects-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
}

.page-header h1 {
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 8px;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0;
}

.projects-content {
    line-height: 1.6;
}

.projects-content h1 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.projects-content h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background-color: #3498db;
    border-radius: 3px;
}

.projects-content h4 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.projects-content h4::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
}

.projects-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

.projects-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.projects-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.projects-content hr {
    display: none;
}

.project-card {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
}

.project-link {
    color: #0066cc;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Blog section */
.posts-list {
    margin-top: 2rem;
}

.latest-posts {
    margin-top: 3rem;
}

.latest-posts h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

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

.post-preview:last-child {
    border-bottom: none;
}

.post-preview h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.post-preview h4 a {
    color: #333;
    text-decoration: none;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: #333;
    text-decoration: none;
}

/* Blog post */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Add a specific container class for blog posts */
.main-content.blog-content {
    max-width: 1000px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.post-content {
    color: #333;
    width: 100%;
    font-size: 1.05rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: #333;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-content h4 {
    color: #333;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
    font-size: 1.2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Make sure images are responsive and don't overflow */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

/* Tags */
.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    background: #f5f5f5;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
}

.tag:hover {
    background: #e5e5e5;
}

/* Footer */
.main-footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* Blog post title links in the main blog page */
.blog-content .post-title a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
}

/* Categories sidebar */
.categories-section {
    margin-bottom: 2rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar .category {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar .category:hover {
    text-decoration: underline;
}

.sidebar .category.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Wiki Links */
.wiki-link {
    color: #0066cc;
    text-decoration: underline;
    border-bottom: none;
}

.wiki-link:hover {
    color: #004c99;
}

/* Curated Links */
.curated-links {
    margin-bottom: 4rem;
}

.collection-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
    cursor: pointer;
}

.collection-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.collection-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-card .description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.collection-card .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.collection-card .tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .collection-card {
        padding: 1.5rem;
    }

    .collection-card h3 {
        font-size: 1.25rem;
    }
}

/* Ensure other links (like in blog posts) still have their underlines */
.post-content a {
    text-decoration: underline;
}

.links-main a:not(.daily-links a) {
    text-decoration: underline;
}

/* Hashtag styles */
.hashtag {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hashtag:hover {
    color: #004999;
    text-decoration: underline;
}

/* Filtered content styles */
.filtered-content {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 3px solid #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.filtered-content h3 {
    margin-top: 0;
    color: #333;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #333;
}

/* AI Resources Section */
.ai-resources {
    margin-bottom: 4rem;
}

.available-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collection-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.collection-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.collection-card a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.collection-card a:hover {
    color: #004c99;
}

.collection-card p {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.links-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.links-header {
    text-align: center;
    margin-bottom: .5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.links-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.links-header p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .links-content {
        padding: 2rem 1rem;
    }

    .links-header h2 {
        font-size: 2rem;
    }

    .links-header p {
        font-size: 1.1rem;
    }

    .available-collections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Curated Links Page */
.curated-link {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.curated-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.curated-link h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.curated-link h3 a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.curated-link h3 a:hover {
    color: #004c99;
}

.curated-link p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .curated-link {
        padding: 1.5rem;
    }

    .curated-link h3 {
        font-size: 1.25rem;
    }
}

/* Contact page styles */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-section {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #004c99;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }

    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }
}

.projects-content ul {
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.projects-content ul ul {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    list-style: none;
}

.projects-content li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.5;
}

.projects-content ul > li::before {
    content: "•";
    position: absolute;
    left: -1.2rem;
    color: #3498db;
}

.projects-content ul ul > li::before {
    content: "◦";
    color: #666;
}

.post-content ul {
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.post-content ul ul {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    list-style: none;
}

.post-content li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.5;
}

.post-content ul > li::before {
    content: "•";
    position: absolute;
    left: -1.2rem;
    color: #3498db;
}

.post-content ul ul > li::before {
    content: "◦";
    color: #666;
} 