/* Basic styling for simplicity and readability */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f4f4f4;
    color: #222;
    transition: background 0.3s, color 0.3s;
}

header {
    text-align: center;
    padding: 1.5rem;
    background: #222;
    color: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

header .header-logo img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    border-radius: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.header-top h1 {
    margin: 0;
    font-size: 2.0rem;
    text-align: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

.search-button {
    background: none;
    border: none;
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.search-button:hover {
    color: #fff;
}

.theme-toggle {
    background: #333;
    border: 2px solid #555;
    border-radius: 20px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: #444;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.dark-mode .theme-toggle {
    background: #555;
    border-color: #777;
}

.dark-mode .theme-toggle-slider {
    transform: translateX(30px);
}

.tagline {
    text-align: center;
    margin: 0;
    color: #bbb;
    font-size: 0.95rem;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .search-modal-content {
    background: #1e1e1e;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-modal-header h3 {
    margin: 0;
}

.close-search {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.dark-mode .close-search {
    color: #aaa;
}

.close-search:hover {
    color: #000;
}

.dark-mode .close-search:hover {
    color: #fff;
}

#searchBar {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.dark-mode #searchBar {
    background: #2a2a2a;
    color: #f4f4f4;
    border-color: #444;
}

#searchResults {
    list-style: none;
    padding: 0;
    margin: 0;
}

#searchResults li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.dark-mode #searchResults li {
    border-bottom-color: #333;
}

#searchResults li:last-child {
    border-bottom: none;
}

#searchResults a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.dark-mode #searchResults a {
    color: #9cd2ff;
}

#searchResults a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: #666;
    padding: 2rem 0;
}

.dark-mode .no-results {
    color: #aaa;
}

main {
    padding: 1.5rem;
    max-width: 800px;
    margin: auto;
}

.intro, .posts {
    margin-bottom: 2rem;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 0.8rem;
}

main a {
    color: #0066cc;
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: #fff;
    margin-top: 2rem;
}

footer a {
    color: #9cd2ff;
}

/* Dark Mode */
.dark-mode {
    background: #121212;
    color: #f4f4f4;
}

.dark-mode header,
.dark-mode footer {
    background: #000;
}

.dark-mode main a {
    color: #9cd2ff;
}

/* Responsive */
@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    .header-nav {
        width: 100%;
        justify-content: space-between;
    }
    main {
        padding: 1rem;
    }
    .search-modal {
        padding-top: 50px;
    }
    .search-modal-content {
        padding: 1.5rem;
    }
}





