/* SndCore Member Dashboard Styles */

.snd-member-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.member-status {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.active-subscription, .no-subscription {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.detail-item strong {
    display: block;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.golden-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.price-adjustment {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.price-input-group label {
    font-weight: 600;
    min-width: 140px;
}

.price-input-group input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    width: 120px;
}

.backer-benefits ul {
    list-style: none;
    padding: 0;
}

.backer-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.backer-benefits li:last-child {
    border-bottom: none;
}

.tier-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tier-preview {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tier-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tier-preview h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.tier-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-top: 15px;
}

.tier-price small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: normal;
    margin-top: 5px;
}

.dashboard-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.button:not(.button-primary) {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.button:not(.button-primary):hover {
    background: #3779bb;
}

/* Member content restrictions */
.member-login-required,
.member-content-restricted,
.member-restriction-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.member-restriction-notice {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.restriction-actions {
    margin-top: 15px;
}

.restriction-actions .button {
    margin: 0 5px;
}

.member-content-basic,
.member-content-golden {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
}

.member-content-golden {
    border-left-color: #ffd700;
}

/* Responsive design */
@media (max-width: 768px) {
    .snd-member-dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .subscription-details {
        grid-template-columns: 1fr;
    }
    
    .price-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-input-group label {
        min-width: auto;
    }
    
    .dashboard-action-buttons {
        flex-direction: column;
    }
    
    .tier-previews {
        grid-template-columns: 1fr;
    }
}

/* Admin styles for member settings */
.member-access-denied {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.access-message {
    margin: 30px 0;
    font-size: 1.1rem;
    color: #6c757d;
}

.access-actions {
    margin-top: 30px;
}

.access-actions .button {
    margin: 0 10px;
}

/* WooCommerce integration styles */
.custom-price-field {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.custom-price-field h4 {
    color: #495057;
    margin: 0 0 10px 0;
}

.custom-price-field p {
    color: #6c757d;
    margin: 0 0 20px 0;
}

.price-input-group input {
    max-width: 200px;
}

.price-info {
    margin-top: 8px;
}

.price-info small {
    color: #6c757d;
}
