/* ==========================================================================
   Author Page Styles
   Source: author.html
   ========================================================================== */

/* Author Page Header (class-based, different from element header in global.css) */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.logo-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    text-decoration: none;
}

.logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    font-weight: 600;
    color: var(--accent-warm);
    letter-spacing: -1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

.account-btn {
    background: var(--accent-warm);
    color: white;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.account-btn:hover {
    background: var(--accent-gold);
}

/* Author Page Nav (class-based) */
.nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 12px 0;
}

.nav a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-warm);
    border-bottom-color: var(--accent-warm);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-warm);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

.breadcrumb-links a {
    color: var(--text-tertiary);
    text-decoration: none;
}

.breadcrumb-links a:hover {
    color: var(--accent-warm);
}

.breadcrumb-links span {
    color: var(--text-tertiary);
}

.breadcrumb-links .current {
    color: var(--text-secondary);
}

/* Author Hero */
.author-hero {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%);
    padding: 48px 0;
    color: white;
}

.author-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.author-photo-wrapper {
    position: relative;
}

.author-photo {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.author-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.author-info {
    padding-top: 20px;
}

.author-info h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 8px;
    color: white;
}

.author-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.author-bio {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 650px;
}

.author-stats {
    display: flex;
    gap: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 32px;
}

.author-stat {
    text-align: left;
}

.author-stat-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.author-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

/* Main Content Layout */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
}

/* Articles Section */
.articles-section {
    min-width: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-warm);
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
}

/* View Toggle - Hidden */
.view-toggle {
    display: none;
}

/* Featured Article - Hidden */
.featured-article {
    display: none;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.article-card:last-child {
    border-bottom: none;
}

.article-image {
    aspect-ratio: 3/2;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%);
    width: 100%;
    position: relative;
}

.article-image .premium-badge-small {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: var(--accent-gold);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.article-image .premium-badge-small svg {
    width: 8px;
    height: 8px;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-warm);
    margin-bottom: 8px;
}

.article-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-warm);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination (Author variant with border-radius) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

.pagination .current {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    color: white;
}

.pagination .dots {
    border: none;
    padding: 10px 8px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* About Box - Hidden */
.about-box {
    display: none;
}

/* Portfolio Performance Widget */
.portfolio-box {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0d3a5c 100%);
    border-radius: 12px;
    padding: 32px;
    color: white;
}

.portfolio-box h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.portfolio-item:last-child {
    border-bottom: none;
}

.portfolio-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.portfolio-return {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-highlight);
}

/* Newsletter Box */
.newsletter-box {
    background: var(--accent-warm);
    border-radius: 12px;
    padding: 32px;
    color: white;
}

.newsletter-box h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-box p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--accent-primary);
}

/* Ad Placeholder */
.ad-sidebar {
    background: var(--bg-warm);
    border: 1px dashed var(--border-medium);
    border-radius: 8px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Author Page Footer (class-based, dark variant) */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-group {
    margin-bottom: 20px;
}

.footer-brand .logo {
    color: white;
}

.footer-brand .logo-sub {
    color: var(--accent-warm);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.4);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-warm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 14px;
}

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