/**
 * Social Follower Counter Styles
 */

.sfc-counter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Layout Styles */
.sfc-layout-grid {
    display: grid;
    gap: 20px;
}

.sfc-layout-grid.sfc-columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.sfc-layout-grid.sfc-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sfc-layout-grid.sfc-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sfc-layout-grid.sfc-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sfc-layout-grid.sfc-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.sfc-layout-list {
    flex-direction: column;
}

.sfc-layout-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Counter Item */
.sfc-counter-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.sfc-layout-list .sfc-counter-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px 20px;
}

.sfc-layout-inline .sfc-counter-item {
    flex: 0 1 auto;
    min-width: 150px;
}

/* Icon Styles */
.sfc-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sfc-layout-list .sfc-icon {
    margin-bottom: 0;
    margin-right: 15px;
}

/* Platform-specific icon colors */
.sfc-icon-youtube {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF0000"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>');
}

.sfc-icon-facebook {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231877F2"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
}

.sfc-icon-instagram {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="url(%23instagram-gradient)"><defs><linearGradient id="instagram-gradient" x1="0%25" y1="100%25" x2="100%25" y2="0%25"><stop offset="0%25" style="stop-color:%23FD5949"/><stop offset="50%25" style="stop-color:%23D6249F"/><stop offset="100%25" style="stop-color:%23285AEB"/></linearGradient></defs><path d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"/></svg>');
}

.sfc-icon-tiktok {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><path d="M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"/></svg>');
}

.sfc-icon-xiaohongshu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF2442"><rect width="24" height="24" rx="4"/><path fill="%23FFFFFF" d="M6 8h12v2H6zm0 4h12v2H6zm0 4h8v2H6z"/></svg>');
}

.sfc-icon-lemon8 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><circle cx="12" cy="12" r="10" fill="%23FFE135"/><path fill="%23FFFFFF" d="M12 6l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z"/></svg>');
}

/* Counter Content */
.sfc-counter-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sfc-layout-list .sfc-counter-content {
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sfc-platform-name {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sfc-count {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
}

/* Minimalist Inline Style (like the image) */
.sfc-layout-inline.sfc-minimalist {
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.sfc-layout-inline.sfc-minimalist .sfc-counter-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 20px;
    min-width: auto;
}

.sfc-layout-inline.sfc-minimalist .sfc-counter-item:hover {
    transform: none;
    box-shadow: none;
}

.sfc-layout-inline.sfc-minimalist .sfc-count {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.sfc-layout-inline.sfc-minimalist .sfc-platform-name {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    text-transform: capitalize;
    letter-spacing: 0;
}

.sfc-layout-inline.sfc-minimalist .sfc-counter-content {
    text-align: center;
}

.sfc-layout-inline.sfc-minimalist .sfc-icon {
    display: none;
}

/* Platform-specific colors */
.sfc-youtube .sfc-count {
    color: #FF0000;
}

.sfc-facebook .sfc-count {
    color: #1877F2;
}

.sfc-instagram .sfc-count {
    color: #E4405F;
}

.sfc-tiktok .sfc-count {
    color: #000000;
}

.sfc-xiaohongshu .sfc-count {
    color: #FF2442;
}

.sfc-lemon8 .sfc-count {
    color: #FFE135;
}

/* Responsive */
@media (max-width: 768px) {
    .sfc-layout-grid.sfc-columns-3,
    .sfc-layout-grid.sfc-columns-4,
    .sfc-layout-grid.sfc-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sfc-count {
        font-size: 24px;
    }
    
    .sfc-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .sfc-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .sfc-counter-item {
        padding: 15px;
    }
}

/* Total Counter Mode */
.sfc-total-counter {
    text-align: center;
    padding: 40px 20px;
}

.sfc-total-count {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sfc-total-label {
    font-size: 24px;
    font-weight: 400;
    color: #666666;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* Animation for total counter */
.sfc-total-count.animating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive for total counter */
@media (max-width: 768px) {
    .sfc-total-count {
        font-size: 56px;
    }
    
    .sfc-total-label {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sfc-total-count {
        font-size: 48px;
    }
    
    .sfc-total-label {
        font-size: 18px;
    }
    
    .sfc-total-counter {
        padding: 30px 15px;
    }
}
