/* ═══════════════════════════════════════════════════════════
 * WP Prompt Challenge – Frontend Styles
 * ═══════════════════════════════════════════════════════════ */

:root {
    --wppc-primary: #6C63FF;
    --wppc-primary-dark: #5a52d5;
    --wppc-success: #27AE60;
    --wppc-danger: #E74C3C;
    --wppc-warning: #F39C12;
    --wppc-info: #3498DB;
    --wppc-text: #2c3e50;
    --wppc-text-light: #7f8c8d;
    --wppc-bg: #f8f9fa;
    --wppc-card-bg: #ffffff;
    --wppc-border: #e9ecef;
    --wppc-radius: 12px;
    --wppc-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --wppc-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── General ─────────────────────────────────────────────── */

.wppc-notice {
    padding: 16px 20px;
    border-radius: var(--wppc-radius);
    margin-bottom: 20px;
    font-family: var(--wppc-font);
}

.wppc-notice--info {
    background: #EBF5FB;
    border-left: 4px solid var(--wppc-info);
    color: #1a5276;
}

.wppc-notice--warning {
    background: #FEF9E7;
    border-left: 4px solid var(--wppc-warning);
    color: #7d6608;
}

.wppc-notice p {
    margin: 0;
}

.wppc-notice a {
    color: var(--wppc-primary);
    font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────── */

.wppc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--wppc-font);
}

.wppc-btn--primary {
    background: var(--wppc-primary);
    color: #fff;
}

.wppc-btn--primary:hover:not(:disabled) {
    background: var(--wppc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.wppc-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wppc-btn--vote {
    background: var(--wppc-primary);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
}

.wppc-btn--vote:hover:not(:disabled) {
    background: var(--wppc-primary-dark);
}

.wppc-btn--voted {
    background: var(--wppc-success) !important;
    color: #fff;
}

.wppc-btn--voted:hover {
    background: var(--wppc-danger) !important;
}

.wppc-btn--small {
    padding: 4px 10px;
    font-size: 12px;
}

.wppc-btn--danger {
    background: var(--wppc-danger);
    color: #fff;
}

/* ── Gallery ─────────────────────────────────────────────── */

.wppc-gallery {
    font-family: var(--wppc-font);
    color: var(--wppc-text);
}

.wppc-gallery__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wppc-gallery__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.wppc-gallery__status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wppc-gallery__status--active {
    background: #d4edda;
    color: #155724;
}

.wppc-gallery__status--review {
    background: #fff3cd;
    color: #856404;
}

.wppc-gallery__status--closed {
    background: #f8d7da;
    color: #721c24;
}

.wppc-gallery__status--draft {
    background: #e2e3e5;
    color: #383d41;
}

.wppc-gallery__seed {
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--wppc-shadow);
}

.wppc-gallery__description {
    margin-bottom: 16px;
    line-height: 1.6;
}

.wppc-gallery__seed-text h4,
.wppc-gallery__seed-images h4 {
    color: var(--wppc-primary);
    margin: 16px 0 8px;
    font-size: 15px;
}

.wppc-seed-images-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wppc-seed-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.wppc-seed-image:hover {
    transform: scale(1.05);
}

.wppc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.wppc-gallery__card {
    position: relative;
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    overflow: hidden;
    box-shadow: var(--wppc-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.wppc-gallery__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wppc-gallery__rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
}

.wppc-gallery__rank--1 {
    background: linear-gradient(135deg, #FFD700, #FFB300);
}

.wppc-gallery__rank--2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.wppc-gallery__rank--3 {
    background: linear-gradient(135deg, #CD7F32, #A0652F);
}

.wppc-gallery__card-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.wppc-gallery__no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--wppc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wppc-text-light);
}

.wppc-gallery__card-info {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wppc-gallery__card-prompt {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--wppc-text);
}

.wppc-gallery__card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: auto;
}

.wppc-gallery__card-author {
    color: var(--wppc-text-light);
}

.wppc-gallery__card-points {
    font-weight: 700;
    color: var(--wppc-primary);
}

.wppc-gallery__empty {
    text-align: center;
    padding: 40px;
    color: var(--wppc-text-light);
    font-size: 16px;
}

/* ── Submit Form ─────────────────────────────────────────── */

.wppc-submit-form {
    font-family: var(--wppc-font);
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    padding: 24px;
    box-shadow: var(--wppc-shadow);
}

.wppc-submit-form h3 {
    margin-top: 0;
    font-size: 22px;
    color: var(--wppc-text);
}

.wppc-submit-form__description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--wppc-text);
}

