/* WP Market Articles — Frontend Styles */

.wma-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filter buttons */
.wma-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.wma-filter-btn {
    padding: 8px 20px;
    border: 1px solid #1a3c5e;
    background: transparent;
    color: #1a3c5e;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.wma-filter-btn:hover,
.wma-filter-btn.active {
    background: #1a3c5e;
    color: #fff;
}

/* Grid */
.wma-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .wma-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wma-grid { grid-template-columns: 1fr; }
    .wma-filter { justify-content: center; }
}

/* Card */
.wma-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.wma-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.wma-card--featured {
    border-color: #c9a84c;
    box-shadow: 0 2px 12px rgba(201,168,76,0.2);
}

/* Card image */
.wma-card__img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f4f8;
}

.wma-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
}

.wma-card__img--placeholder .dashicons {
    font-size: 48px;
    color: rgba(255,255,255,0.3);
    width: 48px;
    height: 48px;
}

/* Badges */
.wma-badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c9a84c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.wma-badge-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(26,60,94,0.85);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card body */
.wma-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wma-card__period {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.wma-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.wma-card__title a {
    color: #1a3c5e;
    text-decoration: none;
}

.wma-card__title a:hover {
    color: #c9a84c;
}

.wma-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 16px;
}

.wma-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: auto;
    font-size: 12px;
    color: #999;
}

.wma-card__link {
    margin-left: auto;
    color: #1a3c5e;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.wma-card__link:hover {
    color: #c9a84c;
}

.wma-empty {
    text-align: center;
    color: #888;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}
