/* EEAT Author - Public Styles */

/* Author Box in Posts */
.eeat-author-box {
    display: flex;
    gap: 24px;
    padding: 32px;
    margin: 48px 0;
    background: var(--eeat-bg, #f8fafc);
    /* Slate-50 */
    color: var(--eeat-text, #334155);
    /* Slate-700 */
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    /* Slate-200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Tailwind shadow-sm */
    align-items: center;
}

.eeat-author-photo {
    flex-shrink: 0;
}

.eeat-author-photo img {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    /* Full circle */
    object-fit: contain;
    /* Contain for logo */
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.eeat-author-photo a:hover img {
    transform: scale(1.05);
}

.eeat-author-info {
    flex: 1;
}

.eeat-author-name {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    /* Slate-800 */
    line-height: 1.2;
}

.eeat-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eeat-author-name a:hover {
    color: var(--eeat-btn, #2563eb);
    /* Blue-600 */
}

.eeat-author-description {
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #64748b;
    /* Slate-500 */
}

/* Social Links */
.eeat-author-social,
.eeat-bio-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.eeat-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 18px;
}

.eeat-social-link:hover {
    background: var(--eeat-btn, #2563eb);
    color: white !important;
    border-color: var(--eeat-btn, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.eeat-social-link i {
    line-height: 1;
}

/* Author Biography Page */
.eeat-author-bio {
    background: transparent;
    color: #334155;
    padding: 0;
    border-radius: 0;
    margin-bottom: 48px;
    box-shadow: none;
}

.eeat-bio-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.eeat-bio-photo {
    flex-shrink: 0;
    min-width: 140px;
    min-height: 140px;
}

.eeat-bio-photo img {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    object-fit: contain;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: block;
}

.eeat-bio-meta {
    flex: 1;
}

.eeat-bio-content {
    font-size: 1.125rem;
    /* Text-lg */
    line-height: 1.8;
    color: #475569;
    /* Slate-600 */
    max-width: 65ch;
    /* Comfortable reading width */
    margin-left: auto;
    margin-right: auto;
}

.eeat-bio-content p {
    margin-bottom: 1.5em;
}

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

/* Responsive */
@media (max-width: 768px) {
    .eeat-author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .eeat-author-photo img {
        margin-bottom: 16px;
    }

    .eeat-author-social {
        justify-content: center;
    }

    .eeat-bio-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 24px;
    }

    .eeat-bio-social {
        justify-content: center;
    }
}

.eeat-bio-content p {
    margin-bottom: 1.5em;
}

.eeat-bio-content strong {
    color: #1e293b;
    /* Slate-800 */
    font-weight: 700;
}

/* Custom Elements within Bio */
.eeat-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.eeat-metric-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.eeat-metric-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.eeat-metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.eeat-metric-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.eeat-specialties {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.eeat-specialties h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.eeat-specialties ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.eeat-specialties li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.eeat-specialties li i {
    color: #10b981;
    /* Emerald-500 */
    margin-top: 6px;
}

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

/* CTA Widget */
.eeat-cta-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.eeat-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.eeat-cta-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.eeat-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.telegram .eeat-cta-icon {
    background: #e0f2fe;
    /* Sky-100 */
    color: #0284c7;
    /* Sky-600 */
}

.substack .eeat-cta-icon {
    background: #fef3c7;
    /* Amber-100 */
    color: #d97706;
    /* Amber-600 */
}

.eeat-cta-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e293b;
}

.eeat-cta-content p {
    margin: 0 0 20px 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.eeat-cta-content a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.telegram .eeat-cta-content a {
    background: #0284c7;
    color: white;
}

.telegram .eeat-cta-content a:hover {
    background: #0369a1;
}

.substack .eeat-cta-content a {
    background: #d97706;
    color: white;
}

.substack .eeat-cta-content a:hover {
    background: #b45309;
}

@media (max-width: 600px) {
    .eeat-cta-widget {
        grid-template-columns: 1fr;
    }
}