/**
 * Petrich Facebook Feed - Frontend Styles
 */

.petrich-fb-feed {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.petrich-fb-post {
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.petrich-fb-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.petrich-fb-post-date {
    color: #65676b;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-weight: 500;
}

.petrich-fb-post-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.petrich-fb-post-message {
    color: #050505;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 1em;
    white-space: pre-line;
}

.petrich-fb-post-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e4e6eb;
}

.petrich-fb-post-link {
    display: inline-flex;
    align-items: center;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.petrich-fb-post-link:hover {
    color: #145dbf;
    text-decoration: underline;
}

/* Error message */
.petrich-fb-feed-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    color: #856404;
}

.petrich-fb-feed-error p {
    margin: 0;
}

/* Widget specific styles */
.widget .petrich-fb-feed {
    margin: 0;
    gap: 20px;
}

.widget .petrich-fb-post {
    padding: 15px;
}

.widget .petrich-fb-post-message {
    font-size: 0.9em;
}

.widget .petrich-fb-post-date {
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {
    .petrich-fb-post {
        padding: 15px;
    }
    
    .petrich-fb-post-message {
        font-size: 0.95em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .petrich-fb-post {
        background: #242526;
        border-color: #3e4042;
    }
    
    .petrich-fb-post-message {
        color: #e4e6eb;
    }
    
    .petrich-fb-post-date {
        color: #b0b3b8;
    }
    
    .petrich-fb-post-footer {
        border-color: #3e4042;
    }
}
