/* ===================================================================
 * LinkedIn Wall Styles
 * Masonry grid layout matching walls.io aesthetic
 * ------------------------------------------------------------------- */

/* Container */
#linkedin-wall {
    width: 100%;
    margin: 0 auto;
}

/* Loading & Error States */
.linkedin-wall__loading,
.linkedin-wall__empty,
.linkedin-wall__error {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.6rem;
    color: #666;
}

.linkedin-wall__error {
    color: #c00;
}

/* Post Card */
.linkedin-card {
    width: calc((100% - 48px) / 3);
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Card Image */
.linkedin-card__image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.linkedin-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

/* Card Content */
.linkedin-card__content {
    padding: 16px 20px 20px;
}

/* Card Header */
.linkedin-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.linkedin-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
    flex-shrink: 0;
    padding: 4px;
}

.linkedin-card__meta {
    flex: 1;
    min-width: 0;
}

.linkedin-card__author {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.linkedin-card__date {
    display: block;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.3;
}

.linkedin-card__linkedin-link {
    width: 24px;
    height: 24px;
    color: #0077b5;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.linkedin-card__linkedin-link:hover {
    opacity: 1;
}

.linkedin-card__linkedin-link svg {
    width: 100%;
    height: 100%;
}

/* Card Text */
.linkedin-card__text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
}

.linkedin-card__text p {
    margin: 0;
    word-break: break-word;
}

.linkedin-card__text a {
    color: #0077b5;
    text-decoration: none;
}

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

.linkedin-card__text .hashtag {
    color: #0077b5;
    font-weight: 500;
}

.linkedin-card__read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0077b5;
    text-decoration: none;
}

.linkedin-card__read-more:hover {
    text-decoration: underline;
}

/* Actions Container */
.linkedin-wall__actions {
    text-align: center;
    padding: 2rem 0 4rem;
}

.linkedin-wall__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 5.4rem;
    padding: 0 3.6rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #000;
    background: #F9A828;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.linkedin-wall__load-more:hover {
    background: #d68f1e;
}

/* Responsive Breakpoints */
@media screen and (max-width: 900px) {
    .linkedin-card {
        width: calc((100% - 24px) / 2);
    }
}

@media screen and (max-width: 600px) {
    .linkedin-card {
        width: 100%;
        margin-bottom: 16px;
    }

    .linkedin-card__content {
        padding: 14px 16px 16px;
    }

    .linkedin-card__text {
        font-size: 1.5rem;
    }
}

/* Animation for scroll reveal */
.linkedin-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ss-animated .linkedin-card,
.linkedin-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure cards animate immediately if no animate-block wrapper */
#linkedin-wall:not([data-animate-block]) .linkedin-card {
    opacity: 1;
    transform: translateY(0);
}
