/**
 * LinkedIn Feed - Ana Stiller
 */

/* Container */
.linkedin-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.linkedin-feed-header {
    text-align: center;
    margin-bottom: 40px;
}

.linkedin-feed-badge {
    display: inline-block;
    background-color: #0A66C2;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.linkedin-feed-title {
    font-size: 32px;
    font-weight: 700;
    color: #0A66C2;
    margin: 0;
}

/* Grid */
.linkedin-feed-grid {
    display: grid;
    gap: 24px;
}

.linkedin-feed-grid.columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

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

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

/* Card */
.linkedin-feed-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.linkedin-feed-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.linkedin-feed-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
}

.linkedin-feed-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.linkedin-feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.linkedin-feed-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.linkedin-feed-avatar-placeholder svg {
    width: 32px;
    height: 32px;
}

.linkedin-feed-author-info {
    display: flex;
    flex-direction: column;
}

.linkedin-feed-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    line-height: 1.3;
}

.linkedin-feed-author-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.linkedin-feed-separator {
    margin: 0 4px;
}

.linkedin-feed-logo svg {
    width: 24px;
    height: 24px;
}

/* Card Content */
.linkedin-feed-card-content {
    padding: 0 16px 16px;
    flex: 1;
}

.linkedin-feed-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 16px;
    word-wrap: break-word;
}

.linkedin-feed-text a {
    color: #0A66C2;
    text-decoration: none;
}

.linkedin-feed-text a:hover {
    text-decoration: underline;
}

.linkedin-feed-hashtag {
    color: #0A66C2;
    font-weight: 600;
}

/* Link Preview */
.linkedin-feed-link-preview {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.linkedin-feed-link-preview:hover {
    background-color: #f9f9f9;
}

.linkedin-feed-link-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.linkedin-feed-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkedin-feed-link-info {
    padding: 12px 16px;
    background: #f5f7f5;
}

.linkedin-feed-link-title {
    font-size: 18px;
    font-weight: 600;
    color: #006d4f;
    margin: 0 0 8px;
    line-height: 1.3;
}

.linkedin-feed-link-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.linkedin-feed-link-url {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #0A66C2;
}

/* Post Image */
.linkedin-feed-post-image {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.linkedin-feed-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Card Footer */
.linkedin-feed-card-footer {
    border-top: 1px solid #e0e0e0;
    padding: 8px 16px;
}

.linkedin-feed-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.linkedin-feed-reaction-icons {
    display: flex;
}

.linkedin-feed-reaction-icons span {
    font-size: 14px;
    margin-right: -4px;
}

.linkedin-feed-reaction-count {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.linkedin-feed-actions {
    display: flex;
    justify-content: space-around;
}

.linkedin-feed-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.linkedin-feed-action-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.linkedin-feed-action-btn svg {
    opacity: 0.7;
}

.linkedin-feed-action-btn:hover svg {
    opacity: 1;
}

/* Footer */
.linkedin-feed-footer {
    text-align: center;
    margin-top: 40px;
}

.linkedin-feed-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0A66C2;
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.linkedin-feed-follow-btn:hover {
    background-color: #004182;
    color: #fff;
}

/* No Posts */
.linkedin-feed-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .linkedin-feed-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .linkedin-feed-grid.columns-2,
    .linkedin-feed-grid.columns-3 {
        grid-template-columns: 1fr;
    }

    .linkedin-feed-title {
        font-size: 24px;
    }

    .linkedin-feed-actions {
        flex-wrap: wrap;
    }

    .linkedin-feed-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .linkedin-feed-container {
        padding: 20px 15px;
    }

    .linkedin-feed-card-header {
        padding: 12px;
    }

    .linkedin-feed-card-content {
        padding: 0 12px 12px;
    }

    .linkedin-feed-avatar {
        width: 40px;
        height: 40px;
    }

    .linkedin-feed-link-image {
        height: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .linkedin-feed-card {
        background: #1d2226;
        border-color: #38434f;
    }

    .linkedin-feed-author-name {
        color: #fff;
    }

    .linkedin-feed-text {
        color: #e0e0e0;
    }

    .linkedin-feed-card-footer {
        border-color: #38434f;
    }

    .linkedin-feed-reactions {
        border-color: #38434f;
    }

    .linkedin-feed-action-btn {
        color: #b0b0b0;
    }

    .linkedin-feed-action-btn:hover {
        background-color: #38434f;
        color: #fff;
    }

    .linkedin-feed-link-preview {
        border-color: #38434f;
    }

    .linkedin-feed-link-preview:hover {
        background-color: #2d3339;
    }

    .linkedin-feed-link-info {
        background: #2d3339;
    }

    .linkedin-feed-link-title {
        color: #71b280;
    }

    .linkedin-feed-link-description {
        color: #b0b0b0;
    }
}

/* Animation */
.linkedin-feed-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

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

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