/* Blog Detail Styles */
.post-detail {
    padding: 20px 0 80px;
    min-height: 100vh;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.post-header:hover::before {
    left: 100%;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

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

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

.meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

.post-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--glass-bg);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.post-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.post-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Blog Post Content Specific Styles */
.blog-post-content {
    max-width: none;
}

.blog-post-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.blog-post-content ul, .blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.blog-post-content strong {
    color: var(--primary);
    font-weight: 600;
}

.blog-post-content em {
    color: var(--secondary);
    font-style: italic;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
}

.comparison-table th {
    background: var(--primary);
    color: var(--bg-primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table tr:hover {
    background: var(--glass-bg);
}

.comparison-table tr:nth-child(even) {
    background: rgba(0, 255, 255, 0.05);
}

/* Code Block Styles */
.code-block {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* Link Styles */
.blog-post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Horizontal Rule */
.blog-post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 3rem 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-blog {
    text-decoration: none;
}

.action-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--glass-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-btn.liked {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.bookmarked {
    border-color: var(--accent);
    color: var(--accent);
}

.share-dropdown {
    position: relative;
}

.share-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.share-dropdown:hover .share-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.share-link:hover {
    background: var(--glass-bg);
    color: var(--primary);
    transform: translateX(5px);
}

.author-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

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

.author-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.author-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.related-posts {
    margin-bottom: 3rem;
}

.related-posts h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.related-post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.related-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-body {
    padding: 1.5rem;
}

.related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.related-post-meta {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.comments-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.comments-title {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.comment-author {
    color: var(--primary);
    font-weight: 600;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.comment-action {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action:hover {
    color: var(--primary);
}

.reply-comment {
    margin-left: 2rem;
    border-left: 3px solid var(--primary);
}

.reply-form {
    margin-top: 1rem;
    display: none;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-tertiary);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.comment-form button {
    margin-top: 1rem;
}

.login-to-comment {
    text-align: center;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.login-to-comment a {
    color: var(--primary);
    text-decoration: none;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-detail {
        padding: 100px 1rem 60px;
    }
    
    .post-header {
        padding: 2rem 1rem;
    }
    
    .post-content {
        padding: 2rem 1.5rem;
    }
    
    .post-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .reply-comment {
        margin-left: 1rem;
    }
    
    .comments-section {
        padding: 2rem 1.5rem;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
}