/**
 * Bifrost Pass — Public Styles
 *
 * Frontend styles for restriction notices,
 * profile page, and shortcode output.
 */

/* ── Restriction Notice ── */
.ssbp-restricted-notice {
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 4px solid #E8913A;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.ssbp-restricted-notice p {
    margin: 0 0 12px;
}

.ssbp-btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.ssbp-btn:hover {
    opacity: 0.9;
}

.ssbp-btn-primary {
    background: #2E4057;
    color: #fff;
}

.ssbp-btn-accent {
    background: #E8913A;
    color: #fff;
}

/* ── Profile Page ── */
.ssbp-profile-page {
    line-height: 1.6;
}

.ssbp-profile-page h1 {
    color: #2E4057;
    border-bottom: 3px solid #E8913A;
    padding-bottom: 8px;
}

.ssbp-profile-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

/* ── Notices ── */
.ssbp-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ssbp-notice-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ssbp-notice-warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.ssbp-notice-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ── Badge (public) ── */
.ssbp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ssbp-badge-active   { background: #e8f5e9; color: #2e7d32; }
.ssbp-badge-pending   { background: #fff3e0; color: #e65100; }
.ssbp-badge-suspended { background: #ffebee; color: #c62828; }
.ssbp-badge-expired   { background: #f5f5f5; color: #757575; }
.ssbp-badge-paid      { background: #e8f5e9; color: #2e7d32; }
.ssbp-badge-sent      { background: #fff3e0; color: #e65100; }
.ssbp-badge-overdue   { background: #ffebee; color: #c62828; }

/* ── Invoice Table (frontend) ── */
.ssbp-profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ssbp-profile-table th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.ssbp-profile-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* ── Tier Card (shortcode) ── */
.ssbp-tier-card-display {
    margin: 20px 0;
}

/* ── Avatar ── */
.ssbp-avatar {
    border-radius: 50%;
    object-fit: cover;
}

/* ── Avatar Crop Modal ── */
.ssbp-crop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssbp-crop-modal {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.ssbp-crop-modal h3 {
    margin-top: 0;
    color: #2E4057;
}

.ssbp-crop-preview {
    max-width: 100%;
    max-height: 400px;
    margin: 16px 0;
}

.ssbp-crop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ssbp-profile-card > div:first-child {
        flex-direction: column;
        text-align: center;
    }
}
