/* =========================================
   AUTO BLOG WRITER — Frontend Blog Styles
   ========================================= */

.abw-blog-wrap {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* ---- Kategori bar ---- */
.abw-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.abw-cat-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.abw-cat-btn:hover,
.abw-cat-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ---- Grid ---- */
.abw-blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ---- Card ---- */
.abw-card {
    width: calc(33.333% - 14px);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.abw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.abw-card-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
}

.abw-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.abw-card:hover .abw-card-img-wrap img {
    transform: scale(1.03);
}

.abw-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.abw-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    min-height: 48px;
    line-height: 1.4;
}

.abw-card-title a {
    color: #000;
    text-decoration: none;
}

.abw-card-title a:hover {
    color: #007bff;
}

.abw-card-text {
    font-size: 14px;
    color: #555;
    flex-grow: 1;
    margin: 0 0 15px;
    line-height: 1.6;
    min-height: 80px;
}

.abw-read-more {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #eee;
    background: #fff;
    color: #000;
    transition: 0.2s;
    align-self: flex-start;
}

.abw-read-more:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ---- Load More ---- */
.abw-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.abw-load-more {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: #007bff;
    color: #fff;
    font-family: inherit;
    transition: background 0.2s;
}

.abw-load-more:hover { background: #0056b3; }
.abw-load-more:disabled { background: #aaa; cursor: not-allowed; }

.abw-no-posts {
    text-align: center;
    color: #999;
    padding: 40px 0;
    width: 100%;
}

/* ---- Loading skeleton ---- */
.abw-card.skeleton .abw-card-img-wrap {
    background: #f0f0f0;
    animation: abw-shimmer 1.2s infinite;
}
.abw-card.skeleton .abw-card-title,
.abw-card.skeleton .abw-card-text {
    background: #f0f0f0;
    border-radius: 4px;
    animation: abw-shimmer 1.2s infinite;
    color: transparent;
}
@keyframes abw-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .abw-card { width: calc(50% - 10px); }
}

@media (max-width: 576px) {
    .abw-card { width: 100%; }
    .abw-blog-wrap { padding: 20px 12px; }
}