.wppc-submit-form__reference {
    background: var(--wppc-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--wppc-primary);
}

.wppc-submit-form__reference h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--wppc-primary);
}

.wppc-submit-form__seed-text {
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--wppc-text);
}

.wppc-submit-form__seed-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wppc-submit-form__seed-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.wppc-submit-form__seed-img:hover {
    transform: scale(1.05);
}

.wppc-form__group {
    margin-bottom: 20px;
}

.wppc-form__group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--wppc-text);
}

.wppc-form__group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--wppc-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    resize: vertical;
    font-family: var(--wppc-font);
}

.wppc-form__group textarea:focus {
    border-color: var(--wppc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.wppc-form__help {
    font-size: 12px;
    color: var(--wppc-text-light);
    margin-top: 4px;
}

.wppc-upload-area {
    border: 2px dashed var(--wppc-border);
    border-radius: var(--wppc-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.wppc-upload-area:hover,
.wppc-upload-area.dragover {
    border-color: var(--wppc-primary);
    background: rgba(108, 99, 255, 0.03);
}

.wppc-upload-area__placeholder p {
    margin: 8px 0 4px;
    font-size: 15px;
    color: var(--wppc-text);
}

.wppc-upload-area__placeholder small {
    color: var(--wppc-text-light);
}

.wppc-upload-area__preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: var(--wppc-shadow);
}

.wppc-upload-area__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wppc-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wppc-form__status {
    font-size: 14px;
    color: var(--wppc-text-light);
}

.wppc-form__status.success {
    color: var(--wppc-success);
}

.wppc-form__status.error {
    color: var(--wppc-danger);
}

/* ── Vote Panel ──────────────────────────────────────────── */

.wppc-vote-panel {
    font-family: var(--wppc-font);
}

.wppc-vote-panel h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.wppc-vote-panel__remaining {
    font-size: 14px;
    color: var(--wppc-text-light);
    margin-bottom: 16px;
}

.wppc-vote-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.wppc-vote-panel__card {
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    overflow: hidden;
    box-shadow: var(--wppc-shadow);
    transition: transform 0.2s;
}

.wppc-vote-panel__card:hover {
    transform: translateY(-2px);
}

.wppc-vote-panel__card--voted {
    outline: 3px solid var(--wppc-success);
}

.wppc-vote-panel__card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.wppc-vote-panel__card-body {
    padding: 12px 14px;
}

.wppc-vote-panel__card-prompt {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.4;
}

.wppc-vote-panel__card-author {
    font-size: 12px;
    color: var(--wppc-text-light);
}

.wppc-vote-panel__card-actions {
    padding: 0 14px 14px;
}

/* ── My Points ───────────────────────────────────────────── */

.wppc-my-points {
    font-family: var(--wppc-font);
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    padding: 24px;
    box-shadow: var(--wppc-shadow);
    text-align: center;
}

.wppc-my-points h3 {
    margin-top: 0;
}

.wppc-my-points__value {
    font-size: 48px;
    font-weight: 800;
    color: var(--wppc-primary);
    line-height: 1;
    margin: 8px 0 12px;
}

.wppc-my-points__badge {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.wppc-my-points__progress small {
    display: block;
    margin-bottom: 6px;
    color: var(--wppc-text-light);
}

.wppc-progress-bar {
    height: 8px;
    background: var(--wppc-bg);
    border-radius: 4px;
    overflow: hidden;
}

.wppc-progress-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ── Badge Display ───────────────────────────────────────── */

.wppc-badge-display {
    font-family: var(--wppc-font);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wppc-card-bg);
    border-radius: var(--wppc-radius);
    padding: 16px 20px;
    box-shadow: var(--wppc-shadow);
    border-left: 4px solid;
}

.wppc-badge-display__image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.wppc-badge-display__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.wppc-badge-display__info {
    display: flex;
    flex-direction: column;
}

.wppc-badge-display__info small {
    color: var(--wppc-text-light);
    font-size: 12px;
}

/* ── Leaderboard ─────────────────────────────────────────── */

.wppc-global-leaderboard {
    font-family: var(--wppc-font);
}

.wppc-global-leaderboard h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.wppc-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wppc-leaderboard-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--wppc-card-bg);
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s;
}

.wppc-leaderboard-list__item:hover {
    transform: translateX(4px);
}

.wppc-leaderboard-list__item--top {
    border-left: 3px solid var(--wppc-primary);
}

.wppc-leaderboard-list__rank {
    font-size: 18px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.wppc-leaderboard-list__avatar img {
    border-radius: 50%;
    display: block;
}

.wppc-leaderboard-list__name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.wppc-leaderboard-list__badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.08);
}

