/**
 * RevvedUpCars Single Post Styles
 * Modern automotive magazine layout
 * 
 * @version 2.0.0
 */

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #C5D631 0%, #a8b82a 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== ARTICLE HERO ===== */
.article-hero {
    padding: 100px 0 40px;
    background: #f4f6f5;
}

.article-hero-content {
    max-width: 800px;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #C5D631;
    color: #1a1f1a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: #1a1f1a;
    color: #fff;
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #1a1f1a;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: #5a5f5a;
    margin: 0 0 24px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name a {
    font-weight: 600;
    color: #1a1f1a;
    text-decoration: none;
    font-size: 15px;
}

.author-name a:hover {
    color: #C5D631;
}

.meta-date-reading {
    font-size: 13px;
    color: #6a6f6a;
}

.meta-date-reading .separator {
    margin: 0 6px;
}

.meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn-inline,
.bookmark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn-inline:hover,
.bookmark-btn:hover {
    background: #1a1f1a;
    border-color: #1a1f1a;
    color: #fff;
}

/* ===== FEATURED IMAGE ===== */
.article-featured-image {
    margin-bottom: 40px;
}

.featured-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    padding: 12px 0;
    font-size: 13px;
    color: #888;
    font-style: italic;
    border-bottom: 1px solid #eee;
}

/* ===== MAIN LAYOUT ===== */
.article-wrapper {
    padding: 40px 0 60px;
}

.revved-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: 60px 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ===== SHARE SIDEBAR ===== */
.share-sidebar {
    position: relative;
}

.share-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-twitter:hover {
    background: #1a1f1a;
    border-color: #1a1f1a;
    color: #fff;
}

.share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

.share-copy:hover {
    background: #C5D631;
    border-color: #C5D631;
    color: #1a1f1a;
}

.share-copy.copied {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* ===== ARTICLE MAIN ===== */
.article-main {
    min-width: 0;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2a2f2a;
}

.entry-content > * {
    margin-bottom: 24px;
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    color: #1a1f1a;
}

.entry-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: #1a1f1a;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content a {
    color: #C5D631;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #1a1f1a;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    border-left: 4px solid #C5D631;
    background: #f8f9f8;
    font-size: 20px;
    font-style: italic;
    color: #3a3f3a;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* ===== ARTICLE TAGS ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f0;
    color: #4a4f4a;
    font-size: 13px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #1a1f1a;
    color: #fff;
}

/* ===== AUTHOR BOX ===== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 32px;
    margin-top: 40px;
    background: #f8f9f8;
    border-radius: 12px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

.author-info .author-name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.author-info .author-name a {
    color: #1a1f1a;
    text-decoration: none;
}

.author-info .author-name a:hover {
    color: #C5D631;
}

.author-bio {
    margin: 0;
    font-size: 15px;
    color: #5a5f5a;
    line-height: 1.6;
}

/* ===== AD SIDEBAR ===== */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-ad {
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f0 0%, #e4e6e4 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
}

.ad-300x600 {
    width: 300px;
    height: 600px;
}

/* ===== NEWSLETTER WIDGET ===== */
.widget-newsletter {
    padding: 28px 24px;
    background: linear-gradient(135deg, #1a1f1a 0%, #2a2f2a 100%);
    border-radius: 12px;
    text-align: center;
}

.widget-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.widget-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #aaa;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    box-sizing: border-box;
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.newsletter-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    background: #C5D631;
    color: #1a1f1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-btn:hover {
    background: #d4e545;
    transform: translateY(-1px);
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
    padding: 40px 0;
    background: #f4f6f5;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-prev:hover,
.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-prev.empty,
.nav-next.empty {
    visibility: hidden;
}

/* ===== RELATED POSTS ===== */
.related-posts {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1f1a;
    margin: 0 0 32px;
    text-align: center;
}

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

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.related-link {
    display: block;
    text-decoration: none;
}

.related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f2f0;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
}

.related-content {
    padding: 16px;
}

.related-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #C5D631;
    margin-bottom: 8px;
}

.related-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1f1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 12px;
    color: #888;
}

/* ===== COMMENTS ===== */
.comments-section {
    padding: 60px 0;
    background: #f4f6f5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .share-sidebar {
        display: none;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-ad {
        flex: 0 0 auto;
    }
    
    .widget-newsletter {
        flex: 1 1 100%;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-label {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .article-hero {
        padding: 80px 0 32px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-subtitle {
        font-size: 17px;
    }
    
    .meta-author img {
        width: 36px;
        height: 36px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 24px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .entry-content blockquote {
        padding: 16px 20px;
        font-size: 17px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-sidebar {
        display: none;
    }
}

/* ===== HIDE OLD THEME ELEMENTS ===== */
.revved-single .revved-single-share,
.revved-single .revved-author-box,
.revved-single .revved-breadcrumb-area,
.revved-single .archive-header,
.revved-single .article-header.revved-single-header {
    display: none !important;
}
