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

body {
    font-family: 'Menlo', monospace;
    background-color: #262626;
    color: #c8a0e0;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body.blog-open {
    overflow: auto;
}

/* Intro Section */
.intro-container {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.intro-left,
.intro-right {
    display: flex;
    flex-direction: column;
}

.protein-container {
    width: 100%;
    height: 400px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

#protein-3dmol-viewer {
    width: 100%;
    height: 100%;
}

.protein-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.protein-description {
    color: #aaa;
    font-size: 13px;
    font-family: 'Menlo', monospace;
    min-height: 120px;
    max-height: 120px;
    overflow: hidden;
}

.protein-description p {
    opacity: 0;
}

.bio h1 {
    color: #c8a0e0;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    font-family: 'Menlo', monospace;
    font-weight: normal;
    white-space: pre;
}

.bio-section {
    margin-bottom: 15px;
}

.bio-section .prompt {
    color: #9370db;
    display: block;
    margin-bottom: 5px;
    opacity: 0;
    font-family: 'Menlo', monospace;
    font-size: 13px;
}

.bio-section p, .bio-section ul {
    color: #ccc;
    margin-left: 20px;
    font-size: 13px;
    font-family: 'Menlo', monospace;
}

.bio-section p {
    opacity: 0;
}

.bio-section ul {
    list-style: none;
    padding-left: 0;
    opacity: 1 !important;
}

.bio-section li {
    margin-bottom: 5px;
    opacity: 0;
}

.bio-section li:before {
    content: "• ";
    color: #9370db;
}

.highlight {
    color: #d4a5f5;
    font-weight: bold;
}

/* Publications styling */
.publications {
    white-space: pre-wrap;
}

.author-name {
    text-decoration: underline;
    color: #d4a5f5;
}

.pub-link {
    color: #9370db;
    text-decoration: underline;
    cursor: pointer;
}

.pub-link:hover {
    color: #c8a0e0;
    text-decoration: underline;
}

.quick-link {
    color: #d4a5f5;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    background-color: rgba(180, 112, 214, 0.1);
}

.quick-link:hover {
    color: #e0b8ff;
    background-color: rgba(180, 112, 214, 0.25);
    text-decoration: none;
}

/* Command Line */
#output {
    margin-bottom: 20px;
    width: 100%;
    max-width: 1200px;
}

.output-line {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 13px;
    white-space: pre-wrap;
    font-family: 'Menlo', monospace;
}

.hint {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 15px;
    font-family: 'Menlo', monospace;
}

.command {
    color: #c8a0e0;
    font-size: 13px;
    font-weight: normal;
    font-family: 'Menlo', monospace;
}

.error {
    color: #ff4444;
    font-size: 13px;
    font-family: 'Menlo', monospace;
}

.input-line {
    display: none; /* Terminal functionality disabled */
    align-items: center;
}

.prompt-symbol {
    color: #c8a0e0;
    margin-right: 10px;
    font-weight: normal;
    font-family: 'Menlo', monospace;
    font-size: 13px;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c8a0e0;
    font-family: 'Menlo', monospace;
    font-size: 13px;
    outline: none;
}

#command-input:disabled {
    opacity: 0.5;
}

#command-input::selection {
    background-color: #b58dd6;
    color: #262626;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    body {
        padding: 10px;
    }
}

/* Blinking cursor effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Thick cursor - using a workaround with text-shadow to make it appear thicker */
#command-input {
    caret-color: #b58dd6;
    text-shadow: 0 0 0 transparent;
}

/* Make the cursor appear thicker by using a custom caret */
@supports (caret-shape: block) {
    #command-input {
        caret-shape: block;
    }
}

/* Fallback: use border on the side to simulate a thicker cursor */
#command-input {
    border-left: 2px solid transparent;
}

/* Blog Viewer (nano-like interface) */
.blog-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #262626;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease-in-out;
}

.blog-viewer.hidden {
    display: none;
    opacity: 0;
}

.blog-header {
    background-color: #2b2b2b;
    border-bottom: 1px solid #444;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-title {
    color: #c8a0e0;
    font-size: 14px;
    font-weight: bold;
}

.blog-hint {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hint-text {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.close-blog-btn {
    background-color: #2b2b2b;
    color: #d4a5f5;
    border: 1px solid #444;
    padding: 6px 12px;
    font-family: 'Menlo', monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: bold;
}

.close-blog-btn:hover {
    background-color: #353535;
    border-color: #b58dd6;
    color: #e0b8ff;
}

.close-blog-btn:active {
    background-color: #404040;
    transform: scale(0.98);
}

.blog-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #ccc;
    font-size: 13px;
}

.blog-footer {
    background-color: #2b2b2b;
    border-top: 1px solid #444;
    padding: 8px 20px;
    color: #888;
    font-size: 12px;
}

.blog-footer span {
    margin-right: 15px;
}

/* Blog List */
.blog-list {
    list-style: none;
    padding: 0;
}

.blog-list-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #444;
    background-color: #2b2b2b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-list-item:hover {
    border-color: #b58dd6;
    background-color: #353535;
}