.wppc-leaderboard-list__points {
    font-weight: 700;
    font-size: 15px;
    color: var(--wppc-primary);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .wppc-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .wppc-vote-panel__grid {
        grid-template-columns: 1fr;
    }

    .wppc-gallery__title {
        font-size: 22px;
    }
}

/* ── Admin Status Tags ───────────────────────────────────── */

.wppc-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.wppc-status--draft {
    background: #e2e3e5;
    color: #383d41;
}

.wppc-status--active {
    background: #d4edda;
    color: #155724;
}

.wppc-status--review {
    background: #fff3cd;
    color: #856404;
}

.wppc-status--closed {
    background: #f8d7da;
    color: #721c24;
}

.wppc-status--pending {
    background: #ffeeba;
    color: #856404;
}

/* ═══════════════════════════════════════
 * SEED IMAGE — clickable
 * ═══════════════════════════════════════ */

.wppc-submit-form__seed-img {
    cursor: pointer;
}

/* ═══════════════════════════════════════
 * UPLOAD AREA — uploading state
 * ═══════════════════════════════════════ */

.wppc-upload-area--uploading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.wppc-upload-area--uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--wppc-border);
    border-top-color: var(--wppc-primary);
    border-radius: 50%;
    animation: wppc-spin 0.8s linear infinite;
}

@keyframes wppc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════
 * LIGHTBOX
 * ═══════════════════════════════════════ */

.wppc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wppc-lightbox--open {
    opacity: 1;
}

.wppc-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.wppc-lightbox__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    max-width: 92vw;
    max-height: 90vh;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.wppc-lightbox__image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.wppc-lightbox__content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    display: block;
}

.wppc-lightbox__sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    overflow-y: auto;
}

.wppc-lightbox__sidebar-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 12px;
    font-weight: 600;
}

.wppc-lightbox__sidebar-prompt {
    font-size: 1em;
    line-height: 1.6;
    color: #222;
    margin: 0 0 20px;
    word-wrap: break-word;
}

.wppc-lightbox__sidebar-author {
    margin-top: auto;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.wppc-lightbox__sidebar-author strong {
    color: #1E3A5F;
}

.wppc-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    color: #333;
    z-index: 5;
}

.wppc-lightbox__close:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .wppc-lightbox__content {
        flex-direction: column;
        max-height: 95vh;
    }

    .wppc-lightbox__sidebar {
        width: 100%;
        max-height: 35vh;
        padding: 16px;
    }

    .wppc-lightbox__content img {
        max-height: 55vh;
    }
}

/* Gallery: Integrated Vote Button and Vote Count */
.wppc-gallery__card-vote {
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid #eee;
}

.wppc-gallery__card-votes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: #555;
    font-weight: 600;
}

.wppc-vote-panel__remaining-bar {
    background: #f0f7ff;
    border: 1px solid #cde;
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.9em;
}

.wppc-vote-panel__remaining-bar p {
    margin: 0;
}

/* Gallery: Lightbox title */
.wppc-lightbox__title {
    color: #fff;
    text-align: center;
    margin: 12px 0 0;
    font-size: 0.95em;
    max-width: 600px;
}

/* Gallery: Clickable images */
.wppc-lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.wppc-lightbox-trigger img {
    transition: transform 0.2s ease;
}

.wppc-lightbox-trigger:hover img {
    transform: scale(1.03);
}

/* Gallery: Reference section dark blue border (simplificaconia.com color) */
.wppc-gallery__seed {
    border: 2px solid #1E3A5F;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

/* ── Comments Panel ──────────────────────────── */
.wppc-comments {
    margin-top: 32px;
    border: 2px solid #1E3A5F;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
}

.wppc-comments__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 1.3em;
    color: #1E3A5F;
}

.wppc-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1E3A5F;
    color: #fff;
    font-size: 0.65em;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    padding: 0 8px;
    font-weight: 600;
}

/* Comment Form */
.wppc-comments__form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf0;
}

.wppc-comments__form-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.wppc-comments__form-input {
    flex: 1;
}

.wppc-comments__form-input textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95em;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.wppc-comments__form-input textarea:focus {
    outline: none;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.wppc-comments__form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.wppc-comments__char-count {
    color: #888;
    font-size: 0.8em;
}

/* Login Notice */
.wppc-comments__login-notice {
    background: #f0f7ff;
    border: 1px solid #cde;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.wppc-comments__login-notice a {
    color: #1E3A5F;
    font-weight: 600;
    text-decoration: underline;
}

/* Empty State */
.wppc-comments__empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 24px 0;
}

