/* Additional Custom Styles */

/* Loading animation */
.loading {
    text-align: center;
    padding: 3rem;
    grid-column: 1/-1;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Pagination */
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

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

/* Single Post Page */
.single-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.single-header {
    margin-bottom: 2rem;
}

.single-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: 'Playfair Display', Georgia, serif;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.single-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    margin-bottom: 1.5rem;
}

.tags-label,
.share-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.share-icon:hover {
    transform: translateY(-3px);
}

.share-icon.facebook:hover {
    background: #1877F2;
    color: white;
}

.share-icon.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-icon.linkedin:hover {
    background: #0077B5;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    margin: 3rem 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.author-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-thumbnail {
    height: 160px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.2rem;
}

.related-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-card-title a:hover {
    color: var(--primary-color);
}

/* Archive Pages */
.archive-header {
    margin-bottom: 3rem;
    text-align: center;
}

.archive-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.category-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.category-item a:hover {
    color: var(--primary-color);
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Error 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-search {
    margin-bottom: 3rem;
}

.error-search h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.error-links h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.error-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.error-links a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
}

.error-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
}

.comments-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-content {
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-respond {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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