/* Manogat Newsletter Manager — Frontend Styles */

.manogat-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Filter bar --- */
.manogat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 18px;
    background: #f7f7f9;
    border-radius: 10px;
}

.manogat-filters select,
.manogat-filters input[type="text"] {
    padding: 10px 14px !important;
    border: 1.5px solid #b0b0b0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: normal !important;
    background: #fff !important;
    color: #333 !important;
    height: 44px !important;
    min-height: 0 !important;
    max-height: none;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    margin: 0 !important;
}

.manogat-filters select {
    /* re-add a dropdown arrow since appearance:none removes the native one */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 34px !important;
}

.manogat-filters select:focus,
.manogat-filters input[type="text"]:focus {
    border-color: #FF9933;
    outline: none;
}

.manogat-filters select {
    min-width: 150px;
    cursor: pointer;
}

.manogat-filters input[type="text"] {
    flex: 1 1 220px;
    min-width: 220px;
}

/* --- Buttons --- */
.manogat-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
}

.manogat-btn-solid {
    background: #FF9933; /* BJP saffron */
    color: #fff !important;
}
.manogat-btn-solid:hover { background: #E5822E; }

.manogat-btn-outline {
    background: transparent;
    border-color: #FF9933;
    color: #FF9933 !important;
}
.manogat-btn-outline:hover { background: #FF9933; color: #fff !important; }

/* --- Grid --- */
.manogat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.manogat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.manogat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.manogat-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.manogat-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.manogat-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
    font-size: 48px;
}

.manogat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,153,51,.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.manogat-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manogat-card-body h3 {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.manogat-card-body h3 a {
    color: #222;
    text-decoration: none;
}

.manogat-date {
    color: #888;
    font-size: 13px;
    margin: 0 0 14px;
}

.manogat-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.manogat-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* --- Loading state --- */
#manogat-results.loading {
    opacity: .4;
    pointer-events: none;
    transition: opacity .2s ease;
}

/* --- Pagination --- */
.manogat-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.manogat-pagination button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.manogat-pagination button.active {
    background: #FF9933;
    color: #fff;
    border-color: #FF9933;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .manogat-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
    }
    .manogat-filters select,
    .manogat-filters input[type="text"] {
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        height: 40px !important;
    }
    .manogat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}
