/**
 * Author Profile Widget CSS
 * สไตล์สำหรับ Author Profile Widget
 */

.gtw-author-profiles-wrapper {
    width: 100%;
    padding: 0;
}

.gtw-author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.gtw-author-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtw-author-view-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.15) 0%, rgba(240, 90, 40, 0.15) 100%);
    border: 1px solid rgba(240, 90, 40, 0.3);
    border-radius: 8px;
    color: #f05a28;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtw-author-view-all:hover {
    background: linear-gradient(135deg, #de007d 0%, #f05a28 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(240, 90, 40, 0.3);
    transform: translateY(-2px);
}

.gtw-author-profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.gtw-author-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background-color: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .gtw-author-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.3), rgba(240, 90, 40, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.gtw-author-card:hover {
    background-color: #27272a;
    transform: translateY(-4px);
    border-color: rgba(240, 90, 40, 0.2);
}

.gtw-author-card:hover::before {
    opacity: 1;
}

/* Avatar */
.gtw-author-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(240, 90, 40, 0.2);
    background: linear-gradient(135deg, #de007d, #f05a28);
    padding: 3px;
    transition: all 0.3s ease;
}

.gtw-author-card:hover .gtw-author-avatar {
    border-color: rgba(240, 90, 40, 0.5);
    transform: scale(1.05);
}

.gtw-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #ffffff;
}

/* Name */
.gtw-author-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtw-author-card:hover .gtw-author-name {
    color: #f05a28;
}

/* Rating */
.gtw-author-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.gtw-author-rating-stars {
    font-size: 1.2rem;
    color: #fbbf24;
    letter-spacing: 2px;
}

.gtw-author-rating-value {
    font-weight: 600;
    color: #fbbf24;
}

.gtw-author-rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Location */
.gtw-author-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.gtw-author-location-icon {
    width: 16px;
    height: 16px;
    color: rgba(240, 90, 40, 0.8);
}

/* Specialties */
.gtw-author-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.gtw-author-specialty-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a78bfa;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Languages */
.gtw-author-languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.gtw-author-languages-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.gtw-author-languages-value {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.gtw-author-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.gtw-author-posts-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(240, 90, 40, 0.1);
    border-radius: 20px;
    color: #f05a28;
    font-weight: 500;
    font-size: 13px;
}

.gtw-author-posts-count i {
    font-size: 14px;
}

/* Meta */
.gtw-author-meta {
    width: 100%;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gtw-author-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gtw-author-experience-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.gtw-author-experience-badge {
    padding: 4px 12px;
    background: rgba(240, 90, 40, 0.15);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #f05a28;
}

.gtw-author-specialty {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Button */
.gtw-author-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #de007d, #f05a28);
    border-radius: 8px;
    font-weight: 300;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.gtw-author-button:hover {
    background: linear-gradient(135deg, #b30065, #e04a20);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(240, 90, 40, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .gtw-author-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gtw-author-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .gtw-author-card {
        padding: 20px 16px;
    }
    
    .gtw-author-avatar {
        width: 90px;
        height: 90px;
    }
    
    .gtw-author-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gtw-author-section-title {
        font-size: 20px;
    }
}

/* Light Mode Support */
.light .gtw-author-section-title {
    color: #0a0a0a;
}

.light .gtw-author-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light .gtw-author-card:hover {
    background-color: #f9fafb;
}

.light .gtw-author-name {
    color: #0a0a0a;
}

.light .gtw-author-card:hover .gtw-author-name {
    color: #f05a28;
}

.light .gtw-author-stats {
    color: rgba(0, 0, 0, 0.5);
}

.light .gtw-author-location {
    color: rgba(0, 0, 0, 0.6);
}

.light .gtw-author-meta {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.light .gtw-author-experience-label {
    color: rgba(0, 0, 0, 0.6);
}

.light .gtw-author-specialty {
    color: rgba(0, 0, 0, 0.5);
}

/* Empty State */
.gtw-author-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-color: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 20px 0;
}

.gtw-author-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.1), rgba(240, 90, 40, 0.1));
    border-radius: 50%;
    margin-bottom: 20px;
    color: rgba(240, 90, 40, 0.6);
    font-size: 32px;
}

.gtw-author-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtw-author-empty-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 400px;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Light Mode Support for Empty State */
.light .gtw-author-empty-state {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light .gtw-author-empty-icon {
    background: linear-gradient(135deg, rgba(222, 0, 125, 0.05), rgba(240, 90, 40, 0.05));
    color: rgba(240, 90, 40, 0.4);
}

.light .gtw-author-empty-title {
    color: #0a0a0a;
}

.light .gtw-author-empty-desc {
    color: rgba(0, 0, 0, 0.5);
}
