/* ============================================
   LENSPO CONTESTS STYLING
   Self-contained styles for the contest archive,
   single contest, winners and filter components.
   Brand green: #2B8B47
   ============================================ */

/* ---------- Filter bar (category / month / year) ---------- */
.contest-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.contest-filter li {
    margin: 0;
}

.contest-filter a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #f1f4f2;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.contest-filter a:hover {
    background: #e3efe8;
    color: #2B8B47;
}

.contest-filter a.current {
    background: #2B8B47;
    color: #fff;
    border-color: #2B8B47;
}

/* Month/year sub filter */
.contest-subfilter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 35px;
}

.contest-subfilter a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contest-subfilter a:hover {
    border-color: #2B8B47;
    color: #2B8B47;
}

.contest-subfilter a.current {
    background: #2B8B47;
    border-color: #2B8B47;
    color: #fff;
}

/* ---------- Contest cards ---------- */
.contest-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contest-card .contest-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f4f2;
}

.contest-card .contest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.contest-card:hover .contest-card-img img {
    transform: scale(1.06);
}

.contest-card .contest-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contest-card .contest-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.contest-card .contest-card-title a {
    color: #1d1d1d;
    text-decoration: none;
}

.contest-card .contest-card-title a:hover {
    color: #2B8B47;
}

.contest-card .contest-card-meta {
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.contest-card .contest-card-meta i {
    color: #2B8B47;
}

.contest-card .contest-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.contest-card .read-more {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Status badge ---------- */
.contest-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.contest-status-badge.bg-success { background: #2B8B47; }
.contest-status-badge.bg-info    { background: #2271b1; }
.contest-status-badge.bg-secondary { background: #787c82; }

/* ---------- Single contest ---------- */
/* The single contest hero reuses the convertsite page hero markup
   (.top-single-bkg.topsinglepage + .inner-desc + .display-2.single-post-title),
   which is already styled in the main stylesheet, so no overrides are needed. */

/* Contest info strip */
.contest-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 35px;
    padding: 0;
    list-style: none;
}

.contest-info-strip li {
    flex: 1;
    min-width: 160px;
    background: #f7faf8;
    border: 1px solid #e7efe9;
    border-radius: 10px;
    padding: 16px 18px;
}

.contest-info-strip .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a8a;
    margin-bottom: 4px;
    font-weight: 600;
}

.contest-info-strip .value {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1d;
}

/* Winner cards reuse the convertsite markup
   (.winner-card.bg-white.radius10.shadow-sm.p-4 + .card-type-badge.bg-success +
   .winner-name / .winner-title / .winner-desc), styled via the shared utility
   classes already present in the main stylesheet — no overrides needed here so
   the winner section stays visually identical to the original. */

/* ---------- Winners page (search + clickable cards) ---------- */
.winner-search-wrap {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.winner-search-input {
    width: 100%;
    padding: 14px 22px;
    font-size: 16px;
    border: 1px solid #e0e6e2;
    border-radius: 30px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.winner-search-input:focus {
    border-color: #2B8B47;
    box-shadow: 0 0 0 3px rgba(43, 139, 71, 0.12);
}

/* Winner cards link to their Single Winner page without changing the design. */
.winner-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}

.winner-card-link:hover {
    transform: translateY(-6px);
    text-decoration: none;
    color: inherit;
}

.winner-card-link .winner-card {
    transition: box-shadow 0.3s ease;
}

.winner-card-link:hover .winner-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.winner-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* ---------- Not Found / 404 / empty states ---------- */
.lenspo-notfound-icon i {
    font-size: 56px;
    color: #2B8B47;
}

.lenspo-notfound-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-image {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-image img {
    width: 100%;
}

/* Featured contests strip */
.featured-contests {
    background: #f7faf8;
}

/* Empty state */
.contest-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .contest-card .contest-card-title {
        font-size: 18px;
    }
}
