/* ===================================
   Author Page Styles
   =================================== */

/* Author Hero Section */
.author-hero {
    width: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.author-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.author-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 16px;
}

.author-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.hero-follow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-follow .follow-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-follow .rss-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: background 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.hero-follow .rss-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Author Profile Section */
.author-profile-section {
    background: var(--color-bg-dark);
    padding: 64px 0;
}

.author-profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.author-profile-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.author-profile-avatar {
    flex-shrink: 0;
}

.author-profile-avatar img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

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

.author-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.author-profile-title {
    font-size: 17px;
    color: var(--color-muted);
    margin: 0 0 16px;
}

.author-profile-bio {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

/* Author Posts Section */
.author-posts-section {
    background: var(--color-bg-dark);
    padding: 64px 0 96px;
}

.author-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 40px;
}

/* Author Posts Grid */
.author-posts-grid {
    display: grid;
    gap: 40px;
}

.author-post-card {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.16);
}

.author-post-link {
    display: flex;
    width: 100%;
    gap: 0;
    text-decoration: none;
}

.author-post-image {
    flex: 0 0 280px;
    width: 280px;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.author-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.author-post-card:hover .author-post-image img {
    transform: scale(1.05);
}

.author-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 14px;
}

.author-post-content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-post-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0 0 16px;
    transition: color 140ms ease;
}

.author-post-card:hover .author-post-title {
    color: var(--color-accent);
}

.author-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-muted);
}

.author-post-date {
    color: var(--color-muted);
}

.author-post-meta .meta-separator {
    opacity: 0.5;
}

/* Author Pagination */
.author-pagination {
    margin-top: 64px;
    text-align: center;
}

.author-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    font-weight: 500;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.author-pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--color-accent);
}

.author-pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.author-pagination .page-numbers.dots {
    border: none;
    background: none;
}

.author-pagination .page-numbers.prev,
.author-pagination .page-numbers.next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.author-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

/* No Posts */
.author-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.author-no-posts h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--color-text);
}

.author-no-posts p {
    font-size: 17px;
    color: var(--color-muted);
    margin: 0;
}

/* Responsive Author Styles */
@media (max-width: 960px) {
    .author-hero {
        padding: 64px 0 48px;
    }

    .author-hero-content {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }

    .author-hero-title {
        font-size: 42px;
    }

    .author-hero-subtitle {
        font-size: 17px;
    }

    .author-profile-container,
    .author-posts-container {
        padding: 0 20px;
    }

    .author-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px;
    }

    .author-post-link {
        flex-direction: column;
    }

    .author-post-image {
        flex: none;
        width: 100%;
        height: 240px;
    }

    .author-post-content {
        padding: 24px;
    }

    .author-post-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .author-hero {
        padding: 48px 0 32px;
    }

    .author-hero-content {
        padding: 0 16px;
    }

    .author-hero-title {
        font-size: 32px;
    }

    .author-hero-subtitle {
        font-size: 15px;
    }

    .author-profile-container,
    .author-posts-container {
        padding: 0 16px;
    }

    .author-profile-card {
        padding: 24px;
    }

    .author-profile-avatar img {
        width: 120px;
        height: 120px;
    }

    .author-profile-name {
        font-size: 22px;
    }

    .author-profile-title {
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .author-post-image {
        height: 200px;
    }

    .author-post-content {
        padding: 20px;
    }

    .author-post-title {
        font-size: 18px;
    }

    .author-post-meta {
        font-size: 13px;
    }
}
