/**
 * Full path: /wp-content/plugins/me-targeted-posts/assets/css/targeted-posts.css
 */

.me-tp-wrap {
    width: 100%;
        background: var(--wp--preset--gradient--blue) !important;
    padding-top: var(--wp--preset--spacing--x-large);
    padding-right: var(--wp--preset--spacing--medium);
    padding-bottom: var(--wp--preset--spacing--x-large);
    padding-left: var(--wp--preset--spacing--medium);
}

.me-tp-head {
    margin-bottom: 20px;
    text-align: center;
}

.me-tp-heading {

    margin: 0;
    margin-bottom: 35px;
    font-size: 2.5em;
    line-height: 1.2;
}

.me-tp-wrap .me-tp-heading {
    color: #ffffff;
}

.me-tp-empty {
    padding: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #fff;
}

.me-tp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.me-tp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.me-tp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.me-tp-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.me-tp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.me-tp-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9eef5 0%, #f6f8fb 100%);
}

.me-tp-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1 1 auto;
}

.me-tp-card__meta {
    font-size: 13px;
    color: #6b7280;
}

.me-tp-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.me-tp-card__title a {
    color: #111827;
    text-decoration: none;
}

.me-tp-card__title a:hover {
    text-decoration: underline;
}

.me-tp-card__excerpt {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.me-tp-card__footer {
    margin-top: auto;
    padding-top: 4px;
}

.me-tp-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.me-tp-card__link:hover {
    background: #000000;
    color: #ffffff;
}

.me-tp-admin-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.me-tp-admin-field label {
    display: block;
    margin-bottom: 8px;
}

.me-tp-admin-select {
    width: 100%;
    min-height: 120px;
}

@media (max-width: 1024px) {
    .me-tp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .me-tp-grid {
        grid-template-columns: 1fr;
    }

    .me-tp-heading {
        font-size: 26px;
    }

    .me-tp-card__title {
        font-size: 20px;
    }
}

.me-tp-head--with-count {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.me-tp-count {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.me-tp-pagination {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.me-tp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.me-tp-pagination .page-numbers.current {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.me-tp-pagination a.page-numbers:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.me-tp-single {
    width: 100%;
}

.single-post .wp-block-post-title,
.single-post .wp-block-post-date,
.single-post .wp-block-post-author,
.single-post .wp-block-post-terms,
.single-post .wp-block-post-featured-image,
.single-post .post-thumbnail,
.single-post .entry-header,
.single-post .comments-area,
.single-post #comments,
.single-post .comment-respond {
    display: none !important;
}

.me-tp-single__hero {
    padding: 80px 20px !important;
    margin: 0 0 28px !important;
    border-radius: 0 !important;
    background: linear-gradient(150deg, #0048d7 0%, #3fd7e8 100%) !important;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.me-tp-single__hero::before,
.me-tp-single__hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(10px);
}

.me-tp-single__hero::before {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -70px;
}

.me-tp-single__hero::after {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -70px;
}

.me-tp-single__hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.me-tp-single__cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.me-tp-single__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(6px);
}

.me-tp-single__cat:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.me-tp-single__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.me-tp-single__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.me-tp-single__meta-sep {
    opacity: 0.9;
}

.me-tp-single__excerpt {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.me-tp-single__container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.me-tp-single__featured {
    margin: -120px auto 28px;
    position: relative;
    z-index: 2;
}

.me-tp-single__featured-img {
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.me-tp-single__content {
    padding: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.85;
}

.me-tp-single__content > *:first-child {
    margin-top: 0;
}

.me-tp-single__content h2,
.me-tp-single__content h3,
.me-tp-single__content h4 {
    color: #0f172a;
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: 0.7em;
}

.me-tp-single__content p,
.me-tp-single__content ul,
.me-tp-single__content ol,
.me-tp-single__content blockquote {
    margin-bottom: 1.15em;
}

.me-tp-single__content a {
    color: #0048d7;
}

.me-tp-single__content img {
    border-radius: 18px;
}

@media (max-width: 767px) {
    .me-tp-single__hero {
        min-height: 320px;
        padding: 64px 18px !important;
    }

    .me-tp-single__meta,
    .me-tp-single__excerpt {
        font-size: 15px;
    }

    .me-tp-single__container {
        padding: 0 16px 32px;
    }

    .me-tp-single__featured {
        margin-top: -80px;
    }
}
