/**
 * Enhanced Single Post Styles
 * Όμορφο και επαγγελματικό design για τις σελίδες άρθρων
 */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg) 100%);
    padding: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.article-hero::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

.article-category {
    margin-bottom: 1rem;
}

.category-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.author-meta strong {
    color: var(--text);
}

/* Enhanced Article */
.enhanced-article {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-content-wrapper {
    position: relative;
}

.article-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enhanced-article:hover .featured-img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 2rem 1rem;
    font-size: 0.875rem;
    font-style: italic;
}

/* Enhanced Content */
.entry-content {
    padding: 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 1.75rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    background: var(--bg-subtle);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

/* Enhanced Sharing */
.enhanced-share {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem;
    border-top: 3px solid var(--accent);
}

.share-header {
    text-align: center;
    margin-bottom: 2rem;
}

.share-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.share-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.share-btn.copy {
    background: var(--bg-card);
    color: var(--text);
    border: 2px solid var(--border);
}

.share-btn.copy:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.share-btn.copy.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* Enhanced Author Box */
.enhanced-author-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-subtle));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.author-header {
    text-align: center;
    margin-bottom: 2rem;
}

.author-section-title {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
}

.author-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.author-avatar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.author-avatar-img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.author-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid var(--bg-card);
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.author-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.author-stats svg {
    color: var(--accent);
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.author-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.author-link.primary {
    background: var(--accent);
    color: white;
}

.author-link.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.author-link.secondary {
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
}

.author-link.secondary:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

/* Enhanced Post Navigation */
.enhanced-post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin: 3rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item.prev {
    justify-self: start;
}

.nav-item.next {
    justify-self: end;
    text-align: right;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    max-width: 300px;
}

.nav-link:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-item.next .nav-link {
    flex-direction: row-reverse;
}

.nav-thumb {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.875rem;
}

.back-to-category:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Related Posts */
.enhanced-related-posts {
    margin: 3rem 0;
}

.related-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .card-overlay {
    opacity: 1;
}

.related-content {
    padding: 1.5rem;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.related-number {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.related-meta time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.related-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.related-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.related-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.related-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entry-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .enhanced-share,
    .enhanced-author-box {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .enhanced-post-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-item.next {
        text-align: center;
    }
    
    .nav-link {
        max-width: none;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 1.5rem 0 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .entry-content {
        padding: 1.5rem 1rem;
    }
    
    .enhanced-share,
    .enhanced-author-box {
        margin: 1.5rem 0.5rem;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .enhanced-share,
    .enhanced-post-nav,
    .enhanced-related-posts {
        display: none !important;
    }
    
    .article-hero {
        background: none !important;
        color: #000 !important;
    }
    
    .enhanced-article {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .entry-content {
        color: #000 !important;
    }
}
