/* ================================
   REVIEW FORM WRAPPER
================================ */
.enc-review-form {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

/* General message container */
.enc-message {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    border-left: 5px solid;
}

/* Success message */
.enc-message.enc-success {
    background-color: #e6f9f0;
    color: #2f855a;
    border-color: #2f855a;
}

/* Error message */
.enc-message.enc-error {
    background-color: #ffe6e6;
    color: #c53030;
    border-color: #c53030;
}

.enc-form-footer-field-wrap {
    padding: 20px 20px;
}

.enc-form-header .enc-form-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    max-width: 540px;
    margin: 12px auto 0;
    font-weight: 400;
}

.enc_email {
    background: #d4d4d4 !important;
}

/* ================================
   FORM HEADER STRIP
================================ */
.enc-form-header {
    background: #3e64de; /* changed */
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    color: #fff;
}

.enc-header-heading {
    font-size: 22px;
    margin: 10px 0 0;
    font-weight: 700;
    color: #fff; /* better contrast */
}

.enc-review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.enc-review-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.enc-review-header img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* ================================
   FORM FIELDS
================================ */
.enc-review-form h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1f2937;
}

.enc-review-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 6px;
    text-align: left;
    color: #374151;
}

.enc-review-form input[type="email"],
.enc-review-form input[type="url"],
.enc-review-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    margin-bottom: 10px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.enc-review-form input:focus {
    outline: none;
    border-color: #3e64de; /* changed */
    box-shadow: 0 0 0 3px rgba(62,100,222,0.25); /* changed */
}

.enc-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ================================
   SUBMIT BUTTON
================================ */
.enc-review-form button {
    background: #3e64de; /* changed */
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    width: 100%;
}

.enc-review-form button:hover {
    background: #2d4fb8; /* darker shade on hover */
    transform: translateY(-2px);
}

/* Reward message box */
.enc-reward-message {
    background: linear-gradient(135deg, #f0f4ff, #e6ecff); /* subtle blue gradient */
    border: 2px solid #3e64de; /* changed */
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: encFadeIn 0.8s ease;
}

.enc-reward-icon {
    font-size: 40px;
    margin-right: 15px;
    color: #3e64de; /* changed */
}

.enc-reward-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e3aa8; /* darker blue */
}

@keyframes encFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   GRID WRAPPER
================================ */
.enc-rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ================================
   RANK CARD BASE
================================ */
.enc-rank-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    background: #ffffff;
}

.enc-rank-card img {
    width: 200px;
}

.enc-rank-card.current-rank {
    background: #fff;
}

.enc-rank-card.user-has-not-earned {
    border: 1px solid #d1d5db;
    background: #fff;
    opacity: 0.85;
    list-style: none;
}

.enc-rank-card.user-has-not-earned::marker {
    display: none;
}

.enc-rank-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #111827;
}

.enc-rank-thumb {
    max-width: 120px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.enc-rank-msg {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-has-earned .enc-rank-msg {
    background: #dcfce7;
    color: #166534;
}

.user-has-not-earned .enc-rank-msg {
    background: #fef2f2;
    color: #991b1b;
}

.enc-rank-req {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.enc-rank-req li {
    font-size: 14px;
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.enc-rank-earned-heading {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin: 10px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.enc-rank-earned-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.enc-rank-earned-list li {
    font-size: 14px;
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.enc-rank-earned-list li:hover {
    background: #d1fae5;
}

/* ================================
   GAMIPRESS USER POINTS CARD
================================ */
.gamipress-user-points {
    max-width: 320px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gamipress-user-points:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.gamipress-user-points-image img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gamipress-user-points-description {
    flex: 1;
}

.gamipress-user-points-amount {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #3e64de; /* changed */
    margin-bottom: 4px;
    line-height: 1;
}

.dashicons.dashicons-awards {
    width: 30px;
    height: 30px;
    font-size: 30px !important;
}

.gamipress-user-points-label {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #3e64de; /* changed */
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}
.gamipress-points.gamipress-user-points-point {
    gap: 20px !important;
}
@media (max-width: 640px) {
    .enc-review-form {
        font-size: 15px;
    }
    .enc-form-footer-field-wrap {
        padding: 20px 20px;
    }
    .enc-review-form h2 {
        font-size: 20px;
    }

    .enc-review-form label,
    .enc-review-form input[type="text"],
    .enc-review-form textarea,
    .enc-review-form button[type="submit"] {
        font-size: 15px;
    }

    .enc-message {
        font-size: 15px;
    }
}
/*progress*/
/* Floating Mini Dashboard */
.floating-mini-dashboard {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    margin-bottom: 32px !important;
}

.fmd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.fmd-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.fmd-xp {
    font-size: 13px;
    color: #666;
}

.fmd-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
}
.fmd-progress-fill {
    height: 100%;
    background-color: #385dff;
    transition: width 0.3s ease-in-out;
}

.fmd-top-icon-xp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 20px;
}
.fmd-top-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.fmd-top-xp {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    width: 100px !important;
}
.fmd-wrapper {
    width: 100%;
}

/* Responsive Floating Mini Dashboard */
@media screen and (max-width: 600px) {
    .floating-mini-dashboard {
        bottom: 10px;
        right: 10px;
        width: 90%;
    }
}

/* Leaderboard Responsive Table */
@media (max-width: 500px) {
  .gamipress-leaderboard-table thead {
    display: none !important;
  }

  .gamipress-leaderboard-table tr {
    display: block !important;
    background: #fff !important;
    margin-bottom: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
  }

  .gamipress-leaderboard-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #eee !important;
  }

  .gamipress-leaderboard-table td:last-child {
    border-bottom: none !important;
  }

  .gamipress-leaderboard-table .column-level::before {
    content: "Level";
    font-weight: bold;
    flex: 0 0 90px;
    margin-right: 10px;
    color: #333;
  }
  .gamipress-leaderboard-table .column-avatar::before {
    content: "Avatar";
  }
  .gamipress-leaderboard-table .column-display_name::before {
    content: "Name";
  }
  .gamipress-leaderboard-table .column-points::before {
    content: "Points";
  }

  .gamipress-leaderboard-table .column-avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
  }
  .gamipress-leaderboard-table .column-display_name {
    font-weight: 600 !important;
  }
  .gamipress-leaderboard-table .column-points {
    font-weight: bold !important;
  }
}

@media (min-width: 500px) {
  .gamipress-leaderboard-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .gamipress-leaderboard-table td,
  .gamipress-leaderboard-table th {
    padding: 12px 16px !important;
    font-size: 16px !important;
    text-align: left !important;
  }

  .gamipress-leaderboard-table .column-avatar img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
  }
}
