/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@400;600;700&display=swap');

/* Make sure all content stays at full opacity */
main, article, nav, .nav-links, .site-nav, footer, h1, h2, h3, h4, h5, h6, p, a {
    position: relative;
    z-index: 1;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-top: 4rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

/* Content styling */
p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* List styling */
ul {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}


.post-info {
    color: #cccccc;
}

/* Link styling */
a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

a:hover {
    color: #cccccc;
    opacity: 0.8;
}

/* Code block styling */
pre {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
    background-color: rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
}

/* Navigation */
.nav-link {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.nav-link:hover {
    color: #cccccc;
}

/* Add some breathing room for better readability */
main {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Add semi-transparent backgrounds only to text sections */
main > div {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.4); /* Very light background */
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p, li {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    article {
        padding: 1.5em;
    }
}

/* Author brief styling */
.author-brief p {
    margin: 0;
}

.author-brief a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.author-brief a:hover {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 768px) {
    .author-brief {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

body {
    background-color: #111111;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding-top: 4rem;

}
/* Background container that will handle the animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111;
    background-image: url('/images/fork-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    z-index: -1; /* Place it behind the content */
    animation: subtlePulse 15s ease-in-out infinite;
}

@keyframes subtlePulse {
    0% {
        background-size: 100% 100%;
        background-position: center center;
    }
    50% {
        background-size: 120% 120%; /* More dramatic scale */
        background-position: 45% 48%; /* More noticeable movement */
    }
    100% {
        background-size: 100% 100%;
        background-position: center center;
    }
}
/* Content areas - reduce opacity */
article {
    padding: 2em;
    border-radius: 4px;
    margin-bottom: 2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA container - make more transparent */
.cta-container {
    background: rgba(17, 17, 17, 0.7); 
    backdrop-filter: blur(8px); /* Increased blur for readability */
    border-radius: 8px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Author brief - make more transparent */
.author-brief {
    background: rgba(17, 17, 17, 0.6); 
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    margin: 3rem auto;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Sidebar and footer - adjust opacity */
#sidebar {
    background-color: rgba(17, 17, 17, 0.8); /* Changed from 0.95 */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

footer {
    background-color: rgba(17, 17, 17, 0.8); /* Changed from 0.95 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
}
/* Blog post styling */
article {
    max-width: 800px;
    margin: 0 auto;
}

.tag-cloud {
    margin: 2rem 0;
}

.tag-cloud a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.related-posts {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.site-nav {
    padding: 1rem 2rem;
    text-align: right;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(5px);
}

.site-nav a {
    color: #ffffff;
    opacity: 0.7;
    text-decoration: none;
    margin-left: 2rem;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 1;
}
/* Navigation styling */
.nav-links {
    padding: 1rem 2rem;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: flex-end; /* Right align the nav items */
    align-items: center;
    position: fixed; /* Keep nav visible while scrolling */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-links a {
    margin-left: 2rem; /* Space between items */
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

/* Underline effect on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-links {
        padding: 0.75rem 1rem;
    }

    .nav-links a {
        margin-left: 1rem;
        font-size: 0.8rem;
    }
}
/* Override Flex theme button styles */
.btn,
a.btn,
.btn:visited,
a.btn:visited {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.btn:hover,
a.btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.share-section {
    margin: 2rem 0;
    text-align: left;
}

.share-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.share-icons {
    display: flex;
    gap: 1rem;
}

.share-icon {
    color: #666;
    transition: color 0.2s ease;
}

.share-icon:hover {
    color: #333;
}

.image-link {
    display: block;
    margin: 2rem 0;
    text-align: center;
}

.image-link img {
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #999;
}
