/* General Styles */
.eabs-author-profile,
.eabs-author-signature,
.eabs-article-details,
.eabs-author-articles {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    /* color: #333; */
}

/* Author Profile Page */
.eabs-author-profile {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.eabs-author-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.eabs-author-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eabs-author-name {
    /* color: #1a1a1a; */
}

.eabs-author-name a {
    color: #ec6d26;
    font-size: 18px;
}
.eabs-author-meta {
    font-size: 0.9rem;
}

.eabs-author-biography {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Author Signature */
.eabs-author-signature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ec6d26;
}

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

.eabs-author-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.eabs-author-info a {
    color: #2271b1;
    text-decoration: none;
}

.eabs-author-info a:hover {
    text-decoration: underline;
}

/* Article Details */
.eabs-article-details {
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.eabs-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.eabs-mini-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

/* Articles Grid */
.eabs-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.eabs-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.eabs-article-card:hover {
    transform: translateY(-4px);
}

.eabs-article-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.eabs-article-content {
    padding: 1.5rem;
}

.eabs-article-title {
    margin: 0 0 1rem;
    font-size: 1.45rem;
    font-weight: 600;
}

.eabs-article-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.eabs-article-title a:hover {
    color: #2271b1;
}

.eabs-article-excerpt {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* EEAT Elements */
.eabs-eeat-elements {
    margin: 20px 0 40px;
}

.eabs-yoast-breadcrumbs {
    margin: 14px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eabs-author-header {
        flex-direction: column;
        text-align: center;
    }

    .eabs-author-photo img {
        width: 200px;
        height: 200px;
    }

    .eabs-articles-grid {
        grid-template-columns: 1fr;
    }

    .eabs-article-details .eabs-article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Utility Classes */
.eabs-reading-time,
.eabs-update-date,
.eabs-registration-date,
.eabs-publish-date,
.eabs-viewers-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eabs-reading-time::before,
.eabs-update-date::before,
.eabs-registration-date::before,
.eabs-publish-date::before,
.eabs-viewers-count::before {
    display: inline-block;
    font-family: dashicons;
    font-size: 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 400;
    text-decoration: none;
    vertical-align: middle;
}

.eabs-reading-time::before {
    content: "\f469";
}

.eabs-update-date::before {
    content: "\f463";
}

.eabs-registration-date::before {
    content: "\f110";
}

.eabs-publish-date::before {
    content: "\f508";
}

.eabs-viewers-count::before {
    content: "\f177";
}

/* Покращений короткий опис */
.eabs-short-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 1rem 0 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 5px solid #ec6d26;
    border-radius: 3px;
}

.eabs-article-card .eabs-article-meta {
    color: #000;
}

.eabs-author-signature {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 1rem 1.25rem;
    margin: 2.5rem 0;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e5e8ee;
    border-left: 4px solid #ec6d26;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.eabs-author-signature .eabs-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.15);
}

.eabs-author-signature .eabs-author-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eabs-author-signature .eabs-author-name {
    margin: 0;
    line-height: 1.2;
    font-size: 1.2rem;
}

.eabs-author-signature .eabs-author-name a {
    color: #13213a;
    font-weight: 700;
    text-decoration: none;
}

.eabs-author-signature .eabs-author-name a:hover {
    color: #ec6d26;
}

.eabs-author-signature .eabs-author-bio {
    margin: 0;
    font-style: normal;
    color: #4a5568;
    line-height: 1.6;
}

.eabs-author-signature .eabs-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.6rem;
    margin: 0;
}

.eabs-author-signature .eabs-author-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: #f5f7fb;
    border: 1px solid #e3e9f3;
    border-radius: 999px;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1;
}

.eabs-share-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.eabs-share-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    margin-right: 0.15rem;
}

.eabs-share-link {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: transparent;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.eabs-share-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.eabs-share-link:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}

.eabs-share-link.is-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.eabs-share-link.is-twitter {
    color: #111111;
    border-color: #111111;
}

.eabs-share-link.is-linkedin {
    color: #0a66c2;
    border-color: #0a66c2;
}

.eabs-rating-widget {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.eabs-author-signature .eabs-rating-widget {
    margin-top: 0.15rem;
    padding: 0.95rem 1rem;
    border: 1px solid #d9e3f2;
    border-radius: 12px;
    background: #f8fbff;
    max-width: 460px;
}

.eabs-rating-label {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #64748b;
    line-height: 1;
    font-weight: 600;
}

.eabs-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.eabs-rating-stars {
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1;
}

.eabs-stars-bg {
    color: #d8d8d8;
}

.eabs-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f4a51b;
}

.eabs-rating-value {
    font-size: 1.1rem;
    color: #111827;
    font-weight: 700;
}

.eabs-rating-count {
    color: #6b7280;
    font-size: 0.85rem;
}

.eabs-rate-btn {
    align-self: flex-start;
    border: 1px solid #9ac48d;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    background: #eaf7e6;
    color: #1f7a2e;
    font-size: 0.9rem;
    line-height: 1.1;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eabs-rate-btn:hover {
    background: #def1d8;
    border-color: #86b778;
}

.eabs-rate-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.eabs-rate-actions-label,
.eabs-user-rating-label {
    color: #1f7a2e;
    font-weight: 700;
    font-size: 0.9rem;
}

.eabs-rate-star {
    border: 0;
    background: transparent;
    color: #d0d0d0;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.eabs-rate-star:hover,
.eabs-rate-star:focus-visible {
    color: #f4a51b;
}

.eabs-rate-star:disabled {
    opacity: 0.5;
    cursor: default;
}

.eabs-user-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.eabs-user-rating-stars {
    color: #1f7a2e;
    letter-spacing: 1px;
    font-size: 1rem;
}

.eabs-rate-message {
    font-size: 0.82rem;
    color: #1f7a2e;
}

.eabs-rate-message.is-error {
    color: #b22d3c;
}

@media (max-width: 768px) {
    .eabs-author-signature {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }

    .eabs-author-signature .eabs-author-avatar {
        width: 72px;
        height: 72px;
    }

    .eabs-author-signature .eabs-rating-widget {
        max-width: 100%;
    }

    .eabs-share-link {
        width: 28px;
        height: 28px;
    }
}
