/* Dark theme markdown styling */
.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;  /* Light text for dark background */
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Headers */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.markdown-body h1 { font-size: 2rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.5rem; }
.markdown-body h2 { font-size: 1.5rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.4rem; }
.markdown-body h3 { font-size: 1.25rem; }
.markdown-body h4 { font-size: 1.1rem; }
.markdown-body h5 { font-size: 1rem; }
.markdown-body h6 { font-size: 0.9rem; color: #888; }

/* Paragraphs */
.markdown-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #d0d0d0;
}

/* Links */
.markdown-body a {
    color: #00d1b2;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

/* Lists */
.markdown-body li {
    color: #d0d0d0;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Bold text inside markdown - make it bright white */
.markdown-body strong,
.markdown-body b {
    color: #ffffff;
    font-weight: 700;
}

/* Bold text specifically inside list items */
.markdown-body li strong,
.markdown-body li b {
    color: #ffffff;
}

/* First level list items - slightly brighter */
.markdown-body > ul > li,
.markdown-body > ol > li {
    color: #e0e0e0;
}

/* Blockquotes */
.markdown-body blockquote {
    border-left: 4px solid #00d1b2;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: rgba(0, 209, 178, 0.05);
    color: #b0b0b0;
}

/* Code blocks */
.markdown-body pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-body code {
    background: #1a1a1a;
    color: #00d1b2;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9em;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.markdown-body pre code {
    background: transparent;
    color: #e0e0e0;
    padding: 0;
}

/* Tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid #2a2a2a;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.markdown-body th {
    background: #1a1a1a;
    font-weight: 600;
}

/* Horizontal rule */
.markdown-body hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 1.5rem 0;
}

/* Images */
.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Task lists */
.markdown-body input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Container for markdown content - fixes margin issues */
.markdown-content {
    padding: 0 0.5rem;
}

/* Adjust container padding on mobile */
@media screen and (max-width: 768px) {
    .markdown-content {
        padding: 0;
    }

    .markdown-body h1 { font-size: 1.75rem; }
    .markdown-body h2 { font-size: 1.35rem; }
    .markdown-body h3 { font-size: 1.15rem; }
}
.card{
    box-shadow: 0 16px 48px #E3E7EB;
}
.tag.is-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 3px rgba(10,10,10,0.1);
}

/* Transition animation */
.tag.is-clickable {
    transition: all 0.2s ease-in-out;
}

/* Active/pressed state */
.tag.is-clickable:active {
    transform: translateY(0);
}
.button.is-info.is-outlined:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(50, 115, 220, 0.3);
}

/* Responsive spacing */
@media screen and (max-width: 768px) {
    .buttons.is-centered .button {
      margin-bottom: 0.5rem;
      width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .tags {
      flex-wrap: wrap;
    }
    .tags .tag {
      margin-bottom: 0.5rem;
    }
}
.buttons.is-centered {
    justify-content: center;
    flex-wrap: wrap;
}

/* Rotated search icon for AND */
.fa-rotate-90 {
    transform: rotate(90deg);
    display: inline-block;
}

/* Tooltip-like title display */
[title]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #363636;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
}
.media + .media {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}

.media-content .tag {
    height: auto;
    line-height: 1.4;
    padding: 0.15em 0.5em;
    margin-right: 0.3em;
    font-size: 0.75em;
}

.notification.is-light a {
    text-decoration: underline;
}
.media-left .tag {
    min-width: 3.5em;
    text-align: center;
}

/* Matching term highlights */
.has-text-info {
    font-weight: 500;
}

/* Shared category highlights */
.has-text-success {
    font-style: italic;
}

/* Responsive media object */
@media screen and (max-width: 768px) {
    .media-left {
      margin-bottom: 0.5rem;
    }
}

/* Ensure list bullets are visible */
.markdown-body ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
}

.markdown-body ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
}

.markdown-body li {
    display: list-item !important;
}