/* wp-content/plugins/au-feed/assets/css/au-feed.css */

/* Feed Item Container */
.au-feed-item {
    margin-bottom: 25px;
    padding: 0;
    overflow: hidden;
}

/* Image Wrapper */
.au-feed-image-link {
    display: block;
    height: 250px;
}

.au-feed-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Wrapper */
.au-feed-content {
    padding: 20px 0 0 0;
}

.au-type-center .au-feed-content,
.au-type-worksheet .au-feed-content {
    padding-top: 0;
}

/* Header (Type & Date) */
.au-feed-header {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.au-feed-type {
    font-weight: bold;
    text-transform: uppercase;
}

.au-feed-date {
    color: #a8a8a8;
}

/* Title & Excerpt */
.au-feed-title {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: bold;
}

.au-feed-title a {
    color: #333;
    transition: color 0.2s ease;
}

.au-feed-title a:hover {
    color: var(--color-theme, #ff6969);
}

.au-feed-excerpt {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
}

/* Action Bar (Share & Save) */
.au-feed-actions {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
}

.au-feed-shares {
    display: flex;
    gap: 15px;
}

.au-feed-share-fb {
    color: #3b5998;
}

.au-feed-share-tw {
    color: #1da1f2;
}

.au-feed-save-trigger {
    cursor: pointer;
    color: var(--color-theme, #ff6969);
    transition: transform 0.2s ease;
}

.au-feed-save-trigger:hover {
    transform: scale(1.1);
}

/* Example: Add a colored top-border based on the type */
.au-type-center {
    border-top: 4px solid var(--color-primary, #4983ff);
}
.au-type-post {
    border-top: 4px solid var(--color-success, #0eb02b);
}
.au-type-worksheet {
    border-top: 4px solid var(--color-warning, #e68040);
}

/* PDF Preview Styling */
.au-type-worksheet.au-feed-item {
    border-top: 3px solid #e68040; /* Match your worksheet color */
}

.au-pdf-preview {
    height: 200px !important; /* Fixed viewport height */
    width: 100%;
    overflow: hidden;
    display: block;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.au-pdf-preview img {
    width: 100% !important;
    height: auto !important;
    min-height: 400px; /* Force it to be taller than the container so we can cut it */
    object-fit: cover !important;
    object-position: center 0% !important; /* 0% is the absolute top */
    display: block;
}
