/* ===================================
   ORACNOOS - Author Profiles
   Author page + Author card component
   =================================== */

/* ===================================
   AUTHOR HERO (Profile Page)
   =================================== */

.author-hero {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.author-hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    position: relative;
    z-index: 1;
}

/* ===================================
   Author Photo
   =================================== */

.author-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.author-photo,
.author-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.author-photo-placeholder {
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.author-photo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* ===================================
   Author Info
   =================================== */

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.author-bio {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
}

/* ===================================
   Author Stats
   =================================== */

.author-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.author-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.author-stat i {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: white;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   Author Social Links
   =================================== */

.author-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: var(--font-size-lg);
    transition: all var(--transition-bounce);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow-hover);
}

.social-link.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: #1da1f2;
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
}

.social-link.github:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    border-color: #333;
}

.social-link.website:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.social-link.email:hover {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    border-color: #ff4081;
}

/* ===================================
   Author Articles Section
   =================================== */

.author-articles {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-2xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-title i {
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

/* ===================================
   Article Card (Grid)
   =================================== */

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.15);
    transition: all var(--transition-bounce);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(0, 229, 255, 0.4);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.1) 0%,
        rgba(255, 64, 129, 0.1) 100%
    );
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-card-content {
    padding: var(--spacing-lg);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.3rem 0.8rem;
    background: rgba(0, 229, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
}

.article-date {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-base);
}

.article-card:hover .article-card-title {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.reading-time,
.view-count {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ===================================
   No Articles State
   =================================== */

.no-articles {
    text-align: center;
    padding: var(--spacing-3xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.no-articles i {
    font-size: var(--font-size-4xl);
    color: rgba(0, 229, 255, 0.3);
    margin-bottom: var(--spacing-md);
}

.no-articles p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* ===================================
   AUTHOR CARD COMPONENT (Sidebar/Article)
   =================================== */

.author-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 229, 255, 0.15);
    margin-bottom: var(--spacing-xl);
}

.author-card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
}

.author-card-header h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-card-header h3 i {
    color: var(--primary-color);
}

.author-card-content {
    display: flex;
    gap: var(--spacing-lg);
}

.author-card-photo {
    flex-shrink: 0;
}

.author-card-photo img,
.author-card-photo .author-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 229, 255, 0.2);
}

.author-card-photo .author-photo-placeholder {
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.author-card-info {
    flex: 1;
}

.author-card-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.author-card-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

.author-card-name a:hover {
    color: var(--primary-color);
}

.author-card-bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.author-card-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.author-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-bounce);
}

.author-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

.author-profile-btn i {
    transition: transform var(--transition-base);
}

.author-profile-btn:hover i {
    transform: translateX(3px);
}

/* ===================================
   Animations
   =================================== */

.article-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.article-card:nth-child(1) {
    animation-delay: 0.1s;
}

.article-card:nth-child(2) {
    animation-delay: 0.2s;
}

.article-card:nth-child(3) {
    animation-delay: 0.3s;
}

.article-card:nth-child(4) {
    animation-delay: 0.4s;
}

.article-card:nth-child(5) {
    animation-delay: 0.5s;
}

.article-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .author-hero-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .author-photo,
    .author-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .author-name {
        font-size: var(--font-size-3xl);
    }
    
    .author-bio {
        font-size: var(--font-size-base);
    }
    
    .author-stats {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .author-stat {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .author-social {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .author-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-card-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .author-photo,
    .author-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: var(--font-size-2xl);
    }
    
    .author-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .author-stat {
        width: 100%;
    }
}

/* ===================================
   Dark Mode
   =================================== */

[data-theme="dark"] .article-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .article-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .author-card {
    background: rgba(255, 255, 255, 0.03);
}

/* ===================================
   Print
   =================================== */

@media print {
    .author-social,
    .author-profile-btn,
    .author-card-social {
        display: none;
    }
    
    .author-hero {
        background: white;
        color: black;
    }
    
    .author-name,
    .author-bio {
        color: black;
    }
}

