/* =====================================================
   Author Box Widget
   ===================================================== */

/* 1. Main Container (The Card)
   ------------------------------------------- */
.sifency-author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    padding: 35px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Support for Elementor alignment */
.elementor-widget-author-box .sifency-author-box {
    justify-content: var(--justify-content, flex-start);
}

/* 2. Avatar Styling
   ------------------------------------------- */
.sifency-author-box__avatar {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.sifency-author-box__avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Zoom effect on hover */
.sifency-author-box:hover .sifency-author-box__avatar img {
    transform: scale(1.1);
}

/* 3. Text Content Area
   ------------------------------------------- */
.sifency-author-box__text {
    flex-grow: 1;
}

/* Author Name */
.sifency-author-box__name {
    margin: 0 0 12px;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
}

.sifency-author-box__name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sifency-author-box__name a:hover {
    color: var(--sifency-addons-themecolor);
}

/* Author Bio */
.sifency-author-box__bio {
    margin: 0 0 20px;
    line-height: 1.7;
    font-size: 1em;
}

/* 4. Social Icons Styling
   ------------------------------------------- */
.sifency-author-box__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sifency-author-box__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #f8f9fa;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sifency-author-box__social a:hover {
    background-color: var(--sifency-addons-themecolor);
    color: #ffffff;
    transform: translateY(-3px);
}

/* 5. Responsive Design for Mobile
   ------------------------------------------- */
@media (max-width: 767px) {
    .sifency-author-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .sifency-author-box__social {
        justify-content: center;
    }

    .sifency-author-box__avatar {
        margin-bottom: 20px;
    }
}

/* =====================================================
   Sifency - WordPress Comments Area
   ===================================================== */
.sifency-comments-area {
    margin-top: 40px;
}

.sifency-comments-area label {
    margin-bottom: 10px;
}

/* 2. Comments List */
.sifency-comments-area .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.sifency-comments-area .comment-list .comment {
    list-style: none;
    margin-bottom: 25px;
    position: relative;
    padding-left: 65px;
}

/* Comment body */
.sifency-comments-area .comment-list .comment-body {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

/* 3. Nested Comments */
.sifency-comments-area .comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 25px;
    position: relative;
}

.sifency-comments-area .comment-list .children::before {
    content: '';
    position: absolute;
    left: 15px;
    top: -10px;
    bottom: 15px;
    width: 2px;
    background: #e9ecef;
}

/* 4. Comment Author & Metadata */
.sifency-comments-area .comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sifency-comments-area .comment-author .avatar {
    position: absolute;
    left: 0;
    top: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.sifency-comments-area .comment-author .fn {
    font-weight: 700;
    font-size: 1.1em;
    color: #212529;
    font-style: normal;
}

.sifency-comments-area .comment-meta {
    font-size: 0.85em;
    color: #6c757d;
}

.sifency-comments-area .comment-meta a {
    color: #6c757d;
    text-decoration: none;
}

/* 5. Comment Content & Reply Button */
.sifency-comments-area .comment-content {
    color: #495057;
    line-height: 1.7;
}

.sifency-comments-area .reply {
    margin-top: 15px;
}

.sifency-comments-area .comment-reply-link {
    display: inline-block;
    padding: 6px 14px;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.sifency-comments-area .comment-reply-link:hover {
    background-color: var(--sifency-addons-themecolor);
    color: #ffffff;
}

/* 6. Comment Reply Form */
.sifency-comments-area #respond {
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sifency-comments-area #reply-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 20px;
}

.sifency-comments-area #reply-title small {
    margin-top: 10px;
}

.sifency-comments-area #reply-title small a {
    font-weight: 600;
    font-size: 0.8em;
    text-decoration: none;
}

/* 7. Form Fields */
.sifency-comments-area .comment-form p {
    margin-bottom: 15px;
}

.sifency-comments-area .comment-form input[type="text"],
.sifency-comments-area .comment-form input[type="email"],
.sifency-comments-area .comment-form input[type="url"],
.sifency-comments-area .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus State */
.sifency-comments-area .comment-form input[type="text"]:focus,
.sifency-comments-area .comment-form input[type="email"]:focus,
.sifency-comments-area .comment-form input[type="url"]:focus,
.sifency-comments-area .comment-form textarea:focus {
    outline: none;
    border-color: var(--sifency-addons-themecolor);
}

