/*
Theme Name: CodingSoul Particles
Theme URI: https://codingsoul.org
Author: CodingSoul
Version: 1.0.0
Text Domain: codingsoul-particles
*/

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap");

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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #0d1117;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
    font-size: 14px;
    color: #c9d1d9;
}

#particles-canvas {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.content-overlay {
    position: relative;
    z-index: 10;
    color: #c9d1d9;
    padding: 1.5rem;
    pointer-events: none;
    min-height: 100vh;
}

.content-overlay a, .content-overlay button, .content-overlay input, .content-overlay textarea {
    pointer-events: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 1rem 0 0.5rem;
    color: #58a6ff;
}

.site-title a { color: #58a6ff; text-decoration: none; }
.site-title a:hover { color: #79c0ff; text-shadow: 0 0 10px rgba(88, 166, 255, 0.5); }

.site-description {
    text-align: center;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 1rem;
}

.main-navigation {
    text-align: center;
    margin: 1rem 0;
    pointer-events: auto;
}

.main-navigation ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(22, 27, 34, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.main-navigation li { list-style: none; }

.main-navigation a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-navigation a:hover { color: #58a6ff; background: rgba(88, 166, 255, 0.1); }

.site-content {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 1.5rem auto;
    padding-bottom: 4rem;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    pointer-events: auto;
}

.widget {
    background: rgba(13, 17, 23, 0.95);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #30363d;
    overflow: hidden;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #58a6ff;
    padding: 0.75rem 1rem;
    background: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid #30363d;
    margin: 0;
}

.widget ul { list-style: none; padding: 0.75rem 1rem; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid rgba(48, 54, 61, 0.5); font-size: 0.85rem; }
.widget li:last-child { border-bottom: none; }
.widget a { color: #8b949e; text-decoration: none; transition: color 0.2s; }
.widget a:hover { color: #3fb950; }
.widget img { max-width: 100%; height: auto; border-radius: 4px; border: 1px solid #30363d; }
.widget p { color: #8b949e; font-size: 0.85rem; line-height: 1.6; padding: 0.75rem 1rem; }

.wp-content-area {
    flex: 1;
    min-width: 0;
    pointer-events: auto;
}

.post, article {
    background: rgba(13, 17, 23, 0.95);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #30363d;
    overflow: hidden;
}

.entry-header {
    padding: 1rem 1.25rem;
    background: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid #30363d;
}

.entry-meta, .entry-meta-top {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.entry-meta::before, .entry-meta-top::before {
    content: "// ";
    color: #484f58;
}

.entry-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    color: #c9d1d9;
}

.entry-title a { color: #c9d1d9; text-decoration: none; transition: color 0.2s; }
.entry-title a:hover { color: #58a6ff; }

/* === ARTICLE CONTENT STYLING === */
.entry-content {
    padding: 2rem;
    color: #c9d1d9;
    line-height: 1.9;
    font-size: 0.95rem;
}

/* Paragraphs - more spacing like Ignite theme */
.entry-content p {
    margin-top: 0;
    margin-bottom: 1.75em;
}

.entry-content a { color: #58a6ff; }
.entry-content a:hover { text-decoration: underline; }

/* Headings in content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #c9d1d9;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.entry-content h1 { font-size: 1.75rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.1rem; }

/* First heading after entry-content starts - no top margin */
.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child {
    margin-top: 0;
}

/* Lists - bullets inside the content area */
.entry-content ul,
.entry-content ol {
    margin-top: 0;
    margin-bottom: 1.75em;
    padding-left: 2em;
    list-style-position: outside;
}

.entry-content li {
    margin-bottom: 0.75em;
    line-height: 1.8;
    padding-left: 0.25em;
}

.entry-content ul > li {
    list-style-type: disc;
}

.entry-content ol > li {
    list-style-type: decimal;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.75em;
    margin-bottom: 0;
}

/* Code */
.entry-content code {
    background: #161b22;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #f0883e;
    font-family: "JetBrains Mono", monospace;
}

.entry-content pre {
    background: #161b22;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #30363d;
    margin-top: 0;
    margin-bottom: 1.75em;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #58a6ff;
    background: rgba(22, 27, 34, 0.8);
    padding: 1.25rem 1.5rem;
    margin-top: 0;
    margin-bottom: 1.75em;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #8b949e;
}

.entry-content blockquote p { margin-bottom: 0; }
.entry-content blockquote p + p { margin-top: 1em; }

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #30363d;
    margin-top: 0.5em;
    margin-bottom: 1.75em;
    display: block;
}

.entry-content figure {
    margin: 0 0 1.75em 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 0.75rem;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75em;
    font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid #30363d;
    text-align: left;
}

.entry-content th {
    background: rgba(22, 27, 34, 0.8);
    color: #58a6ff;
    font-weight: 500;
}

.entry-content .wp-block-image img {
    margin: 0 auto 1.75em auto;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === END ARTICLE CONTENT === */

.read-more-btn {
    display: inline-block;
    background: transparent;
    color: #3fb950;
    padding: 0.5rem 1rem;
    border: 1px solid #3fb950;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 1.25rem 1.25rem;
    transition: all 0.2s;
}

.read-more-btn:hover { background: rgba(63, 185, 80, 0.1); color: #3fb950; }

.entry-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #30363d;
    font-size: 0.75rem;
    background: rgba(22, 27, 34, 0.5);
}

.cat-links, .tag-links {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cat-links::before { content: "cat:"; color: #484f58; margin-right: 0.25rem; }
.tag-links::before { content: "tags:"; color: #484f58; margin-right: 0.25rem; }

.cat-links a, .tag-links a {
    color: #f0883e;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(240, 136, 62, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.cat-links a:hover, .tag-links a:hover { background: rgba(240, 136, 62, 0.2); }

.archive-header {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 8px;
}

.archive-title { font-size: 1rem; color: #58a6ff; font-weight: 400; }
.archive-title::before { content: "> "; color: #3fb950; }

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 8px;
}

.post-navigation a { color: #58a6ff; text-decoration: none; font-size: 0.85rem; }
.post-navigation a:hover { color: #79c0ff; }

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.nav-links a, .nav-links span {
    padding: 0.5rem 0.75rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-links a:hover { border-color: #58a6ff; color: #58a6ff; }
.nav-links .current { background: #58a6ff; color: #0d1117; border-color: #58a6ff; }

/* Comments */
.comments-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 8px;
}

.comments-title { font-size: 1rem; color: #58a6ff; margin-bottom: 1.5rem; }

.comment-list { list-style: none; margin: 0; padding: 0; }

.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(22, 27, 34, 0.5);
    border-radius: 6px;
    border-left: 3px solid #30363d;
}

.comment-author { font-weight: 500; color: #3fb950; margin-bottom: 0.5rem; }
.comment-meta { font-size: 0.75rem; color: #8b949e; margin-bottom: 0.75rem; }
.comment-content { color: #c9d1d9; line-height: 1.6; }
.comment-reply-link { font-size: 0.8rem; color: #58a6ff; }

.site-footer {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
    color: #484f58;
    font-size: 0.75rem;
    z-index: 10;
    pointer-events: auto;
    border-top: 1px solid #21262d;
    margin-top: 2rem;
}

@media (max-width: 1000px) {
    .site-content { flex-direction: column; }
    .sidebar { width: 100%; order: 2; }
    .wp-content-area { order: 1; }
}

@media (max-width: 600px) {
    .site-title { font-size: 1.2rem; }
    .content-overlay { padding: 1rem; }
    .entry-title { font-size: 1.1rem; }
    .entry-content { padding: 1.25rem; }
    .entry-content pre { padding: 1rem; font-size: 0.8rem; }
    .main-navigation ul { padding: 0.5rem; gap: 0.25rem; }
}
