/* Social Grid Pro - Styles */
.sgp-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.sgp-columns-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr)); }
.sgp-columns-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sgp-columns-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.sgp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sgp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sgp-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sgp-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgp-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sgp-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sgp-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: fit-content;
}

.sgp-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.sgp-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.sgp-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: gap 0.3s ease;
    gap: 4px;
}

.sgp-card-link:hover {
    gap: 8px;
}

/* Articles Promo */
.sgp-card-promo {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.sgp-promo-image {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.sgp-promo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

.sgp-promo-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.sgp-promo-label {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.sgp-promo-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    margin-top: auto;
}

.sgp-promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Posts Instagram */
.sgp-card-instagram {
    border: 1px solid #e1e8ed;
    background: #fff;
}

.sgp-social-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sgp-social-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sgp-instagram-header {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-bottom: none;
}

.sgp-social-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.sgp-social-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sgp-social-author-info strong {
    font-size: 14px;
    font-weight: 600;
}

.sgp-social-author-info span {
    font-size: 12px;
    opacity: 0.8;
}

.sgp-instagram-image {
    padding-top: 100%;
    background: #fafafa;
}

.sgp-instagram-content {
    padding: 16px;
}

.sgp-instagram-actions {
    margin-bottom: 12px;
}

.sgp-like-count {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.sgp-instagram-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    margin: 0;
}

.sgp-instagram-caption strong {
    font-weight: 600;
    margin-right: 4px;
}

/* Posts LinkedIn */
.sgp-card-linkedin {
    border: 1px solid #e1e8ed;
    background: #fff;
}

.sgp-linkedin-header {
    background: #0077b5;
    color: white;
}

.sgp-linkedin-content {
    padding: 16px;
}

.sgp-linkedin-text {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0;
    white-space: pre-line;
}

.sgp-linkedin-image {
    padding-top: 52%;
    margin-top: 0;
}

/* Animation au chargement */
.sgp-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sgp-card:nth-child(1) { animation-delay: 0s; }
.sgp-card:nth-child(2) { animation-delay: 0.1s; }
.sgp-card:nth-child(3) { animation-delay: 0.2s; }
.sgp-card:nth-child(4) { animation-delay: 0.3s; }
.sgp-card:nth-child(5) { animation-delay: 0.4s; }
.sgp-card:nth-child(6) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
    .sgp-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .sgp-card-title {
        font-size: 18px;
    }
    
    .sgp-promo-discount {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }
}