/* ============================================================================
   Single Post Page Styles - With Sidebar
   ============================================================================ */

/* Main single post container */
.single-post-main {
    width: 100%;
}

.single-post-container {
    width: 100%;
}

/* Article styling */
article.single-post {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Entry Header */
.entry-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary-color, #2563eb);
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: var(--text-color, #111827);
}

/* Post Meta */
.entry-meta {
    font-size: 0.95rem;
    color: #6b7280;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 2.0rem;
    padding-left: 1.0rem;
}

.entry-meta a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

.posted-by,
.posted-on,
.category-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.category-list a {
    display: inline-block;
    background: var(--primary-color, #2563eb);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.category-list a:hover {
    opacity: 0.8;
}

/* Entry Content */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color, #111827);
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    color: var(--text-color, #111827);
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 20px 25px;
    border-left: 4px solid var(--primary-color, #2563eb);
    background: #f9fafb;
    font-style: italic;
    color: #374151;
}

.entry-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    display: block;
}

.entry-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--secondary-color, #1f2937);
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
}

.page-links a {
    display: inline-block;
    background: var(--primary-color, #2563eb);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.page-links a:hover {
    opacity: 0.8;
}

/* Entry Footer */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

/* Tags */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
}

.tag-link {
    display: inline-block;
    background: #e5e7eb;
    color: var(--text-color, #111827);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

/* Author Box */
.author-box {
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #2563eb);
}

.author-box h3 {
    margin-top: 0;
}

.author-box img {
    border-radius: 50%;
    max-width: 100px;
    display: block;
    margin-bottom: 15px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
}

.post-navigation a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--secondary-color, #1f2937);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background: #f9fafb;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.related-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.related-post h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.related-post p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
    flex: 1;
}

.related-post .read-more {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-post .read-more:hover {
    color: #fff;
    background: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-main {
        padding: 20px 15px;
    }

    article.single-post {
        padding: 20px;
    }

    .entry-header {
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .entry-footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-post-main {
        padding: 15px 10px;
    }

    article.single-post {
        padding: 15px;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 0.95rem;
    }

    .entry-meta {
        font-size: 0.85rem;
    }

/* Entry Header - Featured Image */
.featured-image-wrapper {
    margin: 30px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.featured-image-wrapper:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.featured-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================================================
   Premium Social Share Section - Professional Minimalist Design
   ============================================================================ */

.social-share-premium {
    margin: 60px 0 40px 0;
    padding: 0;
    background: none;
    border: none;
}

.social-share-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-share-content:hover {
    border-color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Share Label */
.social-share-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.label-text {
    display: inline;
}

.share-icon-label {
    width: 12px;
    height: 12px;
    color: var(--primary-color, #2563eb);
    flex-shrink: 0;
}

/* Social Platforms Container */
.social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Individual Platform Buttons */
.social-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.platform-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.platform-text {
    display: inline;
}

.social-platform:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

/* Facebook */
.social-platform.facebook {
    color: #1877f2;
}

.social-platform.facebook:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* Twitter */
.social-platform.twitter {
    color: #000;
}

.social-platform.twitter:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* LinkedIn */
.social-platform.linkedin {
    color: #0a66c2;
}

.social-platform.linkedin:hover {
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3);
}

/* Pinterest */
.social-platform.pinterest {
    color: #e60023;
}

.social-platform.pinterest:hover {
    background: #e60023;
    color: #fff;
    box-shadow: 0 8px 20px rgba(230, 0, 35, 0.3);
}

/* WhatsApp */
.social-platform.whatsapp {
    color: #25d366;
}

.social-platform.whatsapp:hover {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Email */
.social-platform.email {
    color: #ea4335;
}

.social-platform.email:hover {
    background: #ea4335;
    color: #fff;
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.3);
}

/* Copy Link Button */
.social-platform.copy-link {
    color: var(--primary-color, #2563eb);
}

.social-platform.copy-link:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.social-platform.copy-link.copied {
    animation: pulse-copied 0.4s ease;
}

@keyframes pulse-copied {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================================================
   Sticky Social Share - Always Accessible
   ============================================================================ */

.sticky-social-share {
    position: fixed;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-social-share.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
}

/* Sticky Button Styles */
.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}

.sticky-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.sticky-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Sticky Platform Colors */
.sticky-btn.facebook {
    color: #1877f2;
}

.sticky-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.sticky-btn.twitter {
    color: #000;
}

.sticky-btn.twitter:hover {
    background: #000;
    color: #fff;
}

.sticky-btn.linkedin {
    color: #0a66c2;
}

.sticky-btn.linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.sticky-btn.pinterest {
    color: #e60023;
}

.sticky-btn.pinterest:hover {
    background: #e60023;
    color: #fff;
}

.sticky-btn.whatsapp {
    color: #25d366;
}

.sticky-btn.whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.sticky-btn.copy-link {
    color: var(--primary-color, #2563eb);
}

.sticky-btn.copy-link:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
}

.sticky-btn.copy-link.copied {
    animation: pulse-copied 0.4s ease;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1200px) {
    .sticky-social-share {
        left: 15px;
    }

    .sticky-share-buttons {
        padding: 10px;
        gap: 6px;
    }

    .sticky-btn {
        width: 40px;
        height: 40px;
    }

    .sticky-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .social-share-content {
        padding: 30px;
    }

    .social-share-label {
        font-size: 0.9rem;
    }

    .social-platforms {
        gap: 8px;
    }

    .social-platform {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .social-platform svg {
        width: 16px;
        height: 16px;
    }

    /* Hide sticky sidebar on tablets */
    .sticky-social-share {
        display: none;
    }
}

@media (max-width: 480px) {
    .social-share-section {
        margin: 30px 0 30px 0;
    }

    .social-share-content {
        padding: 20px;
        gap: 16px;
        border-radius: 8px;
    }

    .social-share-label {
        font-size: 0.85rem;
        gap: 8px;
    }

    .share-icon-main {
        width: 16px;
        height: 16px;
    }

    .social-platforms {
        gap: 6px;
    }

    .social-platform {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .social-platform svg {
        width: 15px;
        height: 15px;
    }
}
