/**
 * Author Page Styles for Elektroniikkaa.com
 * Add to: /wp-content/themes/your-theme/style.css
 * OR create: /wp-content/themes/your-theme/css/author-page.css
 * 
 * To enqueue this CSS, add to functions.php:
 * wp_enqueue_style('author-page', get_template_directory_uri() . '/css/author-page.css');
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Header Styles (Same as Homepage)
   ========================================================================== */

.top-header {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 8px 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    border-bottom: 2px solid #667eea !important;
}

.header-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
}

.site-logo {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
}

.logo-emoji {
    background: linear-gradient(45deg, #00f2fe, #4facfe) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.nav-bar {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border-radius: 25px !important;
    padding: 4px !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2) !important;
}

.nav-list {
    display: flex !important;
    list-style: none !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.nav-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-list a {
    text-decoration: none !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    letter-spacing: 0.1px !important;
    transition: all 0.2s ease !important;
    display: block !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
    text-transform: uppercase !important;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.01) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.header-search {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.search-field {
    padding: 6px 12px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    width: 140px !important;
    font-size: 13px !important;
}

.search-field:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.2) !important;
}

.search-button {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

.search-button:hover {
    transform: scale(1.05) !important;
}

/* ==========================================================================
   Footer Styles (Same as Homepage)
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerDots" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerDots)"/></svg>') repeat;
    opacity: 0.4;
}

.site-footer .main-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.8rem;
    padding: 4px 0;
    font-weight: 500;
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(8px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Author Header Section
   ========================================================================== */

.author-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 4rem 0 !important;
    margin-bottom: 3rem !important;
}

.author-header-content {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.author-avatar {
    flex-shrink: 0 !important;
}

.author-avatar img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.author-info {
    flex: 1 !important;
}

.author-name {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem 0 !important;
    color: #ffffff !important;
}

.author-role {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 300 !important;
}

.author-bio {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    opacity: 0.95 !important;
}

.author-bio a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.author-bio a:hover {
    opacity: 0.8 !important;
}

/* Social Links */
.author-social-links {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 1.5rem !important;
}

.social-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.7rem 1.2rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.social-link svg {
    width: 18px !important;
    height: 18px !important;
}

/* ==========================================================================
   Author Content Section
   ========================================================================== */

.author-content-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem 4rem 1rem !important;
}

.author-content-section h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    color: #1a1a1a !important;
    border-bottom: 3px solid #667eea !important;
    padding-bottom: 0.5rem !important;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */

.expertise-section {
    margin-bottom: 4rem !important;
}

.expertise-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
}

.expertise-item {
    background: #ffffff !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.expertise-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2) !important;
    border-color: #667eea !important;
}

.expertise-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
}

.expertise-item h3 {
    font-size: 1.2rem !important;
    color: #667eea !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
}

.expertise-item p {
    font-size: 0.95rem !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================================================
   Articles Section
   ========================================================================== */

.author-articles-section {
    margin-bottom: 3rem !important;
}

.articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.article-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
}

.article-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.article-thumbnail {
    overflow: hidden !important;
    height: 200px !important;
    background: #f5f5f5 !important;
}

.article-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05) !important;
}

.article-content {
    padding: 1.5rem !important;
}

.article-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.8rem 0 !important;
    line-height: 1.4 !important;
}

.article-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.article-title a:hover {
    color: #667eea !important;
}

.article-meta {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
    color: #999 !important;
}

.article-date {
    display: flex !important;
    align-items: center !important;
}

.article-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 1rem !important;
}

.read-more {
    display: inline-flex !important;
    align-items: center !important;
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.read-more:hover {
    color: #764ba2 !important;
    gap: 0.5rem !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 3rem !important;
    flex-wrap: wrap !important;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1rem !important;
    background: #ffffff !important;
    color: #667eea !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    border: 2px solid #667eea !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.pagination a:hover {
    background: #667eea !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.pagination .current {
    background: #667eea !important;
    color: #ffffff !important;
}

.pagination .dots {
    border: none !important;
    background: transparent !important;
    color: #999 !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .author-header-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .author-name {
        font-size: 2rem !important;
    }
    
    .author-role {
        font-size: 1rem !important;
    }
    
    .author-bio {
        font-size: 0.95rem !important;
    }
    
    .author-social-links {
        justify-content: center !important;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr !important;
    }
    
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .author-content-section h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .author-header-section {
        padding: 2rem 0 !important;
    }
    
    .author-avatar img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .author-name {
        font-size: 1.5rem !important;
    }
    
    .social-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .author-content-section h2 {
        color: #ffffff;
    }
    
    .expertise-item {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .expertise-item:hover {
        border-color: #667eea;
    }
    
    .expertise-item h3 {
        color: #8fa3ff;
    }
    
    .expertise-item p {
        color: #ccc;
    }
    
    .article-card {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .article-title a {
        color: #ffffff;
    }
    
    .article-excerpt {
        color: #ccc;
    }
    
    .pagination a,
    .pagination span {
        background: #2a2a2a;
        color: #8fa3ff;
        border-color: #8fa3ff;
    }
    
    .pagination a:hover,
    .pagination .current {
        background: #667eea;
        color: #ffffff;
    }
}

/* ==========================================================================
   Schema Markup Enhancement
   ========================================================================== */

/* Add structured data styles if needed */
.author-schema-data {
    display: none; /* Hidden but crawlable */
}