/* ==========================================================================
   SINGLE POST UPGRADES - VIP PROFESSIONAL
   Note: Social Share styles are now in single-post.css
   ========================================================================== */

/* This file is reserved for future upgrades */
/* Social Share CSS has been moved to single-post.css for better organization */


/* ============================================
   UPGRADE 2: TOC STICKY ICON - PERFECT
   ============================================ */

.toc-sticky-icon {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,102,204,0.4);
    transition: all 0.3s;
}

.toc-sticky-icon:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0,102,204,0.6);
}

.toc-sticky-icon.toc-sticky-left {
    left: 20px;
}

.toc-sticky-icon.toc-sticky-right {
    right: 20px;
}

.toc-sticky-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.toc-sticky-icon .toc-label {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toc-sticky-icon:hover .toc-label {
    opacity: 1;
}

/* TOC Sticky Panel */
.toc-sticky-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) translateX(-120%);
    left: 90px;
    width: 320px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 899;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.toc-sticky-panel.open {
    transform: translateY(-50%) translateX(0);
}

.toc-sticky-icon.toc-sticky-right + .toc-sticky-panel {
    left: auto;
    right: 90px;
    transform: translateY(-50%) translateX(120%);
}

.toc-sticky-icon.toc-sticky-right + .toc-sticky-panel.open {
    transform: translateY(-50%) translateX(0);
}

.toc-sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: #fff;
}

.toc-sticky-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.toc-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.toc-close:hover {
    background: rgba(255,255,255,0.3);
}

.toc-sticky-content {
    padding: 10px 34px 10px 10px;
    max-height: calc(70vh - 70px);
    overflow-y: auto;
}

/* ============================================
   UPGRADE 4: PROFESSIONAL POST META
   ============================================ */

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px 0;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
    padding: 8px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.entry-meta i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-meta i::before {
    content: "●";
    color: #0066cc;
    font-size: 1.2rem;
}

.meta-category i::before { content: "📁"; font-size: 0.9rem; }
.meta-author i::before { content: "✍️"; font-size: 0.9rem; }
.meta-date i::before { content: "📅"; font-size: 0.9rem; }
.meta-views i::before { content: "👁️"; font-size: 0.9rem; }
.meta-comments i::before { content: "💬"; font-size: 0.9rem; }

.entry- a {
    color: #0066cc;
    font-weight: 600;
    transition: color 0.3s;
}

.entry-meta a:hover {
    color: #004999;
}

/* ============================================
   UPGRADE 5: SOCIAL MEDIA WIDGET - 3 DESIGNS
   ============================================ */

/* Professional Design */
.social-media-widget.professional {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-media-widget.professional .social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-right: 4px solid var(--social-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.social-media-widget.professional .social-item:hover {
    background: var(--social-color);
    color: #fff;
    transform: translateX(-5px);
}

.social-media-widget.professional .social-icon {
    width: 35px;
    height: 35px;
}

.social-media-widget.professional .social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--social-color);
    transition: fill 0.3s;
}

.social-media-widget.professional .social-item:hover .social-icon svg {
    fill: #fff;
}

.social-media-widget.professional .social-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.social-media-widget.professional .social-item:hover .social-name {
    color: #fff;
}

/* Advanced Pro Design */
.social-media-widget.advanced-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-media-widget.advanced-pro .social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--social-color), rgba(0,0,0,0.1));
    color: #fff;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.social-media-widget.advanced-pro .social-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-media-widget.advanced-pro .social-icon {
    width: 40px;
    height: 40px;
}

.social-media-widget.advanced-pro .social-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

.social-media-widget.advanced-pro .social-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.social-media-widget.advanced-pro .social-count {
    font-size: 1.2rem;
    font-weight: 700;
}

/* VIP Ultimate Design */
.social-media-widget.vip-ultimate {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-media-widget.vip-ultimate .social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-media-widget.vip-ultimate .social-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--social-color), rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.social-media-widget.vip-ultimate .social-item:hover::before {
    opacity: 1;
}

.social-media-widget.vip-ultimate .social-item:hover {
    border-color: var(--social-color);
    transform: translateX(-5px);
}

