/**
 * E-E-A-T Author Pages - Frontend Styles
 * Optimized for Google Discover and E-E-A-T
 */

:root {
    --eeat-primary: #2563eb;
    --eeat-primary-dark: #1d4ed8;
    --eeat-gray-50: #f9fafb;
    --eeat-gray-100: #f3f4f6;
    --eeat-gray-200: #e5e7eb;
    --eeat-gray-300: #d1d5db;
    --eeat-gray-400: #9ca3af;
    --eeat-gray-500: #6b7280;
    --eeat-gray-600: #4b5563;
    --eeat-gray-700: #374151;
    --eeat-gray-800: #1f2937;
    --eeat-gray-900: #111827;
    --eeat-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --eeat-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --eeat-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --eeat-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --eeat-radius: 12px;
    --eeat-radius-sm: 8px;
    --eeat-transition: all 0.2s ease;
}

.eeat-author-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--eeat-gray-800);
    background: var(--eeat-gray-50);
}

.eeat-author-page *, .eeat-author-page *::before, .eeat-author-page *::after {
    box-sizing: border-box;
}

/* Hero Section */
.eeat-author-hero {
    position: relative;
    padding: 80px 20px 60px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eeat-hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--eeat-primary) 0%, var(--eeat-primary-dark) 100%);
}

.eeat-hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.eeat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.eeat-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.eeat-author-avatar {
    position: relative;
    margin-bottom: 24px;
}

.eeat-avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.9);
    box-shadow: var(--eeat-shadow-lg);
}

.eeat-verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: var(--eeat-shadow);
}

.eeat-author-info { color: white; }

.eeat-author-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eeat-author-title {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0 0 20px;
}

.eeat-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.eeat-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    transition: var(--eeat-transition);
    backdrop-filter: blur(10px);
}

.eeat-social-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: white;
}

.eeat-author-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.eeat-author-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .eeat-author-grid { grid-template-columns: 1fr; }
    .eeat-author-name { font-size: 2rem; }
    .eeat-avatar-img { width: 140px; height: 140px; }
}

@media (max-width: 640px) {
    .eeat-author-hero { padding: 60px 16px 40px; }
    .eeat-author-name { font-size: 1.75rem; }
    .eeat-avatar-img { width: 120px; height: 120px; }
    .eeat-author-container { padding: 24px 16px; }
    .eeat-articles-section { padding: 20px; }
    .eeat-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .eeat-stat { padding: 12px 4px; }
    .eeat-stat-number { font-size: 1.5rem; }
}

.eeat-card {
    background: white;
    border-radius: var(--eeat-radius);
    padding: 24px;
    box-shadow: var(--eeat-shadow);
    margin-bottom: 24px;
}

.eeat-card:last-child { margin-bottom: 0; }

.eeat-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--eeat-gray-900);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--eeat-gray-100);
}

.eeat-card-title svg {
    color: var(--eeat-primary);
    flex-shrink: 0;
}

.eeat-bio-content { color: var(--eeat-gray-600); }
.eeat-bio-content p { margin: 0 0 12px; }
.eeat-bio-content p:last-child { margin-bottom: 0; }

.eeat-quote-card {
    background: linear-gradient(135deg, var(--eeat-gray-50) 0%, white 100%);
    border-left: 4px solid var(--eeat-primary);
}

.eeat-quote {
    position: relative;
    margin: 0;
    padding: 0;
}

.eeat-quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    color: var(--eeat-primary);
    opacity: 0.15;
}

.eeat-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--eeat-gray-700);
    margin: 0;
    line-height: 1.7;
}

.eeat-credentials-list h3, .eeat-education h3, .eeat-experience h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--eeat-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.eeat-credentials-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.eeat-credentials-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--eeat-gray-700);
    border-bottom: 1px solid var(--eeat-gray-100);
}