.blog-list-item-title {
    color: #d4a5f5;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.blog-list-item-date {
    color: #888;
    font-size: 11px;
    margin-bottom: 8px;
}

.blog-list-item-preview {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
}

/* Individual Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.blog-post-title {
    color: #d4a5f5;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.blog-post-meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.blog-post-back {
    color: #9370db;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-post-back:hover {
    color: #c8a0e0;
}

.blog-post-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 13px;
}

.blog-post-content p {
    margin-bottom: 15px;
}

.blog-post-content h2 {
    color: #c8a0e0;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.blog-post-content h3 {
    color: #c8a0e0;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Inline code */
.blog-post-content code.inline-code {
    background-color: #2b2b2b;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d4a5f5;
    font-family: 'Menlo', monospace;
    font-size: 12px;
}

/* Code blocks */
.blog-post-content pre {
    background-color: #1d1f21 !important;
    padding: 15px !important;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #444;
    margin: 20px 0 !important;
    line-height: 1.5;
}

.blog-post-content pre code {
    background-color: transparent !important;
    padding: 0 !important;
    color: #c5c8c6;
    font-family: 'Menlo', monospace;
    font-size: 12px;
    display: block;
}

/* Prism.js theme overrides to match terminal aesthetic */
.blog-post-content pre[class*="language-"] {
    background-color: #1d1f21 !important;
    border: 1px solid #444;
}

.blog-post-content code[class*="language-"] {
    color: #c5c8c6;
    text-shadow: none;
}

/* R syntax highlighting customization */
.token.comment {
    color: #969896;
}

.token.string {
    color: #b5bd68;
}

.token.number {
    color: #de935f;
}

.token.keyword,
.token.operator {
    color: #b294bb;
}

.token.function {
    color: #81a2be;
}

.token.variable {
    color: #cc6666;
}

ion-icon {
    font-size: 32px;
    color: white;
}

/* Details/Summary (expandable sections) */
.blog-post-content details {
    background-color: #2f2f2f;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 15px 0;
    transition: background-color 0.2s ease;
}

.blog-post-content details:hover {
    background-color: #333;
}

.blog-post-content details[open] {
    background-color: #323232;
    border-color: #666;
}

.blog-post-content summary {
    color: #d4a5f5;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.blog-post-content summary:hover {
    color: #e0b8ff;
}

/* Remove default disclosure triangle */
.blog-post-content summary::-webkit-details-marker {
    display: none;
}

.blog-post-content summary::before {
    content: "▶ ";
    display: inline-block;
    transition: transform 0.2s ease;
    color: #9370db;
    margin-right: 5px;
}

.blog-post-content details[open] summary::before {
    transform: rotate(90deg);
}

.blog-post-content details p {
    margin-top: 10px;
    padding-left: 20px;
}

/* Tag Styling */
.blog-tag {
    display: inline-block;
    padding: 3px 8px;
    margin-right: 6px;
    margin-top: 4px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid #555;
    transition: all 0.2s ease;
}

/* Tag type colors */
.blog-tag.personal {
    background-color: #3d3d3d;
    color: #e5c07b;
    border-color: #5a5a3d;
}

.blog-tag.research {
    background-color: #3d3d3d;
    color: #61afef;
    border-color: #3d4a5a;
}

.blog-tag.lit-review {
    background-color: #3d3d3d;
    color: #c678dd;
    border-color: #4d3d5a;
}

.blog-tag.tutorial {
    background-color: #3d3d3d;
    color: #98c379;
    border-color: #3d5a3d;
}

.blog-tag.clickable {
    cursor: pointer;
}

.blog-tag.clickable:hover {
    background-color: #4a4a4a;
    transform: translateY(-1px);
}

.blog-tag.personal.clickable:hover {
    border-color: #e5c07b;
}

.blog-tag.research.clickable:hover {
    border-color: #61afef;
}

.blog-tag.lit-review.clickable:hover {
    border-color: #c678dd;
}

.blog-tag.tutorial.clickable:hover {
    border-color: #98c379;
}

.blog-list-item-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
}

.blog-post-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}

/* Tag Filter UI */
.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 5px;
}

.tag-filter-label {
    color: #9370db;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.tag-filter-btn {
    background-color: #3d3d3d;
    color: #aaa;
    border: 1px solid #555;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Menlo', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-btn:hover {
    background-color: #4a4a4a;
    border-color: #98c379;
    color: #98c379;
}

.tag-filter-btn.active {
    background-color: #98c379;
    color: #262626;
    border-color: #98c379;
    font-weight: bold;
}

.tag-filter-btn.active:hover {
    background-color: #a8d389;
}

/* Image Grid Styling */
.image-grid {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