.sifency-comments-area .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 8. Submit Button */
.sifency-comments-area .form-submit .submit {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--sifency-addons-themecolor);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sifency-comments-area .form-submit .submit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* =====================================================
   Post Navigation Widget
   ===================================================== */

/* 1. Main Container */
.sifency-post-navigation {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
}

.sifency-post-navigation__prev,
.sifency-post-navigation__next {
    flex: 0 1 48%;
    min-width: 0;
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.sifency-post-navigation__next .sifency-post-navigation__link {
    justify-content: flex-end;
}

/* Hover (card only) */
.sifency-post-navigation__prev:hover .sifency-post-navigation__link,
.sifency-post-navigation__next:hover .sifency-post-navigation__link {
    background-color: var(--sifency-addons-themecolor);
}

/* Link Area */
.sifency-post-navigation__link {
    display: flex;
    align-items: center;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
    transition: color 0.3s ease;
}

/* Arrow Icon */
.sifency-post-navigation__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.2em;
    background-color: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Text Content */
.sifency-post-navigation__link-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: color 0.3s ease;
}

.sifency-post-navigation__prev .sifency-post-navigation__link-content {
    align-items: flex-start;
    text-align: left;
    margin-left: 20px;
}

.sifency-post-navigation__next .sifency-post-navigation__link-content {
    align-items: flex-end;
    text-align: right;
    margin-right: 20px;
}

/* Label */
.sifency-post-navigation__link-label {
    font-size: 0.8em;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

/* Title */
.sifency-post-navigation__link-title {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--sifency-addons-themecolor);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    word-break: break-word;
}

/* Hover Effects */
.sifency-post-navigation__prev:hover .sifency-post-navigation__arrow,
.sifency-post-navigation__next:hover .sifency-post-navigation__arrow {
    background-color: #ffffff;
    color: var(--sifency-addons-themecolor);
}

.sifency-post-navigation__prev:hover .sifency-post-navigation__link-label,
.sifency-post-navigation__next:hover .sifency-post-navigation__link-label,
.sifency-post-navigation__prev:hover .sifency-post-navigation__link-title,
.sifency-post-navigation__next:hover .sifency-post-navigation__link-title {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .sifency-post-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .sifency-post-navigation__prev,
    .sifency-post-navigation__next {
        flex: 1 1 auto;
        width: 100%;
    }

    .sifency-post-navigation__link {
        justify-content: space-between;
    }

    .sifency-post-navigation__next .sifency-post-navigation__link {
        flex-direction: row-reverse;
    }

    .sifency-post-navigation__next .sifency-post-navigation__link-content {
        align-items: flex-start;
        text-align: left;
        margin-right: 0;
        margin-left: 20px;
    }
}

/* =====================================================
   Post Terms Widget
   ===================================================== */

/* 1. Main Container */
.sifency-post-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 15px;
}

/* 2. Prefix */
.sifency-post-terms__prefix {
    font-size: 1em;
    font-weight: 600;
    color: #212529;
    flex-shrink: 0;
}

/* 3. Terms List */
.sifency-post-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 4. Individual Term Pill */
.sifency-post-terms-list a {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* 5. Hover State */
.sifency-post-terms-list a:hover {
    background-color: var(--sifency-addons-themecolor);
    border-color: var(--sifency-addons-themecolor);
    color: #ffffff;
}
/* =====================================================
   Post Meta Widget
   ===================================================== */
.sifency-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.5;
}
.sifency-post-meta__item {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.sifency-post-meta__item:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -10px;
    transform: translateX(50%);
    color: #dee2e6;
    font-size: 0.8em;
}
.sifency-post-meta__icon {
    margin-right: 8px;
    line-height: 1;
    color: #a0aec0;
    font-size: 1.1em;
}

.sifency-post-meta__text a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.sifency-post-meta__text a:hover {
    color: var(--sifency-addons-themecolor);
    text-decoration: underline;
}
