/* Ray Social Feedz - Theme Integration Styling */

.rsf-container {
    max-width: 100%;
    margin: 30px 0;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.rsf-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}

.rsf-header h3 {
    margin: 0;
    color: #3b3e3e;
    /* Theme dark grey */
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.rsf-header h3::before {
    content: 'f';
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: inline-block;
    background: #3b3e3e;
    color: white;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 2px;
    margin-right: 10px;
    font-size: 14px;
    text-transform: none;
}

.rsf-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rsf-post-card {
    background: #fbfbfb;
    /* Very light grey */
    border: 1px solid #e1e1e1;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.rsf-post-card:hover {
    background: #ffffff;
    border-color: #cccccc;
}

.rsf-post-image {
    display: block;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #efefef;
    position: relative;
    border-bottom: 1px solid #e1e1e1;
}

.rsf-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    transition: background 0.3s;
}

.rsf-post-image:hover::after {
    background: rgba(0, 0, 0, 0);
}

.rsf-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rsf-post-date {
    font-size: 11px;
    color: #7c7c7c;
    /* Theme medium grey */
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rsf-post-text {
    font-size: 13px;
    line-height: 18px;
    color: #3b3e3e;
    margin-bottom: 15px;
    flex-grow: 1;
    word-break: break-word;
}

.rsf-post-text a {
    color: #555555;
    text-decoration: underline;
}

.rsf-post-text a:hover {
    color: #000000;
}

.rsf-read-more {
    display: inline-block;
    padding: 6px 12px;
    background: #eeeeee;
    color: #555555;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    align-self: flex-start;
    border: 1px solid #dddddd;
}

.rsf-read-more:hover {
    background: #dddddd;
    color: #333333;
}

@media (max-width: 600px) {
    .rsf-posts-grid {
        grid-template-columns: 1fr;
    }
}