/**
 * Probha Aurora Facebook Feeder Styles
 */

.pa-fb-feed-wrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.pa-fb-feed-wrapper *,
.pa-fb-feed-wrapper *::before,
.pa-fb-feed-wrapper *::after {
    box-sizing: inherit;
}

/* Grid Layout */
.pa-fb-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* List Layout */
.pa-fb-feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Container */
.pa-fb-feed-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pa-fb-feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Author Header */
.pa-fb-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.pa-fb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pa-fb-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pa-fb-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1c1e21;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-fb-date {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}

/* Media Box */
.pa-fb-feed-media {
    width: 100%;
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
}

.pa-fb-feed-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.pa-fb-feed-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pa-fb-feed-card:hover .pa-fb-feed-media img {
    transform: scale(1.02);
}

/* Badges & Overlays */
.pa-fb-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pa-fb-video-card:hover .pa-fb-play-badge {
    background: #1877f2;
    transform: translate(-50%, -50%) scale(1.1);
}

.pa-fb-album-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pa-fb-album-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.pa-fb-album-title a {
    color: inherit;
    text-decoration: none;
}

.pa-fb-album-title a:hover {
    color: #1877f2;
}

/* Event Specifics */
.pa-fb-event-time {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pa-fb-event-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c1e21;
}

.pa-fb-event-place {
    font-size: 13px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 10px 0;
}

.pa-fb-ticket-btn {
    display: inline-block;
    background: #1877f2;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.pa-fb-ticket-btn:hover {
    background: #0d5cb6;
}

/* Review & Star Ratings */
.pa-fb-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
}

.pa-fb-star {
    color: #cbd5e1;
    font-size: 16px;
}

.pa-fb-star.filled {
    color: #f59e0b;
}

.pa-fb-rating-num {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-left: 6px;
}

/* Message / Body */
.pa-fb-message-container {
    padding: 16px;
    flex-grow: 1;
}

.pa-fb-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
    word-break: break-word;
}

/* Footer & Actions */
.pa-fb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
    font-size: 13px;
    margin-top: auto;
}

.pa-fb-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #65676b;
}

.pa-fb-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.pa-fb-stat-item svg {
    display: inline-block;
    vertical-align: middle;
}

.pa-fb-action-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.pa-fb-action-link:hover {
    color: #0d5cb6;
    text-decoration: underline;
}

/* ==================== CAROUSEL SLIDER ==================== */
.pa-fb-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.pa-fb-carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    gap: 20px;
}

.pa-fb-carousel-track .pa-fb-feed-card {
    flex-shrink: 0;
    margin: 0;
}

.pa-fb-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #1e293b;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pa-fb-carousel-btn:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.pa-fb-prev-btn {
    left: 8px;
}

.pa-fb-next-btn {
    right: 8px;
}

.pa-fb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.pa-fb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pa-fb-carousel-dot.active {
    background: #1877f2;
    transform: scale(1.2);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .pa-fb-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pa-fb-feed-grid {
        grid-template-columns: 1fr;
    }
    
    .pa-fb-feed-media img {
        height: 200px;
    }
}
