/*
 * SINGLE.CSS - Single Post, Page, Archive, Comments
 * Techo Theme - NexusByte Design
 */

/* ========================================
   SINGLE POST
   ======================================== */
.single-post-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.single-post-article .entry-header {
    margin-bottom: 30px;
}

.single-post-article .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.single-post-article .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-meta img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .byline a {
    color: var(--primary);
    font-weight: 600;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Entry Content */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 45px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(139, 92, 246, 0.1);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-main);
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.entry-content pre,
.entry-content code {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
}

.entry-content pre {
    padding: 20px;
    overflow-x: auto;
}

.entry-content code {
    padding: 3px 8px;
    font-size: 0.9em;
}

/* Author Bio Box */
.author-bio-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.bio-desc h4 {
    margin-bottom: 10px;
}

.bio-desc p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--text-main);
}

/* ========================================
   ARCHIVE / CATEGORY PAGES
   ======================================== */
.archive-header,
.search-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.archive-description,
.search-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.archive-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.archive-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.archive-card-img {
    height: 200px;
    overflow: hidden;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-body {
    padding: 25px;
}

.archive-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.archive-card-body h3 a {
    color: var(--text-main);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-template .entry-header {
    margin-bottom: 30px;
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-title {
    font-size: 10rem;
    font-weight: 900;
    letter-spacing: -10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author .avatar {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-main);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.comment-content {
    clear: both;
}

.comment-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.reply a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comment-form input,
.comment-form textarea {
    margin-bottom: 20px;
}

.comment-form .submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.comment-form .submit:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* ========================================
   WORDPRESS STANDARD CLASSES
   ======================================== */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 25px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;
}

.alignwide {
    margin-left: -100px;
    margin-right: -100px;
    max-width: calc(100% + 200px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius-sm);
}
/* ========================================
   SOCIAL SHARE BUTTONS
   ======================================== */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-facebook:hover { background: #1877f2; }
.share-twitter:hover { background: #1da1f2; }
.share-linkedin:hover { background: #0a66c2; }
.share-whatsapp:hover { background: #25d366; }
.share-telegram:hover { background: #0088cc; }

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    opacity: 0.5;
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-posts .section-title {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.related-thumb {
    display: block;
    height: 150px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--text-main);
}

.related-content h4 a:hover {
    color: var(--primary);
}

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

/* ========================================
   POST META ENHANCED
   ======================================== */
.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-stats i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}
