/* Single Post & Page Styles */

/* Single post layout with sidebar */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    margin: 40px 0;
}

.single-post-content {
    min-width: 0; /* Prevent overflow */
}

.single-post,
.single-page {
    padding: 0;
}

/* Sidebar styles */
.single-post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.single-post-sidebar .widget {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-post-sidebar .widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.single-post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post-sidebar li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.single-post-sidebar li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-post-sidebar a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.single-post-sidebar a:hover {
    color: var(--primary-color);
}

/* Table of Contents */
.table-of-contents {
    background: var(--light-gray);
    padding: 25px 30px;
    margin: 30px 0 40px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.toc-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.toc-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.toc-list a:hover {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-post-sidebar {
        position: static;
    }
}

/* Entry header and content */

.entry-header {
    margin-bottom: 30px;
}

.entry-header .post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-header .post-meta .separator {
    margin: 0 8px;
}

.entry-header .post-meta .city {
    color: var(--primary-color);
    font-weight: 500;
}

.entry-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
}

.entry-excerpt {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    padding: 20px;
    background: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.entry-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.entry-content h4 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    transition: all 0.3s;
}

.entry-content a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: #555;
}

.entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.entry-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags strong {
    margin-right: 10px;
}

.post-tags .tag {
    padding: 6px 15px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.post-tags .tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.post-tags .city-tag {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    border-color: rgba(0, 102, 204, 0.3);
}

.post-tags .city-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-links a {
    flex: 1;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* Page Links */
.page-links {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 4px;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    text-decoration: none;
    color: var(--text-color);
}

.page-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-links .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Archive & Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 20px 0;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--primary-color);
}

.search-form .search-submit {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-form .search-submit:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Pagination */
.pagination {
    margin: 50px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers.dots {
    border: none;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: var(--text-color);
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .entry-title {
        font-size: 28px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
}
