/* WC Referral Rewards – Frontend Styles */

.wcrr-dashboard {
    font-family: inherit;
    max-width: 800px;
}

.wcrr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.wcrr-card h3 {
    margin: 0 0 12px;
    font-size: 1.1em;
    color: #1a202c;
}

/* Referral link */
.wcrr-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.wcrr-link-box input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: .95em;
    background: #f7fafc;
    color: #4a5568;
}

.wcrr-btn {
    padding: 9px 18px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9em;
    white-space: nowrap;
    transition: background .2s;
}
.wcrr-btn:hover { background: #2b6cb0; }

/* Share buttons */
.wcrr-share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcrr-share-btn {
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .85em;
    color: #fff;
    transition: opacity .2s;
}
.wcrr-share-btn:hover { opacity: .85; color: #fff; }
.wcrr-fb    { background: #1877f2; }
.wcrr-tw    { background: #1da1f2; }
.wcrr-email { background: #718096; }

/* Link stats */
.wcrr-link-stats {
    text-align: center;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: .85em;
}

.wcrr-link-stats small {
    color: #4a5568;
}

.wcrr-link-stats strong {
    color: #3182ce;
    font-size: 1.1em;
}

/* Stats */
.wcrr-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wcrr-stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.wcrr-stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #3182ce;
    line-height: 1.1;
}

.wcrr-stat-label {
    font-size: .8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Progress bar */
.wcrr-milestone {
    margin-top: 12px;
}

.wcrr-milestone p {
    margin: 0 0 6px;
    font-size: .95em;
}

.wcrr-progress-bar {
    background: #e2e8f0;
    border-radius: 99px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 4px;
}

.wcrr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 99px;
    transition: width .5s ease;
}

.wcrr-milestone small {
    color: #718096;
    font-size: .8em;
}

/* Tables */
.wcrr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
}

.wcrr-table th,
.wcrr-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.wcrr-table th {
    color: #718096;
    font-weight: 600;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Status badges */
.wcrr-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: .8em;
    font-weight: 600;
}
.wcrr-status-pending  { background: #fefcbf; color: #744210; }
.wcrr-status-approved, .wcrr-status-issued { background: #c6f6d5; color: #22543d; }
.wcrr-status-rejected { background: #fed7d7; color: #822727; }
.wcrr-status-used     { background: #e2e8f0; color: #4a5568; }

/* Notice */
.wcrr-notice {
    padding: 12px;
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
}

/* Inline link */
.wcrr-inline-link {
    font-family: monospace;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Referral Card */
.wcrr-sharecard-wrap {}

.wcrr-sharecard-preview {
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.wcrr-sharecard-img {
    display: block;
    width: 100%;
    height: auto;
}

.wcrr-btn-download {
    display: inline-block;
    text-decoration: none;
    background: #38a169;
}
.wcrr-btn-download:hover { background: #2f855a; }
