.tiko-social-feed {
    --columns: 3;
    --columns-mobile: 1;
    --gap: 20px;
    --border-radius: 8px;
    --card-bg: #fff;
    --card-border: #e0e0e0;
    --text-color: #1d2327;
    --text-secondary: #646970;
    --link-color: #2271b1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tiko-social-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: var(--gap);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
}

.tiko-social-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.tiko-social-page-name {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.tiko-social-platform {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tiko-social-posts {
    display: grid;
    gap: var(--gap);
}

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

.tiko-social-layout-list {
    grid-template-columns: 1fr;
}

/* Masonry - CSS fallback, JS enhanced */
.tiko-social-layout-masonry {
    display: block;
}

.tiko-social-layout-masonry .tiko-social-post {
    break-inside: avoid;
    margin-bottom: var(--gap);
    width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));
}

/* Carousel Layout */
.tiko-social-layout-carousel {
    display: block;
    position: relative;
    overflow: hidden;
}

.tiko-social-layout-carousel .tiko-social-post {
    height: auto;
}

.tiko-social-layout-carousel .swiper-button-prev,
.tiko-social-layout-carousel .swiper-button-next {
    color: var(--link-color);
    background: var(--card-bg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tiko-social-layout-carousel .swiper-button-prev:after,
.tiko-social-layout-carousel .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.tiko-social-layout-carousel .swiper-pagination-bullet {
    background: var(--link-color);
}

.tiko-social-layout-carousel .swiper-pagination-bullet-active {
    background: var(--link-color);
}

.tiko-social-post {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.tiko-social-post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tiko-social-post-media {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tiko-social-post-media a {
    display: block;
}

.tiko-social-post-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
    pointer-events: none;
}

.tiko-social-post-media:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.tiko-social-post-media .tiko-social-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.tiko-social-post-media:hover .tiko-social-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tiko-social-post-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.tiko-social-post:hover .tiko-social-post-image {
    transform: scale(1.02);
}

.tiko-social-post-content {
    padding: 15px;
}

.tiko-social-post-date {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tiko-social-post-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 12px;
    word-wrap: break-word;
}

.tiko-social-post-text a {
    color: var(--link-color);
    text-decoration: none;
}

.tiko-social-post-text a:hover {
    text-decoration: underline;
}

.tiko-social-link-preview {
    display: block;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.tiko-social-link-preview:hover {
    background: #f0f0f0;
}

.tiko-social-link-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.tiko-social-link-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.tiko-social-post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: var(--text-secondary);
}

.tiko-social-reactions,
.tiko-social-comments,
.tiko-social-shares {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tiko-social-reactions svg,
.tiko-social-comments svg,
.tiko-social-shares svg {
    opacity: 0.7;
}

.tiko-social-view-on {
    margin-left: auto;
    color: var(--link-color);
    text-decoration: none;
    font-size: 12px;
}

.tiko-social-view-on:hover {
    text-decoration: underline;
}

.tiko-social-load-more {
    text-align: center;
    margin-top: var(--gap);
}

.tiko-social-load-more-btn {
    padding: 12px 30px;
    background: var(--link-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.tiko-social-load-more-btn:hover {
    background: #135e96;
}

.tiko-social-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tiko-social-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.tiko-social-error {
    padding: 15px;
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

@media (max-width: 768px) {
    .tiko-social-posts {
        --columns: var(--columns-mobile) !important;
    }

    .tiko-social-layout-masonry .tiko-social-post {
        width: 100%;
    }

    .tiko-social-post-footer {
        gap: 10px;
    }

    .tiko-social-view-on {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 5px;
    }

    .tiko-social-layout-carousel .swiper-button-prev,
    .tiko-social-layout-carousel .swiper-button-next {
        display: none;
    }
}

/* Enhanced Lightbox with Gallery */
.tiko-social-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
    animation: tikoFadeIn 0.2s ease;
}

@keyframes tikoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tiko-social-lightbox-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tiko-social-lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.tiko-social-lightbox-caption {
    max-width: 600px;
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tiko-social-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiko-social-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tiko-social-lightbox-prev,
.tiko-social-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiko-social-lightbox-prev {
    left: 20px;
}

.tiko-social-lightbox-next {
    right: 20px;
}

.tiko-social-lightbox-prev:hover,
.tiko-social-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.tiko-social-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

body.tiko-social-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .tiko-social-lightbox {
        padding: 20px;
    }

    .tiko-social-lightbox-content img {
        max-height: calc(100vh - 140px);
    }

    .tiko-social-lightbox-prev,
    .tiko-social-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .tiko-social-lightbox-prev {
        left: 10px;
    }

    .tiko-social-lightbox-next {
        right: 10px;
    }

    .tiko-social-lightbox-caption {
        font-size: 13px;
        padding: 10px 15px;
        max-height: 60px;
    }
}

/* Video Inline Playback */
.tiko-social-video-container {
    position: relative;
    cursor: pointer;
}

.tiko-social-video-thumb {
    display: block;
    width: 100%;
    height: auto;
}

.tiko-social-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tiko-social-play-btn:hover {
    background: rgba(24, 119, 242, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.tiko-social-play-btn svg {
    margin-left: 4px;
}

.tiko-social-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiko-social-video-player {
    width: 100%;
    display: block;
    background: #000;
}

.tiko-social-video-player video {
    width: 100%;
    display: block;
}

.tiko-social-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.tiko-social-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tiko-social-post-media.is-video a {
    position: relative;
    display: block;
}

/* Like Box */
.tiko-social-like-box {
    margin-bottom: var(--gap);
    text-align: center;
}

.tiko-social-like-box iframe {
    max-width: 100%;
}

/* Reviews */
.tiko-social-review {
    padding: 20px;
}

.tiko-social-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.tiko-social-reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tiko-social-reviewer-avatar-placeholder {
    background: var(--link-color, #1877f2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.tiko-social-reviewer-info {
    flex: 1;
    min-width: 0;
}

.tiko-social-reviewer-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.tiko-social-rating {
    display: flex;
    gap: 2px;
}

.tiko-social-star {
    display: inline-flex;
}

.tiko-social-star.filled {
    color: #f5b50a;
}

.tiko-social-star.empty {
    color: #ddd;
}

.tiko-social-recommendation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 4px;
}

.tiko-social-recommendation.positive {
    background: #e7f3e8;
    color: #1e7e34;
}

.tiko-social-recommendation.negative {
    background: #fce8e8;
    color: #c53030;
}

.tiko-social-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.tiko-social-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--card-border, #eee);
    font-size: 12px;
    color: var(--text-secondary);
}

.tiko-social-review-source {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Reviews grid adjustments */
.tiko-social-reviews.tiko-social-layout-grid .tiko-social-review,
.tiko-social-reviews.tiko-social-layout-masonry .tiko-social-review {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tiko-social-reviews .tiko-social-review-text {
    flex: 1;
}