.social-media-widget.vip-ultimate .social-icon {
    width: 50px;
    height: 50px;
    background: var(--social-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.social-media-widget.vip-ultimate .social-item:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-media-widget.vip-ultimate .social-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.social-media-widget.vip-ultimate .social-name {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.social-media-widget.vip-ultimate .social-item:hover .social-name {
    color: #fff;
}

.social-media-widget.vip-ultimate .social-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--social-color);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.social-media-widget.vip-ultimate .social-item:hover .social-count {
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN - COMPLETE
   ========================================================================== */

/* Tablet - 768px to 992px */
@media (max-width: 992px) {
    /* Social widgets */
    .social-media-widget.advanced-pro {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar adjustments */
    .single-post-container {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    /* Entry title */
    .entry-header .entry-title {
        font-size: 1.8rem;
    }
    
    /* Featured image */
    .featured-image.full-width img {
        height: 350px;
    }
    
    /* Post meta */
    .entry-meta {
        gap: 15px;
        padding: 15px;
    }
    
    
    /* TOC sticky */
    .toc-sticky-panel {
        width: 280px;
    }
    
    /* Related posts */
    .related-posts.design1 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inpost-related.design2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape - 576px to 768px */
@media (max-width: 768px) {
    /* Layout - Stack sidebar below */
    .single-post-container {
        grid-template-columns: 1fr;
    }
    
    .single-post-container.sidebar-left .main-content,
    .single-post-container.sidebar-right .main-content {
        order: 1;
    }
    
    .single-post-container.sidebar-left .sidebar,
    .single-post-container.sidebar-right .sidebar {
        order: 2;
    }
    
    /* Entry title */
    .entry-header .entry-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    /* Featured image */
    .featured-image.full-width img {
        height: 300px;
    }
    
    /* Post meta */
    .entry-meta {
        gap: 12px;
        padding: 12px;
        flex-direction: column;
    }
    
    .entry-meta span {
        width: 100%;
        justify-content: flex-start;
    }
    

    /* TOC */
    .toc-sticky-icon {
        width: 50px;
        height: 50px;
        bottom: 80px;
        top: auto;
        right: 15px;
        left: auto;
    }
    
    .toc-sticky-icon.toc-sticky-left {
        left: auto;
        right: 15px;
    }
    
    .toc-sticky-panel {
        width: 90vw;
        left: 5vw;
        right: auto;
    }
    
    .toc-sticky-icon.toc-sticky-right + .toc-sticky-panel {
        left: 5vw;
        right: auto;
    }
    
    /* In-post related */
    .inpost-related.design2,
    .inpost-related.design4 {
        grid-template-columns: 1fr;
    }
    
    /* Bottom related posts */
    .related-posts.design1,
    .related-posts.design3 {
        grid-template-columns: 1fr;
    }
    
}

/* Mobile Portrait - up to 576px */
@media (max-width: 576px) {
    /* Container padding fix */
    .single-post-container {
        padding: 0;
        margin: 0;
    }
    
    
    
    /* Entry header - Mobile optimized */
    .entry-header {
        padding: 15px;
        margin: 0 -15px 15px -15px;
    }
    
    /* Entry title */
    .entry-header .entry-title {
        font-size: 1.25rem;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    /* Featured image - Mobile perfect */
    .featured-image {
        margin: 0 -15px 15px -15px;
        border-radius: 0;
    }
    
    .featured-image.full-width img,
    .featured-image.content-width img {
        height: 220px;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    
    /* Post meta - Mobile stack */
    .entry-meta {
        gap: 8px;
        padding: 12px;
        margin: 0 -15px 15px -15px;
        border-radius: 0;
        flex-direction: column;
        background: #f8f9fa;
    }
    
    .entry-meta span {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    

    /* Content - Mobile typography */
    .entry-content {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0;
    }
    
    .entry-content h2 {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .entry-content h3 {
        font-size: 1.05rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .entry-content p {
        margin-bottom: 15px;
    }
    
    .entry-content img {
        margin: 15px -15px;
        width: calc(100% + 30px);
        max-width: calc(100% + 30px);
        height: auto;
        border-radius: 0;
    }
    

    /* TOC Sticky - Mobile position */
    .toc-sticky-icon {
        width: 46px;
        height: 46px;
        bottom: 65px;
        right: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    
    .toc-sticky-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .toc-sticky-icon .toc-label {
        display: none;
    }
    
    .toc-sticky-panel {
        width: 92vw;
        left: 4vw;
        right: 4vw;
        max-height: 80vh;
    }
    
    /* Table of contents - In content */
    #table-of-contents {
        padding: 15px;
        font-size: 0.9rem;
        margin: 20px -15px;
        border-radius: 0;
    }
    
    #table-of-contents h3 {
        font-size: 1.1rem;
    }
    
    /* In-post related */
    .inpost-related {
        margin: 20px -15px;
        padding: 15px;
        border-radius: 0;
    }
    
    .inpost-related h3 {
        font-size: 1.15rem;
    }
    
    .inpost-related.design2,
    .inpost-related.design4 {
        grid-template-columns: 1fr;
    }
    
    .inpost-related .related-item {
        padding: 12px;
    }
    
    /* Rating */
    .post-rating {
        padding: 12px;
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .post-rating .rating-stars {
        gap: 6px;
    }
    
    .post-rating .rating-star {
        font-size: 1.6rem;
    }
    
    /* Post tags */
    .post-tags {
        margin: 15px -15px;
        padding: 15px;
        border-radius: 0;
    }
    
    .post-tags .tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    /* Comments */
    .comments-area {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .comments-title {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    .comment-list {
        padding: 0;
    }
    
    .comment-list .comment {
        padding: 12px;
        margin: 10px 0;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-author {
        font-size: 0.9rem;
    }
    
    .comment-text {
        font-size: 0.85rem;
    }
    
    /* Comment Form */
    .comment-respond {
        padding: 15px;
        margin: 15px -15px 0 -15px;
        border-radius: 0;
    }
    
    .comment-respond .comment-reply-title {
        font-size: 1.1rem;
    }
    
    .comment-respond input,
    .comment-respond textarea {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Related posts bottom */
    .related-posts {
        padding: 20px 15px;
        margin: 20px -15px 0 -15px;
        border-radius: 0;
    }
    
    .related-posts h2 {
        font-size: 1.2rem;
    }
    
    .related-posts.design1,
    .related-posts.design3 {
        grid-template-columns: 1fr;
    }
    
    .related-posts .related-post-item {
        padding: 12px;
    }
    
    /* Sidebar - Below content */
    .sidebar {
        margin-top: 20px;
    }
    
    .sidebar .widget {
        margin-bottom: 20px;
    }
    
    /* Social media widgets */
    .social-media-widget.professional .social-item {
        padding: 10px 12px;
    }
    
    .social-media-widget.professional .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-media-widget.vip-ultimate .social-icon {
        width: 42px;
        height: 42px;
    }
}

/* Extra small - 400px and below */
@media (max-width: 400px) {
    .entry-header .entry-title {
        font-size: 1.15rem;
    }
    
    .featured-image.full-width img,
    .featured-image.content-width img {
        height: 200px;
    }
    

    .entry-content {
        font-size: 0.9rem;
    }
    
    
}
