/**
 * Access Control Styles
 *
 * @package MMLMS\Access
 * @since 6.0.65
 */

/* ========================================
   UPGRADE PROMPT
   ======================================== */
.mmlms-upgrade-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    margin: 24px 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.mmlms-upgrade-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mmlms-upgrade-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: white;
}

.mmlms-upgrade-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mmlms-upgrade-tiers {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mmlms-upgrade-tier {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    min-width: 200px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mmlms-upgrade-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.mmlms-upgrade-tier.recommended {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.mmlms-upgrade-recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmlms-upgrade-tier h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.mmlms-upgrade-tier p {
    margin: 0 0 20px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Pricing display */
.mmlms-upgrade-price {
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mmlms-price-currency {
    font-size: 18px;
    font-weight: 600;
    vertical-align: top;
}

.mmlms-price-value {
    font-size: 32px;
    font-weight: 700;
}

.mmlms-price-period {
    font-size: 14px;
    opacity: 0.8;
}

/* Features list */
.mmlms-upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.mmlms-upgrade-features li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 13px;
    opacity: 0.9;
}

.mmlms-upgrade-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.mmlms-upgrade-contact {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* ========================================
   LOCKED OVERLAY
   ======================================== */
.mmlms-locked-overlay {
    background: rgba(31, 41, 55, 0.95);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.mmlms-locked-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.mmlms-locked-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.mmlms-locked-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
}

.mmlms-locked-content p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 20px;
}

/* ========================================
   TIER CONTENT LOCKED MESSAGE
   ======================================== */
.mmlms-tier-locked {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #92400e;
}

/* ========================================
   ADMIN STYLES
   ======================================== */
.mmlms-access-admin {
    max-width: 1000px;
}

.mmlms-access-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mmlms-access-section h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Status badges */
.mmlms-access-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mmlms-access-status.success {
    background: #d1fae5;
    color: #065f46;
}

.mmlms-access-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.mmlms-access-status .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Tier cards */
.mmlms-tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mmlms-tier-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mmlms-tier-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mmlms-tier-card.tier-0 {
    border-color: #6b7280;
}

.mmlms-tier-card.tier-1 {
    border-color: #3b82f6;
}

.mmlms-tier-card.tier-2 {
    border-color: #8b5cf6;
}

.mmlms-tier-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.mmlms-tier-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.mmlms-tier-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #374151;
}

.mmlms-tier-card li {
    margin-bottom: 6px;
}

/* Plugin list */
.mmlms-plugin-list {
    list-style: none;
    padding: 0;
}

.mmlms-plugin-list li {
    margin-bottom: 8px;
}

.mmlms-plugin-list a {
    color: #3b82f6;
    text-decoration: none;
}

.mmlms-plugin-list a:hover {
    text-decoration: underline;
}

/* Status badges */
.mmlms-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mmlms-status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.mmlms-status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.mmlms-status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Tier badges in user table */
.mmlms-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mmlms-tier-badge.tier-0 {
    background: #f3f4f6;
    color: #6b7280;
}

.mmlms-tier-badge.tier-1 {
    background: #dbeafe;
    color: #1e40af;
}

.mmlms-tier-badge.tier-2 {
    background: #ede9fe;
    color: #5b21b6;
}

/* Tier select in user table */
.mmlms-tier-select {
    margin-right: 8px;
}

/* Checkbox column alignment */
.mmlms-access-admin .check-column {
    text-align: center;
}

/* Form table improvements */
.mmlms-access-admin .form-table th {
    font-weight: 500;
    color: #374151;
}

.mmlms-access-admin .form-table td {
    text-align: center;
}

/* Submit button spacing */
.mmlms-access-admin .submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
