/* --- Announce Bar --- */
.md-announce {
    background-color: #1e1e2e;
    color: #cdd6f2;
}

.md-announce a {
    color: #cba6f7;
    font-weight: bold;
}

/* Fixar så att ikoner i announcen ärver rätt färg */
.md-announce .twemoji svg {
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    height: 1rem;
    width: auto;
}

/* --- Sidebar & Navigation --- */
.md-sidebar--primary .md-sidebar__scrollwrap {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cba6f7 #1e1e2e;
}

.md-sidebar--secondary {
    display: none;
}

/* --- Code Blocks & Clipboard --- */
.md-code__copy,  
.md-clipboard {
    visibility: visible;
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* --- Search UI --- */
.md-search {
    z-index: 1000;
}

.md-search__inner {
    background-color: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(4px);
}

/* --- Layout Fixes --- */
.md-footer {
    position: relative;
    z-index: 100;
    margin-top: 2em;
    border-top: 1px solid #cba6f7;
}

.md-main__inner {
    padding-bottom: 5em;
}

/* --- Animations --- */
@keyframes heart {
    0%, 40%, 80%, 100% { transform: scale(1); }
    20%, 60% { transform: scale(1.15); }
}

/* Hjärtat använder nu 'currentColor' vilket gör att det byter färg 
   automatiskt när du växlar mellan mörkt/ljust tema */
.heart-throb {
    display: inline-block;
    animation: heart 1000ms infinite;
    color: currentColor; 
}

/* Om du vill tvinga hjärtat att vara specifikt Gentoo-lila i mörkt läge: */
[data-md-color-scheme="slate"] .heart-throb {
    color: #cba6f7;
}

/* --- Custom Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1e1e2e;
}

::-webkit-scrollbar-thumb {
    background: #cba6f7;
    border-radius: 10px;
}