/* Comment List */
.wppc-comments__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Single Comment */
.wppc-comment {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    animation: wppc-fade-in 0.3s ease;
}

.wppc-comment:last-child {
    border-bottom: none;
}

@keyframes wppc-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wppc-comment--new {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 12px;
    margin: -4px;
}

.wppc-comment__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.wppc-comment__body {
    flex: 1;
    min-width: 0;
}

.wppc-comment__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.wppc-comment__author {
    font-size: 0.9em;
    color: #1E3A5F;
}

.wppc-comment__time {
    font-size: 0.78em;
    color: #999;
}

.wppc-comment__text {
    margin: 0;
    font-size: 0.93em;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.wppc-comment__actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.wppc-comment__delete,
.wppc-comment__reply-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.78em;
    padding: 2px 0;
    transition: color 0.2s;
}

.wppc-comment__delete:hover {
    color: #e53e3e;
}

.wppc-comment__reply-btn:hover {
    color: #1E3A5F;
}

/* Reply indent */
.wppc-comment--reply {
    margin-left: 52px;
    padding-left: 12px;
    border-left: 2px solid #e8ecf0;
}

.wppc-comment__reply-to {
    font-size: 0.8em;
    color: #1E3A5F;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Inline Reply Form */
.wppc-reply-form {
    display: flex;
    gap: 10px;
    margin: 8px 0 4px 52px;
    padding: 10px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
}

.wppc-reply-form textarea {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.88em;
    min-height: 40px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}

.wppc-reply-form textarea:focus {
    outline: none;
    border-color: #1E3A5F;
}

.wppc-reply-form__actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wppc-reply-form__cancel {
    background: none;
    border: none;
    color: #999;
    font-size: 0.78em;
    cursor: pointer;
}

.wppc-reply-form__cancel:hover {
    color: #333;
}

/* ── Winner Card Styling ─────────────────────── */
.wppc-gallery__card--winner {
    border: 3px solid #d4a017 !important;
    box-shadow: 0 0 16px rgba(212, 160, 23, 0.35), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
}

.wppc-gallery__winner-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 2em;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: wppc-crown-pulse 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes wppc-crown-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Admin: Winner status in entry detail */
.wppc-winner-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700, #d4a017);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

/* ═══════════════════════════════════════════
 * Challenge List – [challenge_list]
 * ═══════════════════════════════════════════ */

.wppc-challenge-list {
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Tabs */
.wppc-challenge-list__filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wppc-challenge-list__filter {
    background: #f0f2f5;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.88em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    font-family: inherit;
}

.wppc-challenge-list__filter:hover {
    background: #e4e8ee;
    color: #333;
}

.wppc-challenge-list__filter--active {
    background: #1E3A5F;
    color: #fff;
    border-color: #1E3A5F;
}

/* Grid */
.wppc-challenge-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .wppc-challenge-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .wppc-challenge-list__grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.wppc-challenge-list__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wppc-challenge-list__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.wppc-challenge-list__card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f2f5;
}

.wppc-challenge-list__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wppc-challenge-list__card:hover .wppc-challenge-list__card-image img {
    transform: scale(1.05);
}

.wppc-challenge-list__card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf0, #d1d5db);
}

.wppc-challenge-list__card-image--placeholder span {
    font-size: 3em;
    opacity: 0.5;
}

/* Card Body */
.wppc-challenge-list__card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wppc-challenge-list__card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Status Badges */
.wppc-challenge-list__status {
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 10px;
    line-height: 1.4;
}

.wppc-challenge-list__status--active {
    background: #dcfce7;
    color: #166534;
}

.wppc-challenge-list__status--closed {
    background: #fee2e2;
    color: #991b1b;
}

.wppc-challenge-list__status--review {
    background: #fef3c7;
    color: #92400e;
}

.wppc-challenge-list__category {
    font-size: 0.72em;
    color: #888;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 10px;
}

/* Title */
.wppc-challenge-list__title {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.3;
}

.wppc-challenge-list__title a {
    color: inherit;
    text-decoration: none;
}

.wppc-challenge-list__title a:hover {
    text-decoration: underline;
}

/* Description */
.wppc-challenge-list__desc {
    margin: 0 0 12px;
    font-size: 0.86em;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

/* Meta */
.wppc-challenge-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.8em;
    color: #888;
}

/* CTA */
.wppc-challenge-list__link {
    text-align: center;
    display: block;
    margin-top: auto;
}