/**
 * Pure Loyalty — Public Styles
 */

/* ── Loyalty Stats ── */
.pure-loyalty-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.pure-loyalty-stat {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pure-loyalty-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 4px;
}

.pure-loyalty-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

/* ── Progress Bar ── */
.pure-loyalty-progress-wrap {
    margin: 20px 0;
}

.pure-loyalty-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.pure-loyalty-progress-track {
    background: #e9ecef;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
}

.pure-loyalty-progress-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pure-loyalty-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: pure-loyalty-shimmer 2s infinite;
}

@keyframes pure-loyalty-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pure-loyalty-progress-label {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

/* ── Membership Card ── */
.pure-loyalty-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pure-loyalty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* ── Level Image ── */
.pure-loyalty-level-image {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* ── Points Balance ── */
.pure-loyalty-points-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* ── Guest Message ── */
.pure-loyalty-guest-message {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.pure-loyalty-guest-message a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.pure-loyalty-guest-message a:hover {
    text-decoration: underline;
}

/* ── Dashboard ── */
.pure-loyalty-dashboard {
    max-width: 800px;
}

.pure-loyalty-dashboard h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #1f2937;
}

/* ── WooCommerce Notice Enhancements ── */
.woocommerce-info .pure-loyalty-notice,
.woocommerce-message .pure-loyalty-notice {
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .pure-loyalty-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pure-loyalty-card {
        max-width: 100% !important;
    }

    .pure-loyalty-dashboard-card {
        padding: 20px !important;
    }
}
