/**
 * Theme Components Styles
 * Pagination, Breadcrumbs, Comments, Author
 */

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.875rem;
    color: #666;
    background: #f8f9fa;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: var(--heading-color);
    font-weight: 500;
}

/* Container for breadcrumbs */
.breadcrumbs-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs-container .breadcrumbs {
    background: transparent;
    padding: 20px 0;
    margin-bottom: 0;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */
.pagination,
.page-links,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.page-links a,
.page-links span,
.nav-links a,
.nav-links span,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.pagination a:hover,
.page-links a:hover,
.nav-links a:hover,
a.page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .current,
.page-links .current,
.nav-links .current,
span.current,
.page-numbers.current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    cursor: default;
    font-weight: 600;
}

.pagination .dots,
.page-links .dots,
span.dots {
    border: none;
    background: none;
    cursor: default;
}

/* Previous/Next Links */
.prev.page-numbers,
.next.page-numbers,
.nav-previous a,
.nav-next a {
    padding: 0 20px;
    font-weight: 600;
}

.prev.page-numbers:before,
.nav-previous a:before {
    content: "←";
    margin-right: 5px;
}

.next.page-numbers:after,
.nav-next a:after {
    content: "→";
    margin-left: 5px;
}

/* Post Navigation */
.post-navigation {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    height: auto;
    width: 100%;
}

.post-navigation a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.post-navigation .post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-top: 10px;
}

.post-navigation a:hover .post-title {
    color: white;
}

.post-navigation .meta-nav {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Comments Styles
   ========================================================================== */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.comments-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 60px;
}

.comment,
.pingback,
.trackback {
    margin-bottom: 30px;
}

.comment-body {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.comment-author .fn {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    margin-left: 75px;
    margin-bottom: 15px;
}

.comment-metadata a {
    color: #999;
    font-size: 0.875rem;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content {
    margin-left: 75px;
    color: #666;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 15px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-left: 75px;
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Nested Comments */
.children {
    list-style: none;
    padding: 0;
    margin-left: 30px;
    margin-top: 30px;
}

.children .comment-body {
    background: #f8f9fa;
}

.bypostauthor > .comment-body {
    border-left: 4px solid var(--primary-color);
}

.bypostauthor > .comment-body .comment-author .fn:after {
    content: "Author";
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: 400;
    vertical-align: middle;
}

/* Comment Form */
.comment-respond {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--heading-color);
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.comment-notes {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 20px;
}

.required {
    color: #e74c3c;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   Author Page Styles
   ========================================================================== */
.author-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: white;
    margin-bottom: 60px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.author-details {
    flex-grow: 1;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.author-bio {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 20px;
}

.author-meta {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.author-meta-item .dashicons {
    font-size: 20px;
}

.author-posts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.author-posts-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.author-posts-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ==========================================================================
   Archive & Category Improvements
   ========================================================================== */
.archive-header,
.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.archive-title,
.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-description,
.category-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Search Results Improvements
   ========================================================================== */
.search-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

.search-results-title {
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.search-results-count {
    color: #666;
}

.search-highlight {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-navigation .nav-next {
        text-align: left;
        align-items: flex-start;
    }

    .comment-content,
    .comment-metadata,
    .reply {
        margin-left: 0;
    }

    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }

    .children {
        margin-left: 15px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar img {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 2rem;
    }

    .author-meta {
        justify-content: center;
    }

    .pagination a,
    .pagination span,
    .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 10px 0;
    }

    .comment-body {
        padding: 20px;
    }

    .comment-respond {
        padding: 20px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-bio {
        font-size: 1rem;
    }
}