.eeat-credentials-list li:last-child { border-bottom: none; }
.eeat-credentials-list li svg { color: #10b981; flex-shrink: 0; }

.eeat-education p, .eeat-experience p {
    margin: 0 0 16px;
    color: var(--eeat-gray-700);
}

.eeat-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eeat-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--eeat-gray-100);
    color: var(--eeat-gray-700);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--eeat-transition);
}

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

.eeat-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eeat-awards-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--eeat-gray-700);
    border-bottom: 1px solid var(--eeat-gray-100);
}

.eeat-awards-list li:last-child { border-bottom: none; }
.eeat-awards-list li::before { content: '🏆'; font-size: 1rem; }

.eeat-publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eeat-publications-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--eeat-gray-100);
}

.eeat-publications-list li:last-child { border-bottom: none; }

.eeat-publications-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--eeat-primary);
    text-decoration: none;
    transition: var(--eeat-transition);
}

.eeat-publications-list a:hover { color: var(--eeat-primary-dark); }

.eeat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.eeat-stat {
    padding: 16px 8px;
    background: var(--eeat-gray-50);
    border-radius: var(--eeat-radius-sm);
}

.eeat-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eeat-primary);
    line-height: 1.2;
}

.eeat-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--eeat-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.eeat-member-since {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--eeat-gray-100);
    text-align: center;
    font-size: 0.875rem;
    color: var(--eeat-gray-500);
}

.eeat-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eeat-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--eeat-gray-50);
    border-radius: var(--eeat-radius-sm);
    text-decoration: none;
    color: var(--eeat-gray-700);
    transition: var(--eeat-transition);
}

.eeat-category-item:hover {
    background: var(--eeat-primary);
    color: white;
}

.eeat-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
}

.eeat-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--eeat-radius-sm);
}

.eeat-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eeat-articles-section {
    background: white;
    border-radius: var(--eeat-radius);
    padding: 32px;
    box-shadow: var(--eeat-shadow);
}

.eeat-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eeat-gray-900);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--eeat-gray-100);
}

.eeat-section-title svg { color: var(--eeat-primary); }

.eeat-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.eeat-article-card {
    background: var(--eeat-gray-50);
    border-radius: var(--eeat-radius);
    overflow: hidden;
    transition: var(--eeat-transition);
}

.eeat-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eeat-shadow-md);
}

.eeat-article-thumbnail {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.eeat-article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.eeat-article-content { padding: 20px; }

.eeat-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.eeat-article-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--eeat-primary);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eeat-article-meta time { color: var(--eeat-gray-500); }

.eeat-article-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

.eeat-article-title a {
    color: var(--eeat-gray-900);
    text-decoration: none;
    transition: var(--eeat-transition);
}

.eeat-article-title a:hover { color: var(--eeat-primary); }

.eeat-article-excerpt {
    font-size: 0.9rem;
    color: var(--eeat-gray-600);
    margin: 0 0 16px;
    line-height: 1.6;
}

.eeat-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--eeat-primary);
    text-decoration: none;
    transition: var(--eeat-transition);
}

.eeat-read-more:hover {
    gap: 10px;
    color: var(--eeat-primary-dark);
}

.eeat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--eeat-gray-200);
    flex-wrap: wrap;
}

.eeat-pagination a, .eeat-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--eeat-gray-100);
    color: var(--eeat-gray-700);
    border-radius: var(--eeat-radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--eeat-transition);
}

.eeat-pagination a:hover {
    background: var(--eeat-primary);
    color: white;
}

.eeat-pagination .current {
    background: var(--eeat-primary);
    color: white;
}

.eeat-pagination .prev, .eeat-pagination .next {
    gap: 6px;
    padding: 0 16px;
}

.eeat-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--eeat-gray-500);
}

.eeat-no-posts p { margin: 0; }

/* Print Styles */
@media print {
    .eeat-author-hero { background: var(--eeat-gray-100) !important; }
    .eeat-hero-background { display: none; }
    .eeat-social-links { display: none; }
    .eeat-card { box-shadow: none; border: 1px solid var(--eeat-gray-200); }
}
