.rifnote-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.rifnote-post {
    border: 0px solid #e1e8ed;
    border-radius: 5px;
    padding: 0px;
    margin-bottom: 15px;
    background-color: #fff;
}

.rifnote-post-title, .rifnote-post-title a {
    font-size: 18px;
    color: #0e0e0f;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 5px;
    text-decoration: none;
}

.rifnote-post-meta {
    font-size: 14px;
    color: #657786;
    margin-bottom: 10px;
}

.rifnote-post-excerpt {
    font-size: 16px;
    margin-bottom: 10px;
}

.rifnote-post-actions {
    display: flex;
    justify-content: space-between;
}

.rifnote-post-actions span {
    cursor: pointer;
    color: #657786;
}

.rifnote-post-actions span:hover {
    color: #1da1f2;
}

.rifnote-pagination {
    text-align: center;
    margin-top: 20px;
}

.rifnote-post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.rifnote-post-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.rifnote-post-actions i {
    margin-right: 5px;
}

.rifnote-comment-action i {
    color: #1DA1F2;
}

.rifnote-share-action i {
    color: #17BF63;
}

.rifnote-favorite-action i {
    color: #FFAD1F;
}

.rifnote-post-actions span:hover {
    opacity: 0.8;
}

.rifnote-post {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.rifnote-post-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.rifnote-post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.rifnote-post-excerpt {
    margin-bottom: 15px;
}

.rifnote-post-image {
    margin-bottom: 15px;
}

.rifnote-post-image img {
    max-width: 100%;
    height: auto;
}

.rifnote-read-more {
    display: inline-block;
    width: 100%;
    padding: 5px 10px;
    background-color: #ed1c24;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 15px;
    text-align: center;
}

.rifnote-read-more:hover{
    color: white;
    animation: ease-in-out;
}

.rifnote-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.rifnote-post-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.9em;
}

.rifnote-post-actions i {
    margin-right: 5px;
}

.rifnote-comment-action i {
    color: #1DA1F2;
}

.rifnote-share-action i {
    color: #17BF63;
}

.rifnote-favorite-action i {
    color: #ff1f6a;
}

.rifnote-embed-action i {
    color: #6c757d;
}

.rifnote-timestamp {
    color: #6c757d;
}

.rifnote-post-actions span:hover {
    opacity: 0.8;
}

.rifnote-post-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.rifnote-post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

.rifnote-video .rifnote-video-content {
    position: relative;
    height: 0;
    overflow: hidden;
}

/* Default padding-bottom for non-YouTube videos */
.rifnote-video .rifnote-video-content {
    padding-bottom: 100%;
}

/* Specific padding-bottom for YouTube videos */
.rifnote-video .rifnote-video-content[data-video-type="youtube"] {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.rifnote-video .rifnote-video-content iframe,
.rifnote-video .rifnote-video-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.share-section {
    display: none;
    margin-top: 10px;
}

.share-button {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.share-button.facebook { background-color: #3b5998; }
.share-button.whatsapp { background-color: #25D366; }
.share-button.twitter { background-color: #1DA1F2; }
.share-button.telegram { background-color: #0088cc; }

.rifnote-favorite-action.favorited {
    color: #FFAD1F;
}

.rifnote-favorite-action.favorited i {
    color: #FFAD1F;
}

.rifnote-embed-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.rifnote-embed-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.rifnote-embed-dialog textarea {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    padding: 5px;
    resize: none;
}

.rifnote-embed-dialog button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.rifnote-embed-dialog button:hover {
    background-color: #0056b3;
}

.rifnote-close-embed {
    background-color: #6c757d !important;
}

.rifnote-close-embed:hover {
    background-color: #545b62 !important;
}

.rifnote-comment {
    display: flex;
    margin-bottom: 20px;
}

.rifnote-comment-avatar {
    margin-right: 15px;
}

.rifnote-comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.rifnote-comment-content {
    flex: 1;
}

.rifnote-comment-meta {
    margin-bottom: 5px;
}

.rifnote-comment-author {
    font-weight: bold;
    margin-right: 10px;
}

.rifnote-comment-date {
    color: #777;
    font-size: 0.9em;
}

.rifnote-comment-text {
    margin-bottom: 10px;
}

.rifnote-comment-actions button {
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.rifnote-comment-actions button:hover {
    background-color: #e0e0e0;
}

.rifnote-reply-to {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.rifnote-cancel-reply {
    margin-left: 10px;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
}

.rifnote-comment-list {
    padding-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.rifnote-load-more-comments {
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    cursor: pointer;
    margin-top: 10px;
}

.rifnote-load-more-comments:hover {
    background-color: #e0e0e0;
}

.rifnote-post {
    position: relative;
}

.rifnote-post-info {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.rifnote-post-tags-info {
    display: inline-block;
    cursor: pointer;
}

.rifnote-post-tags-info i {
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.rifnote-post-tags-info:hover i {
    color: #0073aa;
}

.rifnote-load-more {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

#load-more-posts {
    background-color: #ed1c24; /* WordPress blue */
    color: #ffffff;
    width: 100%;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

#load-more-posts:hover {
    background-color: #94050a; /* Darker shade for hover effect */
}

#load-more-posts:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(170, 0, 0, 0.5); /* Focus ring */
}

#load-more-posts:active {
    transform: translateY(1px); /* Slight push effect when clicked */
}

/* Optional: Add a loading state */
#load-more-posts.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Optional: Add a disabled state when all posts are loaded */
#load-more-posts:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.rifnote-ai-toggle-btn {
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 10px;
    background-color: #f0f0f0;
    color: #0e0e0f;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.rifnote-ai-toggle-btn:hover {
    background-color: #e0e0e0;
    color: #0e0e0f;
}

.rifnote-ai-toggle-btn.active {
    background-color: #d0d0d0;
    color: #ed1c24;
}

.rifnote-ai-image {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

.rifnote-ai-content {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.rifnote-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #888;
}