/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #2563eb;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

/* Author Profile Section */
.author-main {
    padding: 2rem 0;
}

.author-hero {
    background: #f8fafc;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.author-cover {
    position: relative;
    height: 200px;
}

.author-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-card {
    background: white;
    margin: -60px 2rem 2rem;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.author-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
}

.author-status.online {
    background: #10b981;
}

.author-details {
    flex: 1;
}

.author-header-info {
    margin-bottom: 1rem;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.author-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pro {
    background: #fef3c7;
    color: #92400e;
}

.badge-verified {
    background: #dbeafe;
    color: #1e40af;
}

.badge-top {
    background: #dcfce7;
    color: #166534;
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.author-bio {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

.author-location,
.author-website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.author-location svg,
.author-website svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.author-website a {
    color: #2563eb;
    text-decoration: none;
}

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

.author-social {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #2563eb;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.author-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Content Tabs */
.author-content {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: #2563eb;
}

.tab-btn.active {
    color: #2563eb;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.content-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.view-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

.article-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card__image {
    position: relative;
    height: 200px;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-card__content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.article-date {
    color: #9ca3af;
}

.article-read-time {
    color: #9ca3af;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
    line-height: 1.4;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.article-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.stat-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    max-width: 800px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

.about-highlights h3,
.about-expertise h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.achievement-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #4b5563;
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: #2563eb;
    color: white;
}

/* Activity Section */
.activity-section {
    max-width: 800px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.activity-text a {
    color: #2563eb;
    text-decoration: none;
}

.activity-text a:hover {
    text-decoration: underline;
}

.activity-time {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Followers Section */
.followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.follower-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.follower-card:hover {
    background: #f3f4f6;
}

.follower-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.follower-info {
    flex: 1;
}

.follower-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.follower-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .author-info-card {
        flex-direction: column;
        text-align: center;
        margin: -60px 1rem 2rem;
        padding: 1.5rem;
    }
    
    .author-avatar-large {
        align-self: center;
    }
    
    .author-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .author-actions {
        justify-content: center;
    }
    
    .tab-nav {
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .followers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-stats {
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .author-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}
