body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fafbfc;
    color: #222;
}

header {
    background: linear-gradient(90deg, #eaf6ff 0%, #f8fbff 100%);
    color: #222;
    padding: 0.5rem 0 1.2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    z-index: 2;
}
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.logo {
    font-size: 2.1rem;
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(30,144,255,0.08), 0 1px 0 #fff;
    position: relative;
    color: #888;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    cursor: pointer;
    transition: color 0.3s ease;
}
.logo::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #43e97b 0%, #1e90ff 100%);
    margin: 0.3rem auto 0 auto;
    border-radius: 2px;
}
.logo:hover {
    color: #666;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #1e90ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.main-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.content {
    flex: 2;
}
.sidebar {
    flex: 1;
    min-width: 280px;
}

.post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem;
    margin-bottom: 2rem;
}
.post h1 {
    margin-top: 0;
    font-size: 2rem;
    color: #333;
}
.meta {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.post-image {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 1.5rem auto;
    border-radius: 6px;
    background: #f0f0f0;
}
.post-details {
    font-size: 1rem;
    color: #444;
    text-align: center;
}

.search-box {
    background: #fff;
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
#searchInput {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
}
#searchBtn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

#searchBtn img {
    width: 32px;
    height: 32px;
    display: block;
}

.popular-posts {
    background: #fff;
    padding: 1.5rem 1rem 1rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.popular-posts h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #222;
    letter-spacing: 1px;
}
.popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}
.popular-posts img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.8rem;
    background: #eee;
}
.popular-posts a {
    color: #0084d1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.popular-posts a:hover {
    color: #005fa3;
}

.top-links-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 1.2rem 0 0.7rem 0;
    margin-bottom: 0.5rem;
}
.top-links-bar .sidebar-links {
    margin-bottom: 0;
}

.sidebar-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    margin-bottom: 2rem;
}
.sidebar-separator {
    color: #bbb;
    font-weight: bold;
    margin: 0 0.5rem;
    user-select: none;
}
.sidebar-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}
.sidebar-links a:hover {
    color: #666;
}
.sidebar-links a.active {
    color: #007bff;
    text-decoration: underline;
}
.post-description {
    font-size: 1.13rem;
    color: #222;
    background: #f7fafc;
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    word-break: break-word;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        min-width: 0;
        margin-top: 2rem;
    }
}

.single-post-page .main-content {
    justify-content: center;
    display: flex;
}
.single-post-page .post {
    width: 50vw !important;
    min-width: 320px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post-page .post-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.post-link {
    color: #222;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.post-link:hover {
    color: #111;
    text-decoration: none;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0 2rem 0;
    position: static;
    width: 100%;
    box-sizing: border-box;
}
.pagination-btn {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.3rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 0.1rem;
    min-width: 44px;
    min-height: 44px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
}
.pagination-btn.active, .pagination-btn:focus, .pagination-btn:hover:not(.disabled) {
    background: #0094ff;
    color: #fff;
}
.pagination-btn.disabled {
    background: #222;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}
.pagination-ellipsis {
    color: #fff;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
} 