@import url('/style.css');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');
/* Base Styles */
body {
    background: var(--bg);
    color: var(--textcolor);
}

/* Main Content */
main {
    margin-top: 6rem;
    padding: 2rem;
    animation: 1.25s ease-in-out 0s 1 loadInAnimation;
    background: var(--bg);
}

/* Header Styles */
header {
    background: var(--uibg);
    padding: 0.7rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 10px var(--uibg);
}

.main-nav a:hover {
    text-shadow: 2px 2px 6px var(--textcolor);
}

/* Search Component */
#blogsearch {
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    display: block;
    font-size: 1.1rem;
    background: var(--inputbg);
    border: 2px solid var(--inputborder);
    border-radius: 25px;
    color: var(--textcolor);
    transition: all 0.3s ease;
  }  

#blogsearch:hover {
    transform: scale(1.02);
}

/* Articles List */
#articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Cards */
.article-card {
    background: var(--uibg);
    border: 2px solid var(--inputborder);
    color: var(--textcolor);
    border-radius: 20px;
    padding: 2rem;
    width: 80%;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--uibg);
}

.article-card:hover {
    transform: translateY(-5px);
    filter: brightness(0.9);
}

.article-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--inputborder);
}

.article-title {
    font-size: 30px;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: var(--uibg);
    padding: 1rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 10px var(--uibg);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content a {
    color: var(--textcolor);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    text-shadow: 2px 2px 6px var(--textcolor);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem;
}

/* Animations */
@keyframes loadInAnimation {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

pre[class*="language-"], pre.line-numbers {
    background: var(--inputbg);
    border: 2px solid var(--inputborder);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    margin: 2rem auto;
    overflow-x: auto;
}
  
code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}
  
pre.line-numbers {
    padding-left: 3.8em;
    position: relative;
}

@media (max-width: 768px) {
    pre[class*="language-"], pre.line-numbers {
      width: calc(100% + 2rem);
      margin: 1rem -1rem;
      border-radius: 0;
    }
}

ul, ol {
    margin: 1.5rem 0;
    padding-inline-start: 1.2rem;
    list-style-position: outside;
}
  
ul li, ol li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    text-align: left;
}
    