/* ThemePul Core CSS - Modern Social Sharing */

/* Post Share Buttons Container */
.post-share-buttons {
    background: transparent;
    border-radius: 0;
    padding: 10px 0;
    margin: 20px 0;
    border: none;
    position: relative;
    overflow: hidden;
}

.post-share-buttons .share-title {
    display: none;
}

/* Social Share Wrapper */
.social-share-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Social Share List */
.social-share-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.social-share-list li {
    margin: 0;
    padding: 0;
}

/* Social Share Links */
.social-share-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
}

.social-share-list a:hover {
    transform: translateY(-2px);
}

.social-share-list a span {
    display: none;
}

.social-share-list a i {
    font-size: 18px;
    z-index: 2;
}

/* Individual Social Platform Colors */
.social-share-list a.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-share-list a.twitter {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
}

.social-share-list a.linkedin {
    background: linear-gradient(135deg, #0077b5, #42a5f5);
}

.social-share-list a.pinterest {
    background: linear-gradient(135deg, #bd081c, #e91e63);
}

.social-share-list a.reddit {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

.social-share-list a.whatsapp {
    background: linear-gradient(135deg, #25d366, #4caf50);
}

/* Hide extra social icons by default */
.social-share-list li:nth-child(n+4) {
    display: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.social-share-list.show-all li:nth-child(n+4) {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* More Button */
.social-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: bold;
}

.social-more-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
}

.social-more-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: rotate(45deg);
}

/* Hide more button when all items are shown */
.social-share-list.show-all~.social-more-btn {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-share-buttons {
        padding: 5px 0;
        margin: 15px 0;
    }

    .social-share-list {
        gap: 8px;
    }

    .social-share-list a,
    .social-more-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Animation for showing/hiding items */
@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.social-share-list.show-all li:nth-child(n+4) {
    animation: socialFadeIn 0.3s ease forwards;
}

/* Alternative Compact Style */
.post-share-buttons.compact {
    background: transparent;
    border: none;
    padding: 5px 0;
}

.post-share-buttons.compact .share-title {
    display: none;
}

.post-share-buttons.compact .social-share-list a {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.post-share-buttons.compact .social-more-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .post-share-buttons {
        background: transparent;
        border: none;
    }
}

/* ThemePul Posts Widget Styles */
.themepul-posts-widget .themepul-posts-widget-content {
    margin: 0;
    padding: 0;
    margin-top: 30px;
}

.themepul-posts-widget .themepul-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #D9D9D9;
}

.themepul-posts-widget .themepul-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.themepul-posts-widget .post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.themepul-posts-widget .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.themepul-posts-widget .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.themepul-posts-widget .post-thumbnail:hover .post-image {
    transform: scale(1.05);
}

.themepul-posts-widget .post-content {
    flex: 1;
    min-width: 0;
}

.themepul-posts-widget .post-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.themepul-posts-widget .post-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.themepul-posts-widget .post-title a:hover {
    color: #FD4C25;
}

.themepul-posts-widget .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #74787C;
}

.themepul-posts-widget .post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.themepul-posts-widget .post-meta i {
    font-size: 11px;
    opacity: 0.8;
}

.themepul-posts-widget .post-meta a {
    color: #74787C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.themepul-posts-widget .post-meta a:hover {
    color: #FD4C25;
}

.themepul-posts-widget .post-content-text {
    font-size: 13px;
    line-height: 1.5;
    color: #34495e;
    margin-top: 8px;
}

/* Responsive Design for Posts Widget */
@media (max-width: 768px) {
    .themepul-posts-widget .themepul-post-item {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .themepul-posts-widget .post-thumbnail {
        width: 60px;
        height: 60px;
    }

    .themepul-posts-widget .post-title {
        font-size: 14px;
    }

    .themepul-posts-widget .post-meta {
        font-size: 11px;
        gap: 8px;
    }

    .themepul-posts-widget .post-content-text {
        font-size: 12px;
    }
}

/* Dark Mode for Posts Widget */
@media (prefers-color-scheme: dark) {
    .themepul-posts-widget .themepul-post-item {
        border-bottom-color: #444;
    }

    .themepul-posts-widget .post-title a {
        color: #ecf0f1;
    }

    .themepul-posts-widget .post-title a:hover {
        color: #FD4C25;
    }

    .themepul-posts-widget .post-content-text {
        color: #bdc3c7;
    }
}